-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added WireViz wiring harness diagrams #434
Conversation
abust005
commented
Nov 7, 2023
- Added WireViz diagrams to documentation.
- Added WireViz YAMLs to regenerate diagrams
…sions Added images of connectors
Added harness images Added harness generation scripts (Windows and Linux)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very cool! I think this is going to be a great addition but I have some comments to improve its helpfulness for novice builders.
Unless I'm missing something obvious, I don't see how builders can infer which wire goes where from the diagrams, which is the main thing they're looking for.
@@ -5,6 +5,8 @@ The wiring is what connects each of the 10 motors to the motor board carrying po | |||
![wiring diagram](images/wiring_diagram.png) | |||
Wiring diagram for one side of the rover. The other side is identical. | |||
|
|||
Harness diagrams further below were generated with [WireViz](https://github.com/wireviz/WireViz/) and can be re-generated with the *generateHarness.bat/.sh* scripts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be a good place to explain to the uninitiated what a wiring harness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the feedback! Next commit will have a note on terminology that explains the wiring harness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit db7e185
@@ -72,6 +74,8 @@ On the other side of the cable, you will attach 4 Dupont female crimps. You now | |||
|
|||
Now we'll insert each crimped cable into the appropriate connectors. Start by writing the pinout on each of the connectors for easy troubleshooting using a sharpie: B, A, G, 5 for channel B, channel A, ground, and +5V respectively. Copy over the annotations from the images below to your connectors, paying close attention to the orientation of each connector. | |||
|
|||
![Encoder Extension Harness Diagram](images/encoder_extension.jpg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the first wiring harness encountered, a link or sentence or two about what to look for in this harness would be useful.
The DuPont connector displayed in this image seems to have 10 positions while it should only have 4. Is that an easy fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did worry about the DuPont connector image. Unfortunately, I pulled that image from the datasheet, which just uses the 10-position connector as a default, and there doesn't seem to be a reference for just the 4-position. Would it be less confusing if I removed the image? After all, a DuPont connector isn't as direction-sensitive as a Molex or a JST connector.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either that or use a cropped version of something like the image here, which also happens to be a really nice wiring diagram. Do you happen to recognize what software they might use for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is quite nice, I wish I knew what software they're using. It almost seems like it could also be a GraphViz derivative like WireViz, but I'm not sure.
I'm currently working on a fix to the JST and Molex connector diagrams, I might be able to do the DuPont as well while I'm at it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit db7e185
electrical/wiring/back_encoder.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest moving this and other WireViz files into a seperate folder wireviz
so its clear what's part of the WireViz files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit db7e185
electrical/wiring/images/JST-XH.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not entirely clear from this diagram which wire goes where. I don't see how numbers 1-4 correspond to the positions in the connector.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Number 1 corresponds to the side with the notch, so in this case the right. However, this image suffers from the same problem as the DuPont diagram in that it's a 5-pin instead of a 4-pin. I'll see if I can find a better diagram image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit db7e185
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is much better, but it's still not entirely clear what side you're looking at.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the wire side, with the clip on the bottom. As with the JST, I'll see if I can find a better diagram
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit db7e185
electrical/wiring/images/dupont.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be a 4p connector and would also benefit from an indication of which pin is which.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit db7e185
Changed connector diagram images Moved WireViz files to separate directory Updated WireViz templates with new images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So fast! Hats off and thanks for the really great contribution!