# Gear motor problem

**URL:** <https://forum.fritzing.org/t/gear-motor-problem/9047>\
**Category:** parts help\
**Created:** [April 2, 2020, 10:50am UTC](https://forum.fritzing.org/t/gear-motor-problem/9047 "2020-04-02T10:50:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 2, 2020, 6:19pm UTC](https://forum.fritzing.org/t/gear-motor-problem/9047/2 "2020-04-02T18:19:28Z")

</div>

Most of your problem is the motor you cloned from is a bendable leg part (and Parts editor doesn’t support bendable legs at present.) Running your part through my part checking script generates these two errors (among others):

Error 80: File  
‘part.gear motor\_d663077cedb294e0fc943e1955203998\_3.fzp.bak’  
At line 50

Both terminalId and legId present, only one or the other is allowed.

Error 80: File  
‘part.gear motor\_d663077cedb294e0fc943e1955203998\_3.fzp.bak’  
At line 65

This is the problem:

```
    <breadboardView>
      <p legId="connector0leg" layer="breadboard" terminalId="connector0terminal" svgId="connector0pin"/>

```

needs to be

```
    <breadboardView>
      <p layer="breadboard" terminalId="connector0terminal" svgId="connector0pin"/>

```

To make this a non bendable leg part. In this part I made that change as well as several others (listed below.) This part has a new moduleId and file names so will load along side your current part for comparison.

[gear motor.fzpz](https://forum.fritzing.org/uploads/short-url/4Z0c99LHAflSXyuxWifUiFBK4v7.fzpz) (4.3 KB)

Here is a test sketch with both parts loaded.

[gear-motor-fixed.fzz](https://forum.fritzing.org/uploads/short-url/vvrzhC9k3E8hpsKvWX7lDS6qxOZ.fzz) (14.3 KB)

breadboard:

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

ungroup then delete the unneed elements (circled in red in the above image) from the svg to save space. Then rescale the svg to be the correct scale specified in the parts file document. Instructions for rescaling in Inkscape are here:

> [@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…

Change text font size to 1000 to make it visible.

Changed connector0 pin to be on a .1 in boundary.

moved connector1terminal to the center bottom of connector1pin. Added connector0 terminal and placed in on the center bottom of connector0pin. I would probably remove the fuzzing of the motor rectangle as the motor isn’t likely to be fuzzy, but did not do so here. Edit-\>select all, resize page to drawing, group and set group id to “breadboard”, save as plain svg. Here is an image of the breadboard of both parts. As you see my new part connects correctly to the pins. Your original part has the red square (circled in black) because there is a problem with the connectorIds. The two breadboard connections connect to the top left of the part (as seen by the rats nest lines from the connections in schematic) circled in red and blue:

 ![Capture2](https://forum.fritzing.org/uploads/default/original/2X/3/37e1e2bfc32995518de4a8cb3e758ed603443c7e.png)

pcb

fine as is.

schematic

Technically mostly fine as is, but rescale to meet standards.

Set all stroke-widths to 10, adjust the color of the lines to match graphic standard. Change both terminalIds to be 10thou by 10thou rectangle. Move the connectors to the bottom of the xml window. Resize, regroup, save as plain svg. Note in this image of the two schematics, that your part has a path (which Fritzing won’t accept) as the connector1terminal. That is what causes the wire to connect to the center of the pin rather than the end as it should in the new part. I expect that is in the original part in core parts as well (it is circled in red in the image.)

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

If you haven’t seen them these tutorials may help you (they both apply to the latest version of Fritzing which most others do not):

> [@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…

Peter

---

_[View the full topic](https://forum.fritzing.org/t/gear-motor-problem/9047)._
