Skip to content

Commit

Permalink
Updated README with more information on the diagrams
Browse files Browse the repository at this point in the history
Changed connector diagram images
Moved WireViz files to separate directory
Updated WireViz templates with new images
  • Loading branch information
abust005 committed Nov 7, 2023
1 parent e5c3a99 commit db7e185
Show file tree
Hide file tree
Showing 24 changed files with 34 additions and 8 deletions.
14 changes: 13 additions & 1 deletion electrical/wiring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ 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.

>**Some notes on terminology:**
>***Wiring harness*** *(also called **cable harness** or **wire assembly**)*: the collective term for all the wiring and cables that are run through a system to connect power sources, sensors, data lines, etc. In the case of the rover, this means the cables that feed power to the motors, the control signals to the servos, and the encoder data back to the control boards.
>***Cable***: A group of wires/conductors, usually with an outer sheath.
>***Wire***: A single conductor, solid or stranded core, of any gauge.
## Overview

We will be building several cables, all visualized in the above diagram. Make sure you have all wire types and connectors and understand the routing of the cabling as it will save you time down the line.
Expand Down Expand Up @@ -36,6 +44,8 @@ We will be building several cables, all visualized in the above diagram. Make su

In total: 24 JST female crimps, 6 JST female connectors, 36 female DuPont crimps, 6 MH-FC PCI-E connectors, 28 male DuPont crimps, 16 female DuPont crimps, 4 3pin DuPont connectors, 8 4pin DuPont connectors, and 12x bullet connectors+crimps.

The harness diagrams in this README also contain an integrated bill-of-materials (BOM) for each cable so you can organize the parts appropriately.

> **Tip**: Rather than crimp each wire yourself, you can buy premade connectors, cut the wires, and then solder them to the other side. For soldering using a heat gun, you could get something like the following: [heat gun solder seal wire](https://www.amazon.com/Amliber-Connectors-Solderstick-Waterproof-Electrical/dp/B0BXKHBDFB/ref=sr_1_3?keywords=heat%2Bgun%2Bsolder%2Bseal%2Bwire&qid=1690233825&s=industrial&sprefix=heat%2Bgun%2Bsolder%2Cindustrial%2C159&sr=1-3&th=1). This depends on your preferences. When using premade connectors, be extra careful of the pinouts so you connect the correct wire ends together.
> **Tip**: For the thinner (AWG20 and AWG22) wiring we strongly recommend using ribbon cable (where each wire strand is attached to the next) to keep wires clean and strong. Alternatively you can twist the wires which also helps reduce interference from electrical noise.
Expand Down Expand Up @@ -72,7 +82,9 @@ Use the 4 pieces of 36cm *encoder wire*. Separate the wire ends from the ribbon
On the other side of the cable, you will attach 4 Dupont female crimps. You now have one of 4 crimped wires, so repeat the process for the 3 other wires.

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.
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. Use the harness diagram below as a guide to make sure that each connector is in the right position in its housing.

> **Tip**: On single row connectors like the JST-XH and the DuPont, there is usually a mark on the connector housing (like a triangle or a cutout) that indicates position 1. These are more visible in the harness diagrams.
![Encoder Extension Harness Diagram](images/encoder_extension.jpg)

Expand Down
Binary file removed electrical/wiring/images/Bullet_Connector.jpg
Binary file not shown.
Binary file removed electrical/wiring/images/JST-XH.png
Binary file not shown.
Binary file removed electrical/wiring/images/Molex-Mini-Fit-Jr-6-pin.png
Binary file not shown.
Binary file modified electrical/wiring/images/back_encoder.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electrical/wiring/images/back_servo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed electrical/wiring/images/dupont.png
Binary file not shown.
Binary file modified electrical/wiring/images/encoder_extension.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electrical/wiring/images/front_encoder.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electrical/wiring/images/front_servo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electrical/wiring/images/middle_encoder.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ wireviz middle_encoder.yml --prepend-file templates.yml
wireviz back_encoder.yml --prepend-file templates.yml
wireviz encoder_extension.yml --prepend-file templates.yml
del *.svg, *.tsv, *.gv
move *.jpg ./images
move *.jpg ../images
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ wireviz middle_encoder.yml --prepend-file templates.yml
wireviz back_encoder.yml --prepend-file templates.yml
wireviz encoder_extension.yml --prepend-file templates.yml
rm *.svg *.tsv *.gv
mv *.jpg ./images
mv *.jpg ../images
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,58 @@ templates:
pinlabels: [M+, M-, G, 5V, EnA, EnB]
show_pincount: true
image:
src: ./images/Molex-Mini-Fit-Jr-6-pin.png
src: ./connector_images/Molex-Mini-Fit-Jr-6.png
caption: Molex Pinout
width: 165
Motor-to-Molex: &bullet
type: Bullet
show_pincount: false
#image: images/Bullet_Connector.jpg
Male-DuPont-4pin: &maleDP4
type: DuPont
subtype: male
pinlabels: [5V, GND, EnA, EnB]
show_pincount: true
image:
src: ./images/dupont.png
src: ./connector_images/DuPont-4.png
caption: Dupont Pinout
width: 500
width: 300
height: 200
Female-DuPont-4pin: &femDP4
type: DuPont
subtype: female
pinlabels: [5V, GND, EnA, EnB]
show_pincount: true
image:
src: ./connector_images/DuPont-4.png
caption: Dupont Pinout
width: 300
height: 200
Male-DuPont-3pin: &maleDP3
type: DuPont
subtype: male
pinlabels: [PWM, +, GND]
show_pincount: true
image:
src: ./connector_images/DuPont-3.png
caption: Dupont Pinout
width: 300
height: 200
Female-DuPont-3pin: &femDP3
type: DuPont
subtype: female
pinlabels: [PWM, +, GND]
show_pincount: true
image:
src: ./connector_images/DuPont-3.png
caption: Dupont Pinout
width: 300
height: 200
JST-XH: &jst_xh4
type: JST-XH
subtype: female
pinlabels: [EnB, EnA, GND, 5V]
image:
src: ./images/JST-XH.png
src: ./connector_images/JST-XH4.png
caption: JST-XH Pinout
width: 231
height: 202
Expand Down

0 comments on commit db7e185

Please sign in to comment.