# New Part CJMCU-811 Part

**URL:** <https://forum.fritzing.org/t/new-part-cjmcu-811-part/9454>\
**Category:** parts submit\
**Created:** [April 30, 2020, 10:33am UTC](https://forum.fritzing.org/t/new-part-cjmcu-811-part/9454 "2020-04-30T10:33:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [May 1, 2020, 1:02pm UTC](https://forum.fritzing.org/t/new-part-cjmcu-811-part/9454/4 "2020-05-01T13:02:50Z")

</div>

> [@gcoulby](#):
>
> First of all, thank you for provided constructive feedback on the work as opposed to just tearing me a new one. I really like this community for that!

Making parts is complex enough that not many do it. It is to our advantage to encourage people to make parts (over and above, tearing people a new one just seems rude 🙂 .) The folks that trained me (sadly no longer posting) were happy to answer questions so I’m carrying on the tradition.

> [@gcoulby](#):
>
> It seems I still have a lot to learn about part design, though I feel its not bad for my first part.

True the part is functional, the errors are mostly cosmetic. These two tutorials on part making cover the current version of Fritzing (most of the rest are for older versions):

> [@Fritzing PART CREATION Video Tutorial Series](http://forum.fritzing.org/t/fritzing-part-creation-video-tutorial-series/2647/3):
>
> Fritzing Part Creation - Chapter3 - Inkscape Advanced Essentials Learning how to draw in Inkscape - more features. 0:00 Overview 0:16 Select object with cursor and XML Editor 3:34 Manipulate special PDF’s in Inkscape 4:33 XML Editor - Direct drawing manipulation 6:05 XML Editor - Making group, moving object, changing layer height 7:27 Cursor - Changing layer height 8:21 Ruler 9:07 Grids 9:28 Snap selection 10:16 Drawing origin

> [@Part creation howto part 1 breadboard and pcb](https://forum.fritzing.org/t/part-creation-howto-part-1-breadboard-and-pcb/7692):
>
> Someone in this forum post requested help to fix up a part. So while doing that I decided to record what I needed to do in order to fix the part to provide a tutorial to create new / fix broken parts. If you start from the Tarjeta S4A EDU.fzpz file posted in the above thread, you should be able to recreate my improved part posted in the same thread. I started by loading the original part in to Fritzing, that indicates breadboard is (at first look anyway) pretty good, but schematic and pcb are…

> [@gcoulby](#):
>
> I made this based on the Adafruit version and copied the pins directly so I don’t know how the scales went to pot.

At a guess, you edited the schematic file in Illustrator. The original from Adafruit is correct (dimensioned in inches), your version is dimensioned in px at 72DPI which is why the scale problems. This is typical of Illustrator and if it is possible to convince Illustrator to use inches I don’t know how (from google searches I think it may not be possible, but if someone knows how please post!)  
In any case here is how to convert the svg to something Fritzing will scale correctly using Inkscape (which is my svg editor of choice): the problem is the svg is dimensioned in px and Illustrator uses 72DPI as the px value. Inkscape used to use 90DPI and now uses 96DPI (the current CSS standard I think.) Fritzing tries to guess which DPI was used and sometimes as in this case gets it wrong. Here is the original document displayed in Inkscape:

 ![Capture](https://forum.fritzing.org/uploads/default/original/2X/a/a67d3ebedb1064323ac09fa6d357e3e5d7f35ff3.png)

Then the SDA pin with coords in inches:

 ![Capture1](https://forum.fritzing.org/uploads/default/original/2X/5/5470eef7276e87a66b00dc21688b978a211c0e41.png)

Note the Y cood is 0.446in in the top tool bar. Then the SCL pin below it also in inches:

 ![Capture2](https://forum.fritzing.org/uploads/default/original/2X/a/aebbfbb8a314e6f40f25e15b8300a1e0291d05e9.png)

Note this y coord is 0.371in (not the 0.346in it should be to be on .1in centers.) To fix this, I first ungrouped the svg:

 ![Capture3](https://forum.fritzing.org/uploads/default/original/2X/a/ad17fbf53f21c7cccfc713ff6dfdcae39a77b097.png)

and recorded the scale (1.00000, circled in blue) for later. Note the Units (circled in red) are in px. Now make sure Scale stroke-widths (circled in blue) is enabled, and change Display Units (circled in red) to pt (points or 72DPI) to match Illustrators opinion of the DPI value. The scale (also circled in red) has changed to reflect 72DPI.

 ![Capture4](https://forum.fritzing.org/uploads/default/original/2X/e/e098f653b522c877c28899ad2d6720a7b8df89bd.png)

Now change the scale back to 1.000000

 ![Capture5](https://forum.fritzing.org/uploads/default/original/2X/b/bb7b822dcb88d76c1415e02775b60742191925ef.png)

Note the image has gotten larger as it is rescaled. Now change the Display units back to px and the Units to inches (so we don’t have this problem again, because an inch is always an inch unlike the DPI values.)

 ![Capture6](https://forum.fritzing.org/uploads/default/original/2X/c/c375de11fee4b3c574b2c711b19212b254926882.png)

Now we need to click Resize page to drawing to reset the viewbox to the correct coordinates but at an incorrect but consistent (i.e inches not DPI) scale.

 ![Capture7](https://forum.fritzing.org/uploads/default/original/2X/f/fe38713b51a392e1ef6125ea5625b95695dc9f6a.png)

The scale here is 0.75 but the parts file format calls for the scale to be 10.41667, so we should (but I am too lazy to do so right now 🙂 ) these instructions to reset the scale:

> [@Rescale a svg using Inkscape](https://forum.fritzing.org/t/rescale-a-svg-using-inkscape/7581/):
>
> I have made the mistake of electing myself “somebody” (as in “somebody should make a parts creation tutorial”) again. As punishment for this rash mistake, a single “here is how I fixed up this part” post has turned in to (so far slight_smile ) 5 posts. These first three are infrastructure type posts that should be useful standalone. This one covers rescaling a drawing using Inkscape. It is being posted first because the real first document Configure Inkscape refers to this document and I neede…

As noted if it is possible to get Illustrator to do this for itself, instructions on how to do it would be much appreciated. The discussion I’ve found seems to indicate Illustrator won’t let the user adjust the viewbox settings and I assume also the scale (although I would like to be wrong 🙂 .)

> [@gcoulby](#):
>
> Would you consider creating a pull request on github and publishing your changes to the repo I have made.

Sure I should be able to do that. I’m github challenged, I can get the first pull request to the main parts repo to work, but after that I have yet to figure out how to keep my cloned repo in sync (although I have some suggestions I haven’t tried yet.) but a one of I should be able to do.

Peter

---

_[View the full topic](https://forum.fritzing.org/t/new-part-cjmcu-811-part/9454)._
