Skip to content
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

Merged
merged 6 commits into from
Nov 7, 2023

Conversation

abust005
Copy link
Collaborator

@abust005 abust005 commented Nov 7, 2023

  • Added WireViz diagrams to documentation.
  • Added WireViz YAMLs to regenerate diagrams

@Achllle Achllle self-requested a review November 7, 2023 03:59
Copy link
Collaborator

@Achllle Achllle left a 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.
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit db7e185

Copy link
Collaborator

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.

Copy link
Collaborator Author

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/Bullet_Connector.jpg Outdated Show resolved Hide resolved
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit db7e185

Copy link
Collaborator

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.

Copy link
Collaborator Author

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit db7e185

Copy link
Collaborator

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.

Copy link
Collaborator Author

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
Copy link
Collaborator

@Achllle Achllle left a 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!

@Achllle Achllle merged commit 8f1b426 into nasa-jpl:master Nov 7, 2023
2 checks passed
@abust005 abust005 deleted the wireviz-harness branch November 8, 2023 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants