
Photo and 3D model

3D preview converted from github.com/nasa-jpl/open-source-rover at 49b40f1, under Apache-2.0. View the original files from GitHub (629 KB) (opens in a new tab)
JPL Open Source Rover
Wheeled
A build-it-yourself, six-wheeled rover scaled down from the JPL Mars rover design, made from consumer off-the-shelf parts.
Before you build
- Total cost
- $1,600approx. €1,467 (ECB rate, 1 Dec 2026)excluding 3D-printing filament
How we got this number
The parts list adds up to $90.80; it may cover only part of the robot, or count packs, spares or prices per line.About this, as the creator states it in README.md. - Tools
- Metric hex keys, Pliers, Wire snips, Wire strippers, Soldering iron, Solder, Digital multimeter, 3D printer, Laser cutter, Benchtop power supply
- Level
- Intermediate
- Time
- 100 hours hands-on
- Licence
- Apache-2.0 (opens in a new tab), hardware and softwareCommercial use: Allowed
Not stated in the creator's files: shop links.
Read from the repository at commit 49b40f1, read on 11 Nov 2026. Something out of date? Tell us
Project information
- Buildability
- 94/100Ready to build
- Parts
- 34 lines
- Works with
- ROS
This repository contains executable files that Robotheca doesn't check. Only run them if you trust the creator.
Which files (6 scripts)
- electrical/pcb/control_board/documentation/utilities/export_gerbers.sh (opens in a new tab)
- electrical/pcb/control_board/documentation/utilities/export_layout.sh (opens in a new tab)
- electrical/pcb/control_board/documentation/utilities/export_schematic.sh (opens in a new tab)
- electrical/pcb/control_board/documentation/utilities/render_3d.sh (opens in a new tab)
- electrical/wiring/wireviz/generateHarness.bat (opens in a new tab)
- electrical/wiring/wireviz/generateHarness.sh (opens in a new tab)
Suggested by Robotheca, created by @nasa-jpl (opens in a new tab), from github.com/nasa-jpl/open-source-rover (opens in a new tab), pinned to commit 49b40f1 (opens in a new tab). You buy the parts yourself; Robotheca doesn't sell robots. Last checked on GitHub on 1 December 2026; its last change there was on 6 November 2026.
Build it
- Order parts
- Create the wiring
- Make the electronics
- Make the mechanical assemblies
- Set up and configure the operating system rover code
Step by step
Adapted by Robotheca from the build guides of nasa-jpl (opens in a new tab) (README.md, commit 0bea824), nasa-jpl (opens in a new tab) (electrical/wiring/README.md, commit 0bea824), nasa-jpl (opens in a new tab) (electrical/pcb/README.md, commit 0bea824), nasa-jpl (opens in a new tab) (mechanical/wheel_assembly/README.md, commit 0bea824), nasa-jpl (opens in a new tab) (mechanical/body/README.md, commit 0bea824), nasa-jpl (opens in a new tab) (mechanical/rocker_bogie/README.md, commit 0bea824), nasa-jpl (opens in a new tab) (mechanical/README.md, commit 0bea824), nasa-jpl (opens in a new tab) (setup/rpi.md, commit 7aaf185) and nasa-jpl (opens in a new tab) (setup/rover_bringup.md, commit 7aaf185): rewritten into steps, each linked to its original. Changes may contain mistakes: the original is the reference.
License of the original: Apache-2.0.
A person reviewed every difference from the original before it was published, on 6 November 2026.
1. Tools Necessary
You need
- Mandatory tools: Metric hex keys
- Mandatory tools: Pliers
- Mandatory tools: Wire Snips
- Mandatory tools: Wire Strippers
- Mandatory tools: Solder Iron
- Mandatory tools: Solder
- Mandatory tools: Digital Multimeter
- Mandatory tools: Wire strippers, e.g. these (https://www.amazon.com/dp/B07DWVSR41/?coliid=ISMG8XMBILGFK&colid=1IM7RHK25RIBB&psc=0&ref_=lv_vv_lig_dp_it (opens in a new tab))
- Optional tools: 3D printer
- Optional tools: Laser Cutter (for the body plates, online services available)
- Optional tools: Benchtop Power Supply (to test without using battery)
- Optional tools: Items for operating a Raspberry Pi (Keyboard, mouse, monitor, 5V micro USB power adapter)
- This project assumes you have some standard tools to help assemble the project.
- The tools in the Mandatory tools list are mandatory.
- The tools in the Optional tools list are optional.
- If you do not have any of the optional tools, we provide examples of online services that you can use to have the parts fabricated and sent to you.
In the original: Tools Necessary (opens in a new tab)
2. Expected time commitment
Time: In our experience, this project takes no less than 100 person-hours to build, and depending on the familiarity and skill level of those involved could be significantly more.
- In our experience, this project takes no less than 100 person-hours to build, and depending on the familiarity and skill level of those involved could be significantly more.
- Experienced builders may be able to build this project in this amount of time.
- This project is generally meant to be a teaching and learning tool.
- Throughout the documentation, we try to give supplemental information for those who might be new to this kind of project.
In the original: Tools Necessary (opens in a new tab)
3. Understand the wiring job
Time: If you have all parts ready to go, it could take between 2 and 5 hours to complete, depending on your skill level with crimping.
- Know that the wiring is what connects each of the 10 motors to the motor board carrying power and data.
- Know that creating the wiring requires a bit of patience.
- Know that it's important that it's done properly so there's a consistent connection to the motors.
- Know that loose wires mean that the rover will not work as well or at all.
- Know that mechanical assemblies are more easily repaired than faulty wiring.
- Look at the wiring diagram below. It shows one side of the rover. The other side is identical.
- Know that the harness diagrams further below were generated with WireViz (https://github.com/wireviz/WireViz/ (opens in a new tab)) and can be re-generated with the generateHarness.bat/.sh scripts.
Note: Loose wires mean that the rover will not work as well or at all.
Note: Mechanical assemblies are more easily repaired than faulty wiring.
In the original: Wiring (opens in a new tab)
4. Learn the 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.
In the original: Wiring (opens in a new tab)
5. Overview of the cables to build
- Know that we will be building several cables, all visualized in the wiring diagram above.
- 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.
- 1. 4x: JST female 4pin ↔ Dupont female 4pin (connects to (2))
- We'll use these to connect the drive motor encoders at the corners to the top of each corner
- Having an intermediate connection allows us to swap out motors, perform testing, and route the wires through the parts much easier.
- These are all of length 35cm (all lengths excluding connector length)
- You can also buy 4 premade cables from Gobilda (opens in a new tab). They are a bit shorter so you can make the wires in Step (2) 5cm longer without any issue.
- 2. 4x: Dupont male 4pin ↔ 4-pins of female Molex connectors
- These will connect the drive motor encoders for each corner to the PCB through the rocker-bogie. The DuPont male side will plug into (1)
- The Molex connectors will be inserted in the 6-pin PCI-E connector
- 2 of these should be 52cm long for the front, the other 2 should be 45cm long for the back
- 3. 2x: JST female 4pin ↔ 4-pins of female Molex connectors
- These will connect the drive motor encoders for the two middle wheels to the PCB
- The Molex connectors will be inserted in the 6-pin PCI-E connector that plugs into the PCB
- These will both be 53cm long
- 4. 6x: 2-pin female bullet connector ↔ 2-pin female Molex connector
- These will connect the two drive motor power supplies (M+ and M-) to the PCB
- 2 of these are 2cm long for the middle wheels
- 2 of these are 53cm long for the front wheels
- 2 of these are 40cm long for the back wheels
- 5. 4x: Dupont male 3pin ↔ DuPont female 3pin connectors
- These will connect the corner servo motors to the PCB
- 2 of these are 53cm long for the front corner servos
- 2 of these are 35cm long for the back corner servos
- 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.
In the original: Wiring (opens in a new tab)
6. Tips for making the cables
- 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 (opens in a new tab)). 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.
Note: When using premade connectors, be extra careful of the pinouts so you connect the correct wire ends together.
In the original: Wiring (opens in a new tab)
7. Plan the wire colors
- Read the note on color coding below.
- We want to be consistent with the color coding of your wires so we can troubleshoot easier.
- For example M+ (motor positive) should always be red and M- black for all drive motors.
- We'll also use the same colored wires for all encoders.
- We'll add one centimeter to each piece of wire for inserting into the connectors.
- As can be seen on the diagram, we'll have three color coded types: servo wire, encoder wire and power wire.
In the original: Cut the wires to length (opens in a new tab)
8. Cut the servo wire
- Use servo wire: white, red, and black for the servo motors.
- The servo motors already have wires in these colors.
- wire gauge: 20AWG.
- Cut 2 pieces of 53+1=54cm.
- Cut 2 pieces of 36cm.
In the original: Cut the wires to length (opens in a new tab)
9. Cut the encoder wire
- Use encoder wire: 4 colors of your choice for the drive motor encoders (in diagram: yellow, blue, brown, orange).
- wire gauge: 22AWG.
- Cut 4 pieces of length 35+1=36cm.
- Cut 2 pieces of 53cm.
- Cut 2 pieces of 46cm.
- Cut 2 pieces of 54cm.
In the original: Cut the wires to length (opens in a new tab)
10. Cut the power wire
- Use power wire: black and red for the drive motor power.
- wire gauge: 18AWG.
- Cut 2 pieces (of red and black wire) of 2+1=3cm.
- Cut 2 pieces of 54cm.
- Cut 2 pieces of 41cm.
In the original: Cut the wires to length (opens in a new tab)
11. Add heat shrink (optional but recommended)
You need
- Heat shrink: two pieces on each set of wires
- Optional but recommended: put two pieces of heat shrink on each set of wires.
- This allows you to securely remove a connection without accidentally stressing one wire/crimp too much.
- It also prevents the wires from detaching from one another.
- See the picture: Heat shrink around a female 4p JST connector.
In the original: Cut the wires to length (opens in a new tab)
12. Prepare the wires and crimp the JST side
You need
- 4x: JST female 4pin ↔ Dupont female 4pin (4 cables to make)
- 4 pieces of 36cm encoder wire
- Wire stripper
- Crimping tool
- Female JST crimps
- Dupont female crimps
- Use the 4 pieces of 36cm encoder wire.
- Separate the wire ends from the ribbon cable so you can attach crimps to each wire.
- Using a wire stripper, remove about 3mm of wire protector from each wire.
- On one side of each 4-wire cable, use a crimping tool to attach a female JST crimp to each wire.
Tip: There are many great resources online to learn how to crimp effectively. Put the crimp into the crimping tool and lightly clamp down so the crimp doesn't fall out. Then inside the wire end and complete the crimp. When you have completed the crimp, give it a solid tug to test if it's properly attached. Loose crimps will backfire later!
In the original: Step (1) 4x: JST female 4pin ↔ Dupont female 4pin (opens in a new tab)
13. Crimp the Dupont side
You need
- Dupont female crimps
- Crimping tool
- On the other side of the cable, attach 4 Dupont female crimps.
- You now have one of 4 crimped wires, so repeat the process for the 3 other wires.
In the original: Step (1) 4x: JST female 4pin ↔ Dupont female 4pin (opens in a new tab)
14. Label the connectors
You need
- Sharpie
- 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.
Dupont 4p connector. From top to bottom: VCC/5V (white) → GND (yellow) → enA (blue) → enB (green) female 4p JST connector. From top to bottom: enB → enA → GND → VCC/5V 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.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Step (1) 4x: JST female 4pin ↔ Dupont female 4pin (opens in a new tab)
15. Insert the crimps into the connectors
You need
- Heat gun (if you used heat shrink)
- Multimeter
- Insert the crimps into the connectors.
- Repeat for all cables, using the same coloring for each connector hole.
- If you used heat shrink, use a heat gun to secure the connection.
Tip: When you finish a cable, use the connection testing setting on your multimeter so verify that your cables work. This will save you a lot of time debugging in the future!
In the original: Step (1) 4x: JST female 4pin ↔ Dupont female 4pin (opens in a new tab)
16. Step (2) 4x: Dupont male 4pin ↔ 4-pins of female Molex connectors
You need
- 2 pieces of encoder wire of 53cm
- 2 pieces of encoder wire of 46cm
- Male DuPont crimps
- Female Molex crimps
- Know the purpose: these cables will connect the Dupont side of the cables made in step (1) to the PCB via a 6pin PCI-E connector with female Molex connectors.
- This process is very similar to the steps we did in (1), except we'll use male DuPont crimps on one side and female Molex crimps on the other side.
- For the male DuPont connector side, make sure the wires match the female DuPont connector you made in Step (1).
- Grab the 2 pieces of encoder wire of 53cm and 2 pieces of 46cm.
- Prepare the wire ends for crimping.
- Attach the crimps to each wire.
- Repeat for each set of wires.
- As before, mark the connectors as in the images below.
- Insert the wires into the connectors.
- Mark the PCI-E connector with on each of the two longer cables with 'F' for front and the two connectors attached to the shorter cables with 'B' for back.
- This will prevent inserting the cables into the wrong slot on the PCB since all cables arrive into the body through the same goRail.
- The remaining two slots for M+ (A) and M- (B) on each of these connectors will be filled in step (4).
Top of PCI-E connector bottom of PCI-E connector 5V → enA → enB M+/A → Mi/B → GND - Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Step (2) 4x: Dupont male 4pin ↔ 4-pins of female Molex connectors (opens in a new tab)
17. Step (3) 2x: JST female 4pin <-> 4-pins of female Molex connectors
You need
- JST female 4pin connector
- 4-pins of female Molex connectors
- Make 2 wires of this type.
- These 2 wires connect the drive motor encoders for the middle wheels to the PCB directly.
- They are a combination of cables (1) and (2), skipping the intermediate DuPont connector.
- Mark the PCI-E connector for each of the two cables with 'M' for middle.
In the original: Step (3) 2x: JST female 4pin ↔ 4-pins of female Molex connectors (opens in a new tab)
18. Step (4) 6x: 2-pin female bullet connector <-> 2x female Molex connector
You need
- 6 pairs of red and black power wire
- Female bullet connector
- Female Molex connector
- Grab the 6 pairs of red and black power wire.
- On each wire side attach a female bullet connector on one side and a female Molex connector on the other.
- For the two shortest cables you made, insert the Molex end into the open slots on the middle PCI-E connector you assembled in Step (3).
- For the two longest cables you made, insert the Molex end into the open slots on the front PCI-E connector you assembled in Step (2).
- For the two mid-length cables you made, insert the Molex end into the open slots on the back PCI-E connector you assembled in Step (2).
- You now have all the wiring completed for the drive motors!
In the original: Step (4) 6x: 2-pin female bullet connector ↔ 2x female Molex connector (opens in a new tab)
19. Step (5) 4x: Dupont male 3pin ↔ DuPont female 3pin connectors
- Look at the two pictures of the front and back servo harnesses.
- All that's left are the servo ribbon cables.
- Know that the red and black wires are (+) and (-) voltage to the motor.
- Know that the white cable carries the PWM signal to command the on-board controller to command the motor to the desired angle, using the built-in absolute encoder.
- Know that the PCB header pins for the servo motors are wired in the same order (PWM, (+), (-)), so we're essentially building an extension cord in this step.
- On one side you'll be using male DuPont crimps.
- On the other side you'll use female DuPont crimps.
- The connectors for both sides are identical.
- You should now have 12 finished cable assemblies. Congratulations!
- Don't forget to make sure each connection is solid and tested before moving on.
Note: Don't forget to make sure each connection is solid and tested before moving on.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Step (5) 4x: Dupont male 3pin ↔ DuPont female 3pin connectors (opens in a new tab)
20. Understand what this guide covers
- Know that the overall Control Board consists of a Motor Board with a Brain Board mounted on top.
- Know that these instructions are to assemble these two separate pcbs and mount them together as the unified control board.
- Know that this document goes through the process of assembling and testing the custom Printed Circuit Boards for the project.
- Note that the images in these instructions are taken from an assembly of the v2.0.1 board.
- Note that there are minimal differences between v2.0.1 and v2.0.3 - such that it wasn't worth doing another photoshoot for v2.0.3.
- Make sure to follow the written instructions when in doubt.
- Follow the guide in this order: Part References, Schematic and Layout Documentation, Motor Board Assembly, Brain Board Assembly, Motor Board and Brain Board Mating, Testing the PCB and wiring for the Drive Motors.
Note: The images in these instructions are taken from an assembly of the v2.0.1 board. Make sure to follow the written instructions when in doubt.
In the original: Control Board Assembly, v2.0.3 (opens in a new tab)
21. Look up parts by their reference designators
You need
- BOM documents: https://github.com/nasa-jpl/open-source-rover/tree/0bea824015778922d4d7e373fbf56a112efea46d/electrical/pcb/control_board/BOM (opens in a new tab)
- v2.0.3 BOM board ref parts spreadsheet: https://github.com/nasa-jpl/open-source-rover/blob/0bea824015778922d4d7e373fbf56a112efea46d/electrical/pcb/control_board/BOM/bom_v2.0.3_board_ref_parts.csv (opens in a new tab)
- v2.0.3 BOM other parts spreadsheet: https://github.com/nasa-jpl/open-source-rover/blob/0bea824015778922d4d7e373fbf56a112efea46d/electrical/pcb/control_board/BOM/bom_v2.0.3_other_parts.csv (opens in a new tab)
- Check out the BOM documents.
- Know that all parts referenced in these instructions use the schematic "reference designator" from the silk screen on the pcbs, e.g. "C1", "J2", and "R28".
- You should look up the details of these parts within the v2.0.3 BOM board ref parts spreadsheet or the v2.0.3 BOM other parts spreadsheet.
- Use the spreadsheet to find the unique ID of the part that we use for ordering from Digikey + elsewhere; it also links to pictures of the part on the relevant website.
- Know that generally these instructions have enough images to clearly show and identify the parts.
- Whenever in doubt, the best thing to do is to look up the reference in the BOM spreadsheet.
In the original: Control Board Assembly, v2.0.3 (opens in a new tab)
22. Find the schematic and layout documentation
- You can see the KiCAD files in the repo, or see documentation of both the schematics (how all the electrical parts logically connect to one another) and the layout (how the parts are physically placed on the boards) in the control_board/documentation directory: https://github.com/nasa-jpl/open-source-rover/tree/0bea824015778922d4d7e373fbf56a112efea46d/electrical/pcb/control_board/documentation (opens in a new tab)
- Find in the documentation directory: control_board/documentation/3d_images - renderings of each of the two boards (https://github.com/nasa-jpl/open-source-rover/tree/0bea824015778922d4d7e373fbf56a112efea46d/electrical/pcb/control_board/documentation/3d_images (opens in a new tab)).
- Find in the documentation directory: control_board/documentation/layout - SVG files of each layer individually and of the entire board, for both boards (https://github.com/nasa-jpl/open-source-rover/tree/0bea824015778922d4d7e373fbf56a112efea46d/electrical/pcb/control_board/documentation/layout (opens in a new tab)).
- Find in the documentation directory: control_board/documentation/schematics.pdf - schematics as a PDF (https://github.com/nasa-jpl/open-source-rover/blob/0bea824015778922d4d7e373fbf56a112efea46d/electrical/pcb/control_board/documentation/schematics.pdf (opens in a new tab)).
- For notes on why the schematic is drawn the way it is, see control_board/README_schematic.md: https://github.com/nasa-jpl/open-source-rover/blob/0bea824015778922d4d7e373fbf56a112efea46d/electrical/pcb/control_board/README_schematic.md (opens in a new tab)
- That file covers KiCad power-port and PWR_FLAG conventions, the reference-designator policy when revving the board, and per-component notes on the LM358, Roboclaw, RPi, regulators, INA260 and PCA9685.
In the original: Control Board Assembly, v2.0.3 (opens in a new tab)
23. 3. Motor Board Assembly
- Look at Figure 3.0 to see the front (left) and back (right) of the motor board.
- Figure 3.0: front (left) and back (right) of motor board (opens in a new tab)
- Figure 3.0: front (left) and back (right) of motor board (opens in a new tab)
In the original: 3. Motor Board Assembly (opens in a new tab)
24. 3.1 Attach standoffs
You need
- M2.5 x 30mm standoffs
- bare board
- Attach M2.5 x 30mm standoffs to the bare board, for ease of future soldering work.
- Compare with Figure 3.1: Standoffs attached.
- Figure 3.1: Standoffs attached (opens in a new tab)
- Figure 3.1: Standoffs attached (opens in a new tab)
In the original: 3. Motor Board Assembly (opens in a new tab)
25. 3.2 Solder on power headers and fuse holder
You need
- XT30 headers
- fuse holder F1
- Solder on the XT30 headers for footprints J1, J3, J4, and J5, as well as the fuse holder F1.
- Make sure to choose the proper XT30 header for the corresponding J footprint:
- J1: male
- J3: female
- J4: female
- J5: male
- See the images to clarify which one is which.
- The pins on the XT30 will be slightly smaller than the holes on the board - this is fine, just make sure to use a lot of solder to connect them so there's a good mechanical connection.
- The soldering should be fairly straightforward once you start.
- Compare with Figure 3.2: Power headers + fuse holder footprints.
- Compare with Figure 3.3: Power headers + fuse holder attached.
- Compare with Figure 3.4: Power headers and fuse holder attached, zoomed out.
- Compare with Figure 3.5: Close up view of soldered footprints for headers.
- Figure 3.2: Power headers + fuse holder footprints (opens in a new tab)
- Figure 3.3: Power headers + fuse holder attached (opens in a new tab)
- Figure 3.4: Power headers and fuse holder attached, zoomed out (opens in a new tab)
- Figure 3.5: Close up view of soldered footprints for headers (opens in a new tab)
In the original: 3. Motor Board Assembly (opens in a new tab)
26. 3.3 Solder resistor R1 and power diode D1
You need
- resistor R1
- power diode D1
- Solder resistor R1 and power diode D1.
- Make sure to attach D1 in the correct orientation!
- Compare with Figure 3.6: Resistor R1.
- Compare with Figure 3.7: Through hole leads for R1 and D1.
- Compare with Figure 3.8: R1 and D1 attached.
- Figure 3.6: Resistor R1 (opens in a new tab)
- Figure 3.7: Through hole leads for R1 and D1 (opens in a new tab)
- Figure 3.8: R1 and D1 attached (opens in a new tab)
In the original: 3. Motor Board Assembly (opens in a new tab)
27. 3.4 Test the power connectors
You need
- Fuse (part# B1)
- Fuse holder
- Matching XT30 connectors
- Main external power switch (part# B9)
- Multimeter (part# B10)
- Power supply (or your battery)
- Insert a fuse (part# B1) into the fuse holder (as shown in Figure 3.8 below).
- Using the appropriate matching XT30 connectors, connect the power headers to a power supply (or your battery), the main external power switch (part# B9), and the multimeter (part# B10).
- When testing with a power supply, provide 14.8V DC and current limit to 1.0A.
- Just to the left of the main fuse is a XT30 connector labeled "Switch" – this if for the main on/off toggle switch.
- The XT30 connectors labeled MM Load and MM DC connect to the multimeter box.
- After testing, make sure to disconnect the power supply.
- Use a multimeter to test the voltage between test points T4 ("swt_out") and T2 ("Batt-"). This should read the same value as input from the power supply/battery (14.8V).
- Also check the voltage shown by the multimeter. This should show the same voltage as well.
Note: If you have already installed capacitors on the board, it is normal for power header J5 (MM Load) to briefly beep for less than a second when testing for continuity after soldering the power headers. This occurs because the capacitors momentarily charge. This behavior is expected and does not indicate a short circuit.
- Figure 3.9: Power headers connected to the power supply, on/off toggle switch (out of view under the PCB) and multimeter box. (opens in a new tab)
- Figure 3.10: Wires connected to power headers (opens in a new tab)
- Figure 3.11: Power supply providing 14.8V DC and current limited to 1.0A (opens in a new tab)
- Figure 3.12: Testing the voltage between T4 and T2 (opens in a new tab)
- Figure 3.13: Testing the power input to the multimeter (opens in a new tab)
In the original: 3.4 Test the power connectors (opens in a new tab)
28. Figure 3.9 to 3.13: what the figures show
- Use these diagrams to determine how to wire things together:
- Figure 3.9: Power headers connected to the power supply, on/off toggle switch (out of view under the PCB) and multimeter box.
- Figure 3.10: Wires connected to power headers.
- Figure 3.11: Power supply providing 14.8V DC and current limited to 1.0A.
- Figure 3.12: Testing the voltage between T4 and T2.
- Figure 3.13: Testing the power input to the multimeter.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: 3.4 Test the power connectors (opens in a new tab)
29. 3.5 Install the INA 260
You need
- INA260 daughter board (Option 1)
- 8x1 female header sockets
- 3x1 female header socket (cut from a longer Nx1 header)
- 8x1 male header pins
- 3x1 male header pins
- M2.5 x 12mm + 6mm standoffs (optional)
- 0 ohm resistor (or a wire) (Option 2)
- Before continuing, make sure to disconnect the power supply from the previous step!
- The INA260 daughter board is used for digital sensing of voltage and current, measurements that the raspberry pi can query over an I2C connection.
- Unfortunately, it can be hard to find these INA260 parts nowadays - if you can't find one you will need to bypass U1, because it is in the path of the battery positive side supply.
- Option 1: If you have an INA260 daughter board, you should install that in footprint U1 on the bottom side of the motor board.
- See control_board/README_schematic.md (https://github.com/nasa-jpl/open-source-rover/blob/0bea824015778922d4d7e373fbf56a112efea46d/electrical/pcb/control_board/README_schematic.md (opens in a new tab)) for part numbers for inter-board pins and sockets.
- 1. Attach 8x1 female header sockets to the eight pads on the bottom side of the INA260 / U1 footprint, as seen in Figure 3.14.
- This is sensing the current on the high side of the power, so PWR on the the Motor Board is connected to Vin+ on the INA260, and Vin- on the INA260 is connected to MMLOAD+, which connects to the main power bus of the rover.
- 2. Attach 3x1 female header socket (cut from a longer Nx1 header) to the two pads on the bottom side of the INA260 / U1 footprint, as seen in Figure 3.14.
- You'll need to manually remove the center pin, as there is no hole/pad on the brain board.
- 3. Attach 8x1 male header pins to the underside of the INA260, as seen in Figure 3.15.
- 4. Remove the center pin from a 3x1 male header pins, and solder to the INA260.
- 5. Solder across pads A0 and A1 on the INA260 (to set it to use I2C Address 0x45).
- 6. Insert the INA260 male pins into the U1 female sockets, as shown in Figure 3.16.
- 6. Optionally, install M2.5 x 12mm + 6mm standoffs between the motor board and the INA260.
- Option 2: If you don't have one, you will need to bypass U1.
- If you don't have an INA260, simply install a 0 ohm resistor (or a wire) in footprint R30, on the top side of the board, as shown in Figure 3.17.
Note: Before continuing, make sure to disconnect the power supply from the previous step! You should not have the board powered on while installing components.
- Figure 3.14: Sockets on U1 footprint installed (opens in a new tab)
- Figure 3.15: INA260 Pins installed (opens in a new tab)
- Figure 3.15: INA260 Pins installed (opens in a new tab)
- Figure 3.16: Headers on INA260 installed (opens in a new tab)
- Figure 3.17: INA260 bypassed (opens in a new tab)
In the original: 3.4 Test the power connectors (opens in a new tab)
30. 3.6 Install 5V bus regulator
You need
- 3 female headers for the daughter board (two 4x1's and a 5x1)
- Know that this is the power regulator for the 5V line, which powers all the motors.
- Install 3 female headers for the daughter board, into U4.
- You will need a two 4x1's, and a 5x1.
- Figure 3.18: 5V regulator headers installed (opens in a new tab)
- Figure 3.19: 5V regulator installed (opens in a new tab)
In the original: 3.6 Install 5V bus regulator (opens in a new tab)
31. 3.7 Install 12V bus regulator U3
You need
- 5x1 female header
- M2.5 x 10mm standoffs
- Solder a 5x1 female header to the U3 footprint.
- Attach M2.5 x 10mm standoffs between the regulator and motor board.
- Figure 3.20: U3 footprint (opens in a new tab)
- Figure 3.21: 12v regulator installed (opens in a new tab)
- Figure 3.22: 12v regulator installed (2) (opens in a new tab)
In the original: 3.6 Install 5V bus regulator (opens in a new tab)
32. 3.8 Install 3.3V bus regulator U7 and decoupling capacitor C7
You need
- 3.3V bus regulator (linear voltage regulator, same packaging as diode D1)
- Capacitor C7
- Know that the 3.3V bus regulator is a linear voltage regulator and is physically much smaller - it comes in the same packaging as diode D1.
- Make sure to install the regulator in the correct direction as shown in Figure 3.24.
- Know that capacitor C7 is the decoupling capacitor for the 3.3v bus.
- Make sure to install C7 in the proper direction, as shown in Figure 3.25.
- Install the side of the capacitor that has negative polarity indicators opposite the "+" sign on the footprint.
Note: Make sure to install the regulator in the correct direction as shown in Figure 3.24.
Note: Make sure to install C7 in the proper direction, as shown in Figure 3.25. One side of the capacitor has negative polarity indicators on it, that should be installed opposite the "+" sign on the footprint.
- Figure 3.23: U7 footprint (opens in a new tab)
- Figure 3.24: 3.3v regulator installed in U7 (opens in a new tab)
- Figure 3.25: Capacitor C7 installed (opens in a new tab)
In the original: 3.6 Install 5V bus regulator (opens in a new tab)
33. 3.9 Install resistors R15, R24, and BJT transistor Q1
You need
- Resistors R15 and R24
- BJT transistor Q1
- Install resistors R15, R24, and BJT transistor Q1.
- Know that these form the circuit for the alert signal LED logic.
- Figure 3.26: R15, R24, and Q1 footprints (opens in a new tab)
- Figure 3.27: R15, R24, and Q1 installed (opens in a new tab)
In the original: 3.6 Install 5V bus regulator (opens in a new tab)
34. 3.10 Test all voltage lines
You need
- Power supply
- Multimeter
- Test all the power buses/voltage lines using the test points on the far left side of the top side of the board (T7 through T12).
- The silk screen right of each hole indicates what voltage each test point should be at.
- First, connect the power supply to your board and provide 14.8v (see step 3.4).
- Then, use the multimeter to test the voltage at each test point.
- Figure 3.28: testing the 3.3v bus.
- Figure 3.29: testing the 5v bus.
- Figure 3.30: testing the 12v bus.
- Figure 3.31: testing the Batt+ bus (positive lead from the battery).
- Figure 3.32: testing the PWR bus (main board power plane, after battery protection circuitry ).
- Figure 3.28: testing the 3.3v bus (opens in a new tab)
- Figure 3.29: testing the 5v bus (opens in a new tab)
- Figure 3.30: testing the 12v bus (opens in a new tab)
- Figure 3.31: testing the Batt+ bus (positive lead from the battery) (opens in a new tab)
- Figure 3.32: testing the PWR bus (main board power plane, after battery protection circuitry ) (opens in a new tab)
In the original: 3.10 Test all voltage lines (opens in a new tab)
35. 3.11 Install PCA9685 daughter board in U2 footprint and capacitor C3
You need
- 6x1 female header
- 3x 2x4 female headers
- Male headers for the PCA9685 daughter board
- Capicator C3
- Option 2 only: two 1x1 pins on the PCA9685 and two 1x1 headers on the Motor board
- Before continuing, make sure to disconnect the power supply from the previous step!
- You should not have the board powered on while installing components.
- The PCA9685 is a PWM signal source, which we use as our corner motor controller.
- First you will need to install female headers on the motor board, for the PCA9685 daughter board to mate with.
- You may use larger headers to fill all the holes in the U2 footprint, but it's not really necessary for the normal working configuration of the motor board.
- Attach these headers to the appropriate spots in the U2 footprint, as shown in Figure 3.33 (U2 with female headers installed).
- You will need to attach male headers to the PCA9685 daughter board, as shown in Figure 3.34 (Male headers soldered onto PCA9685 daughter board).
- Also, 5v power is provided to the PCA9685 through the two holes at the top of the U2 header. You have a couple options for this.
- Option 1 - Wires: To connect these, I soldered 2 small wire leads on the PCA9685 daughter board, and then soldered them on to the motor board once I installed the PCA9685.
- Option 2 - 1x1 Pins/Headers: The V+ and GND on the PCA9685 don't exactly line up with the GND_motor and +5V_motor pins on the Motor board, but are close enough you can make them connect with two 1x1 pins on the PCA9685 and two 1x1 headers on the Motor board, as shown in Figure 3.35 (PCA9685 installed in motor board).
- Finally install capicator C3 as shown in Figure 3.36 (C3 installed).
Note: Before continuing, make sure to disconnect the power supply from the previous step! You should not have the board powered on while installing components.
- Figure 3.33: U2 with female headers installed (opens in a new tab)
- Figure 3.34: Male headers soldered onto PCA9685 daughter board (opens in a new tab)
- Figure 3.35: PCA9685 installed in motor board (opens in a new tab)
- Figure 3.36: C3 installed (opens in a new tab)
In the original: 3.10 Test all voltage lines (opens in a new tab)
36. 3.12 Install resistor R5 and capacitor C1
- Install resistor R5 and capacitor C1.
- Note that these are aids for the INA260, and can be left out if the IN260 is not used.
- Check your work against the picture below (Figure 3.37: PCA9685 installed in motor board).
Note: These are aids for the INA260, and can be left out if the IN260 is not used.
In the original: 3.12 Install resistor R5 and capacitor C1 (opens in a new tab)
37. 3.13 Install J21, J20, and resistors R6,R7,R8,R9,R10
You need
- 8x1 female header (for J20)
- Install J21, J20, and resistors R6,R7,R8,R9,R10.
- Note that J21 is the interconnect header for the brain board, and J20 is a signal test header for the motor board.
- Use an 8x1 female header for J20.
- Check your work against the picture below (Figure 3.38: Components installed, as viewed from top of board).
In the original: 3.12 Install resistor R5 and capacitor C1 (opens in a new tab)
38. 3.14 Test INA260 installation
You need
- Arduino
- To test the INA260, follow https://learn.adafruit.com/adafruit-ina260-current-voltage-power-sensor-breakout/arduino (opens in a new tab).
- Connect an Arduino to GND, SCL, and SDA on J20.
- Change the initalization step to the line shown below, to account for the I2C bus address.
- When you turn your power on, you should see something like the example output below in the Arduino serial terminal.
Initalization step
if (!ina260.begin(0x45)) {Example output in the Arduino serial terminal
Found INA260 chip Current: 85.00 mA Bus Voltage: 14456.25 mV Power: 1230.00 mWIn the original: 3.12 Install resistor R5 and capacitor C1 (opens in a new tab)
39. 3.15 Install resistors R2,R3,R4
- Install resistors R2,R3,R4.
- Check your work against the picture below (Figure 3.39: Components installed, as viewed from top of board).
In the original: 3.12 Install resistor R5 and capacitor C1 (opens in a new tab)
40. 3.16 Install Roboclaw standoffs, headers, and capacitors
You need
- M2.5 x 15mm standoffs for the 3 RC footprints
- Two female headers for each RC footprint: a 2x10 and a 5x1 for each RC
- Capacitors for each RC footprint (listed below)
- Now we'll add the parts for roboclaw footprints RC1, RC2, and RC3.
- First, install M2.5 x 15mm standoffs for the 3 RC footprints, as shown in Figure 3.40 and 3.41.
- Next, solder in the two female headers for each RC footprint. You'll need a 2x10 and a 5x1 for each RC.
- Solder these into the holes on the side of each RC footprint.
- Finally, install the capacitors for each RC footprint.
- For RC1: install capacitors C13,C15,C17,C20 (Figure 3.41) on the top side of the board.
- For RC2: install capacitors C2,C4,C9,C10 (Figure 3.40) on the underside of the board.
- For RC3: install capacitors C14,C16,C18,C21 (Figure 3.41) on the top side of the board.
- Technically, you can install the capacitors on either side of the board, but it makes for a cleaner presentation if you install them where their respective "C" labels are on the board.
Note: Technically, you can install the capacitors on either side of the board, but it makes for a cleaner presentation if you install them where their respective "C" labels are on the board.
- Figure 3.40: C2,C4,C9,C10 installed (opens in a new tab)
- Figure 3.41: C13,C15,C17,C20 and C14,C16,C18,C21 installed (opens in a new tab)
In the original: 3.16 Install Roboclaw standoffs, headers, and capacitors (opens in a new tab)
41. 3.17 Install motor supply headers J16,J17,J18
You need
- Motor supply headers J16,J17,J18
- Install the headers as shown in Figure 3.42.
- J16 on the top of the board is installed in the same way.
- Make sure to orient the connector in the proper direction, as indicated in the images.
Note: Make sure to orient the connector in the proper direction, as indicated in the images.
In the original: 3.16 Install Roboclaw standoffs, headers, and capacitors (opens in a new tab)
42. 3.18 Install 3x Roboclaw boards in footprints RC1, RC2, RC3
You need
- 3 roboclaw boards
- 6pos terminal block headers
- 16AWG wire (18AWG would also be fine)
- First, wire the 6pos terminal block headers to the roboclaw boards, as indicated in Figure 3.43.
- Cut the wires to about 5cm and tin the ends.
- Unless you have an older version of the PCB (v2.0.2 or earlier), wire the pins in the J16,J17,J18 headers directly to the pins on the corresponding side of the roboclaw.
- It is a direct 1-to-1 mapping all the way down, with no wires crossed.
- Use 16AWG wire (18AWG would also be fine).
- Do this for all three roboclaws.
- Then install the 3 roboclaws in the RC1, RC2, and RC3 footprints (Figure 3.44).
- It doesn't matter which roboclaw goes in which footprint - we will later set unique addresses in software for each of them to communicate over the serial bus.
- Figure 3.43: Wiring up the roboclaws (opens in a new tab)
- Figure 3.43: Wiring up the roboclaws (opens in a new tab)
- Figure 3.44: Installing the roboclaw boards (opens in a new tab)
In the original: 3.16 Install Roboclaw standoffs, headers, and capacitors (opens in a new tab)
43. 3.19 Install capacitors C5,C6
- Install capacitors C5, C6.
- Compare your board with Figure 3.45.
In the original: 3.19 Install capacitors C5,C6 (opens in a new tab)
44. 3.20 Install corner servo header J19, and capacitor C19
- Install corner servo header J19.
- Install capacitor C19.
- Make sure to install C19 in the proper direction, as shown in Figure 3.46.
- Find the side of the capacitor that has negative polarity indicators on it.
- Install that side opposite the "+" sign on the footprint.
- Compare your board with Figure 3.46: J19 and C19 installed (top of photo).
Note: Make sure to install C19 in the proper direction, as shown in Figure 3.46. One side of the capacitor has negative polarity indicators on it, that should be installed opposite the "+" sign on the footprint.
In the original: 3.19 Install capacitors C5,C6 (opens in a new tab)
45. 3.21 Install LED array U5
- Install LED array U5.
- Make sure to align the slightly "chipped"/beveled corner of the LED array with the beveled corner of the U5 footprint, to have proper LED polarity.
- Compare your board with Figure 3.47.
Note: Make sure to align the slightly "chipped"/beveled corner of the LED array with the beveled corner of the U5 footprint, to have proper LED polarity.
In the original: 3.19 Install capacitors C5,C6 (opens in a new tab)
46. 3.22 Install drive motor headers J8,J9,J10,J11,J13,J14
- Install drive motor headers J8, J9, J10, J11, J13, J14.
- Compare your board with Figure 3.48.
In the original: 3.19 Install capacitors C5,C6 (opens in a new tab)
47. Look at the brain board
- Look at the front (left) and back (right) of the brain board in Figure 4.0.
- Figure 4.0: front (left) and back (right) of brain board (opens in a new tab)
- Figure 4.0: front (left) and back (right) of brain board (opens in a new tab)
In the original: 4. Brain Board Assembly (opens in a new tab)
48. 4.1 Install resistors
You need
- Resistor R11
- Resistors R25, R26, R27, R28, R29
- Resistors R31, R32, R33, R34, R35
- Install 3 sets of resistors: R11; R25, R26, R27, R28, R29; and R31, R32, R33, R34, R35.
- Compare your board with Figure 4.1 (resistors installed).
In the original: 4. Brain Board Assembly (opens in a new tab)
49. 4.2 Install switch SW1
You need
- Switch SW1
- Install switch SW1.
- Compare your board with Figure 4.2 (switch SW1 installed).
Note: Make sure to install the switch in the correct direction to match the footprint.
In the original: 4. Brain Board Assembly (opens in a new tab)
50. 4.3 Install LED array U6 and various headers on top of board
You need
- U6 LED array
- J22, J23 raspberry pi ribbon cable headers
- J25 3x4 male headers - "i2c breakout"
- J24 1x6 shrouded male header (white color) - "arduino comm"
- J30 8x1 male header - "signal test header"
- Install the U6 LED array.
- Install the J22 and J23 raspberry pi ribbon cable headers.
- Install the J25 3x4 male headers ("i2c breakout").
- Install the J24 1x6 shrouded male header (white color) ("arduino comm").
- Install the J30 8x1 male header ("signal test header").
- Compare your board with Figure 4.3 (U6 and other headers installed).
Note: Make sure to align the slightly "chipped"/beveled corner of the LED array with the beveled corner of the U6 footprint, to have proper LED polarity.
Note: Make sure to match the gaps on the sides of the J22 and J23 headers with the gaps indicated in the silk screen for these footprints.
Note: Make sure to install J24 with the gap facing to the right of the top side of the board (as shown in Figure 4.3).
In the original: 4. Brain Board Assembly (opens in a new tab)
51. 4.4 Install J26 header and capacitor C32 on back of board
You need
- J26 header
- Capacitor C32
- Install the J26 header on the back of the board.
- Install capacitor C32 on the back of the board.
- Ignore the resistors and Figure 4.4 for the moment.
- Trim the leads of C32 before you continue.
Note: Make sure to match the gaps on the side of the J26 header with the gap indicated in the silk screen for the footprint.
In the original: 4. Brain Board Assembly (opens in a new tab)
52. Install other breakouts on top of board
You need
- J27, J28, J29 2x1 female headers
- Finally, install the J27, J28, J29 2x1 female headers in front of the leads of C32.
In the original: 4. Brain Board Assembly (opens in a new tab)
53. 4.5 Install ESTOP and Serial TXD/RXD LED logic circuit components
You need
- Q2, Q3, Q4, Q5, Q6 (BJT transistors)
- R18, R19, R20, R22, R23 (68 Ohms ±5% resistors)
- R16, R17, R36, R37, R38 (10k Ohms ±5% resistors)
- C33, C34 (10k pF ±10% 50V Ceramic Capacitors)
- D8, D9 (75V 300mA Diodes)
- Install all the components used for the E_STOP, E_STOP2, E_STOP3 logic signals and LED indicators, and also the LED indicators for serial TXD/RXD activity.
- Install all of these as indicated in Figure 4.5: Q2, Q3, Q4, Q5, Q6 (BJT transistors) (Polarity Warning!).
- Install R18, R19, R20, R22, R23 (68 Ohms ±5% resistors).
- Install R16, R17, R36, R37, R38 (10k Ohms ±5% resistors).
- Install C33, C34 (10k pF ±10% 50V Ceramic Capacitors).
- Install D8, D9 (75V 300mA Diodes) (Polarity Warning!).
- Match the BJTs and the diodes (D8,D9) with the image correctly.
- Note that the black band on one side of the diodes faces to the right in Figure 4.5.
Note: Polarity Warning! Polarity/installation direction matters for both the BJTs and the diodes (D8,D9). Make sure to match these with the image correctly!
Note: T13, T14, T15 should be left empty for probing.
In the original: 4.5 Install ESTOP and Serial TXD/RXD LED logic circuit components (opens in a new tab)
54. 4.6 Mount the Raspberry Pi board
You need
- M2.5 x 20mm standoffs
- Raspberry Pi
- Ribbon cable from the GPIO on the Pi
- Using M2.5 x 20mm standoffs, attach the raspberry pi to the top of the brain board, as shown in figure 4.6.
- Attach the ribbon cable from the GPIO on the Pi to J22.
Note: Important Note if you are using a Raspberry Pi 5: The Raspberry Pi (RPi) 5 has different power requirements than previous RPi generations. The two 5v lines attached to the RPi via the ribbon cable are not to enough to adequately power the RPi 5, especially if attaching any peripherals, like a camera.
Note: Until further revisions are done to the PCB, it is recommeded to power the RPi 5 through a USB C connector. You can cut a USB C cable and identify the V+ and Ground lines using a digital multimeter, then solder those lines to the 5v and Gnd test connection points on the motorboard. You can then plug the USB C connector into the RPi 5 to power it.
Note: You can also order USB-C cables with PWR/GND broken out already (see Extra Parts List: https://github.com/nasa-jpl/open-source-rover/blob/0bea824015778922d4d7e373fbf56a112efea46d/parts_list/extra_parts.md (opens in a new tab)).
- Figure 4.6: RPi mounted on the brain board (opens in a new tab)
- Figure 4.6: RPi mounted on the brain board (opens in a new tab)
In the original: 4.5 Install ESTOP and Serial TXD/RXD LED logic circuit components (opens in a new tab)
55. Mate the brain board to the motor board
You need
- M2.5 x 10mm standoffs
- Using M2.5 x 10mm standoffs, attach the brain board to the top of the motor board, as shown in Figure 4.7.
- Compare your result with the pictures of Figure 5.0.
- Figure 5.0: Mating the brain board to the motor board (opens in a new tab)
- Figure 5.0: Mating the brain board to the motor board (opens in a new tab)
In the original: 5. Motor Board and Brain Board Mating (opens in a new tab)
56. Check the completed control board
- You're now done with the assembly.
- Compare your board with Figure 4.8 (completed control board, with INA260).
- Compare your board with Figure 4.9 (completed control board, INA260 bypassed).
- Next, move on to testing and configuration.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Figure 4.8: Completed control board (with INA260) (opens in a new tab)
- Figure 4.8: Completed control board (with INA260) (opens in a new tab)
- Figure 4.9: Completed control board (INA260 bypassed) (opens in a new tab)
In the original: 5. Motor Board and Brain Board Mating (opens in a new tab)
57. Get ready to test the drive motors, wiring and PCB
You need
- wiring you made earlier in the wiring readme (https://github.com/nasa-jpl/open-source-rover/blob/0bea824015778922d4d7e373fbf56a112efea46d/electrical/wiring/README.md (opens in a new tab))
- 6 drive motors
- completed PCBs
- a power source: a benchtop power supply or a charged battery
- wheel and bore hub (https://www.gobilda.com/1310-series-hyper-hub-8mm-rex-bore/ (opens in a new tab))
- Know the purpose: before you insert the wiring and PCBs into the mechanical assemblies, you test and configure the drive motors, wiring, and PCB.
- This lets you fix these critical parts if something doesn't look right, and lets you move to running the software as soon as the rover is assembled.
- Secure the PCB assembly so it doesn't fall or move while it's on.
- You can attach it to the bottom body plate already.
- Avoid contact with any surfaces that can generate high-voltage sparks like carpets, as that can destroy the electrical components.
Note: Avoid contact with any surfaces that can generate high-voltage sparks like carpets as that can destroy the electrical components.
In the original: 6. Testing the PCB and wiring for the drive motors (opens in a new tab)
58. Connect the motors and power the board
- Arrange the drive motors around the PCB and connect them using the wiring.
- Since you will be calibrating them, make sure you connect the right motors to the right PCB receptacles.
- It helps to mark them using a sticky note or marker.
- The silk screen lettering should help here.
- Connect a power source to your board as you did before.
- Verify that the roboclaws all receive power.
- A green light should be on on each roboclaw.
In the original: 6. Testing the PCB and wiring for the drive motors (opens in a new tab)
59. 6.1 RoboClaw Testing and Verification: get the software
- Know that you will go one by one and test the operation of the RoboClaw Motor controllers, using the GUI provided by the manufacturer of the motor controllers.
- Find the GUI on the BasicMicro website (https://www.basicmicro.com/downloads (opens in a new tab)), under general downloads, then BasicMicro Motion Studio.
- You also need the
USB RoboClaw Windows Driverfrom the RoboClaw General Downloads section of the page. - Install the driver before you run the Motion Studio.
In the original: 6. Testing the PCB and wiring for the drive motors (opens in a new tab)
60. Connect to a motor controller and check its values
You need
- USB to Micro USB cable
- Insert a USB to Micro USB cable from your computer to the motor controller you are going to be testing.
- In the Basic Motion GUI you should see an available device appear.
- It might require an update to proceed.
- Install the latest firmware update and then connect to the device.
- Verify that all status lights are green.
- Verify that the following values are shown at the top: Temperature1: ~30
- M1/M2 Amps: 0.00
- M1/M2 Encoder: 0
- M1/M2 Speed: 0
- Main Battery: Between 11.5-16.7V
- Logic Battery: 5V
- Model: 2x7a
In the original: 6. Testing the PCB and wiring for the drive motors (opens in a new tab)
61. 6.2 Configuring general settings
- Know that the default address of each Roboclaw unit is
128, which you want to change so the Raspberry Pi can distinguish between Roboclaws and thus motors. - Leave Roboclaw 1 at 128 and set Roboclaw 2 and 3 to 129 and 130 respectively.
- Open the
General Settingstab. - Under
Setup, setControl ModetoPacket Serial. - Enable the
Multi-Unitmode flag. - Under
Serial, set thePacket Serial Addressto either 128, 129, or 130 depending on which roboclaw is plugged in. - Set the
Baudrateto115200. - Under
I/O, make sureEncoder 1 ModeandEncoder 2 Modeare both set toQuadrature. - Under
Battery, setMax Main Batteryto18.5VandMin Main Batteryto11.5V. - Next, you'll check the correct direction and calibrate velocity before you repeat the process for the other roboclaws and motors.
In the original: 6.2 Configuring general settings (opens in a new tab)
- Know that the default address of each Roboclaw unit is
62. 6.3 Prepare PWM signal
- Click on the PWM tab.
- You will now send a PWM signal to the motor and test that connections are all made correctly to the motor and encoder.
- Select the
Enable Space Bar Stop Allbutton in the bottom left, which allows you to set velocity to zero when you hit the space bar.
In the original: 6.2 Configuring general settings (opens in a new tab)
63. 6.4 Vary PWM signal
- Slowly move the slider bar for the corresponding motor output channel.
- Verify that the right motor is spinning and that the encoder value is also changing.
- If there is no movement, the motors aren't getting current through the MA and MB wires. Check your wiring and look for red status lights within the Motion Studio GUI to troubleshoot.
- If the motor spins but the encoder value for that same motor/channel (M1 or M2) isn't changing, there likely is an issue with your encoder cabling. Use a multi-meter to verify connectivity.
- If all your connections are correct, you may have to test your solder contact between the components on the board itself.
- Switch direction of the slide bar and verify that it spins the other direction and the encoder value does the opposite of previous as well.
- Once you've verified this, focus on the direction. You want the motor to spin as in the diagram when you send a positive PWM.
- For both motors check that the direction matches the diagram.
- If it doesn't match, for that motor in the
General Settingstab, selectM1 Reverse. Check again to verify it matches. - Now verify that the encoder value increases when you send a positive PWM for each motor.
- If it doesn't increase, select the
invertcheckbox inGeneral Settingsand verify again.
Note: When troubleshooting electrical connections, always remove power to the PCB to prevent shorting and injury.
In the original: 6.2 Configuring general settings (opens in a new tab)
64. 6.5 Calibrate Velocity Settings
- Click on the Velocity Settings tab.
- Here you will tune the velocity settings of the motor; these can only be done after setting the PWM direction in the previous step, so ensure that those are done first.
- To get a precise calibration the wheels should be attached to the motors as they add some inertia to the system. Reference the wheel assembly instructions (https://github.com/nasa-jpl/open-source-rover/tree/0bea824015778922d4d7e373fbf56a112efea46d/mechanical/wheel_assembly (opens in a new tab)) to see how to attach the wheels to the motor.
- While the individual parameters can be tuned to precise values, for an initial/minimum setup you can use the Autotune feature.
- First make sure your motor and wheel can freely spin (i.e. elevated off the ground and not in contact with anything).
- Select
Tune M1underAutotune. - The motor will rock back and forth several times slowly and quickly. Once the motor stops, the tuning is complete.
- Do the same for the second motor by selecting
Tune M2. - The velocity calibration is now complete.
- The individual PID values can also be tuned manually after autotuning to tweak the motor performance. Roboclaw has an overview of all of the velocity settings here: https://resources.basicmicro.com/velocity-settings-in-motion-studio/ (opens in a new tab)
- Save these settings to each Roboclaw's non-volatile memory by clicking on the
Devicemenu >Write Settings. - Repeat starting from Section 6.1 for the other two roboclaws.
Note: Make sure to save these settings to each Roboclaw's non-volatile memory by clicking on the
Devicemenu >Write Settings.In the original: 6.2 Configuring general settings (opens in a new tab)
65. About the wheel assembly
- The wheel assembly attaches the wheels to the motors and mounts the motors to the rest of the rocker-bogie suspension system that makes up the robot chassis.
- These are relatively simple to assemble.
- If you look carefully at the image below, you'll notice that the wheel assemblies are identical, instead of mirror images of each other.
- For example, notice that the U brackets for the corner wheels are facing different directions on the left and right sides.
- This is a defect in the OnShape model.
- When building your rover, you should make the wheel assemblies mirror images of each other - all the openings to the U channel should point to the rear of the rover.
Note: The wheel assemblies in the image are identical instead of mirror images of each other. This is a defect in the OnShape model. When building your rover, you should make the wheel assemblies mirror images of each other - all the openings to the U channel should point to the rear of the rover.
In the original: Wheel Assembly (opens in a new tab)
66. [DollarHobbyz Traxxas Wheels only] Drilling the wheels
You need
- DollarHobbyz Traxxas Wheels
- Drill
- Hyper Hub (https://www.gobilda.com/1310-series-hyper-hub-8mm-rex-bore/ (opens in a new tab))
- If you bought the DollarHobbyz Wheels, you will need to drill some holes through the plastic to allow attaching them to the hubs that fit onto the motor axes.
- If you have the smaller or bigger Wasteland Wheels from GoBilda, you can skip this step.
- The wheel is normally meant to be mounted using one bolt through the middle of the rim.
- This will not work well in our case, as the rover sees very high torque at the wheel and the one-bolt system would be difficult to attach to any part of our system without the wheel slipping.
- To attach more firmly, we will drill two holes on either side of the original hole where we will mount the motor hub clamp.
- Drill at least 2 holes in the wheels such that they can be mounted to the Hyper Hub that attaches to the motor shaft.
- You'll want to make sure the holes you drill are centered, otherwise the wheel will wobble while driving.
- Once you've found where to drill the holes, consider using a center punch or small drill bit first before drilling to ensure your drill bit doesn't start 'wandering' before it locks into position.
- The distance from each hole center to the center of the wheel is $$\sqrt(8^2 + 8^2) \approx 11.3mm$$
- You can download a drill guide (https://cad.onshape.com/documents/4613de44a35fb12512683e12/w/c211c6182fe04b1f4dd7ceab/e/b6566fc4043fba7013bcec85?renderMode=0&uiState=68f932b6ef0aa14fbdc9b460 (opens in a new tab)) designed to be laser-cut from 3mm acrylic and assembled as shown in the pictures to help you drill.
Note: You'll want to make sure the holes you drill are centered, otherwise the wheel will wobble while driving.
Note: Consider using a center punch or small drill bit first before drilling to ensure your drill bit doesn't start 'wandering' before it locks into position.
- Picture on cdn11.bigcommerce.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Wheel Assembly (opens in a new tab)
67. Assembling the base wheel mounts
You need
- All the parts in the drive wheel assembly parts list (https://github.com/nasa-jpl/open-source-rover/blob/0bea824015778922d4d7e373fbf56a112efea46d/parts_list/README.md#Parts-for-drive-wheel-assembly (opens in a new tab))
- You will need all the parts in the drive wheel assembly parts list.
- Next, we will build the wheel assemblies, which are divided into the middle wheels and corner wheel assemblies.
- We will build 6 identical base wheels and then add slightly more complexity onto 4 of those, which will eventually become the corner wheels.
- Attach the clamping mount and REX bore hub to the motor.
- We will adjust their positioning later.
In the original: Wheel Assembly (opens in a new tab)
68. Four corner assemblies: overview
You need
- Four of the six drive assemblies you just built
- Know that four of the six drive assemblies you just built will become the corner motors.
- Know that this only requires two mechanical pieces along with some screws, but we'll want to route the wiring through the extruded channel.
- Compare your result, excluding wiring, with the side view and the pair of corner assemblies in the images.
- Note that the sides of the rover are mirrored and so you'll be building 2 pairs of similar but not exactly the same subassemblies, as shown in the right image.
The result excluding wiring should look as follows:
side view without wiring one of two pairs of corner assemblies <img src="https://raw.githubusercontent.com/nasa-jpl/open-source-rover/0bea824015778922d4d7e373fbf56a112efea46d/mechanical/wheel_assembly/images/corner_side.png (opens in a new tab)" height=400/> <img src="https://raw.githubusercontent.com/nasa-jpl/open-source-rover/0bea824015778922d4d7e373fbf56a112efea46d/mechanical/wheel_assembly/images/corner_mirror.png (opens in a new tab)" height=400/> - Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Four corner assemblies (opens in a new tab)
69. Lay out the pieces and route the wiring
You need
- 2911-0014-0001 grommets
- DuPont to 4-pin JST encoder pins you created in wiring
- top low-profile U-channel
- extruded aluminum goRail
- motor bracket
- two motor power cables
- Start by laying out the pieces for each corner so you end up with the 2 mirrored pairs.
- Install 2911-0014-0001 grommets at the top and bottom of the extruded aluminum goRail, to protect your wires as they go around the corner (not shown in the image).
- Take the DuPont to 4-pin JST encoder pins you created in wiring and route them through the top low-profile U-channel, the extruded aluminum goRail, and finally through the motor bracket.
- Position the DuPont connector at the top with the 4-pin JST connector at the bottom, ready to be connected to the motor encoder pins.
- Route the two motor power cables through the same parts in the opposite direction.
In the original: Four corner assemblies (opens in a new tab)
70. Screw the corner parts together
You need
- 3 or 4 M4x6mm button screws (inside the U-channel)
- 3 or 4 M4x8mm socket screws (at the top)
- a clamping motor mount
- 4 M4x6mm button screws (for the clamping motor mount)
- Screw the parts together using 3 or 4 M4x6mm button screws inside the U-channel and using 3 or 4 M4x8mm socket screws at the top.
- Don't tighten the screws too much yet as this will allow you to adjust wiring.
- Place a clamping motor mount on the end of the U-channel farthest from the goRail with 4 M4x6mm button screws.
In the original: Four corner assemblies (opens in a new tab)
71. Adjust and protect the wiring
You need
- split sleeve or other shielding
- Adjust the wiring so there is minimal wiring inside the channel.
- Make sure to protect your wiring from chafing or cutting from the sharp aluminum edges with split sleeve or other shielding.
- Be careful when adjusting wires so to not damage the plastic shielding and potentially create shorts.
Note: Make sure to protect your wiring from chafing or cutting from the sharp aluminum edges with split sleeve or other shielding!
Note: Be careful when adjusting wires so to not damage the plastic shielding and potentially create shorts.
In the original: Four corner assemblies (opens in a new tab)
72. Optional wiring arrangement
- Know that there is not a lot of clearance between the U-channel and the motor for the wiring to pass through, especially when wrapping the cables in a sleeve.
- You can choose to cut a notch in the extruded aluminium goRail just above the U-channel, as shown in the images.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Four corner assemblies (opens in a new tab)
73. Repeat and check the assembled corners
- Repeat this for the three other corner assemblies.
- Compare your result with the image of the assembled corners.
- Know that the image shows mirror image corner wheel assemblies without the wheels attached yet, with wiring with sleeves visible.
In the original: Four corner assemblies (opens in a new tab)
74. Body overview
- Read the overview: the body is the housing of all the electronics for the rover.
- The body also acts as the attachment point for the differential pivot and the body axis that the rocker-bogies on either side connect to.
- The picture shows the body without PCB and with some of the body plates made transparent.
In the original: Main Body Assembly (opens in a new tab)
75. Gather the pieces for the body frame
You need
- 4x 41 hole, 328mm square beams
- 5x 29 hole, 232mm square beams
- 8x 12 hole, 96mm square beams
- 26x M4x16 socket screws
- Gather the pieces from the parts list for the body (see "What to buy" in the parts list).
In the original: Main Body Assembly (opens in a new tab)
76. Assemble the bottom frame
You need
- 2x 29 hole beams
- 2x 41 hole beams
- M4x16 screws
- Connect 2x 29 hole and 2x 41 hole beams with M4x16 screws as shown.
- Be sure to attach the cross beams 1 hole in on the long beams.
- Insert 1 29 hole beam into hole #16, counting from the front of the rover. (TODO: Update image to move crossbar.)
In the original: Main Body Assembly (opens in a new tab)
77. Assemble the top frame
You need
- 2x 29 hole beams
- 2x 41 hole beams
- M4x16 screws
- Connect 2x 29 hole and 2x 41 hole beams with M4x16 screws as shown.
In the original: Main Body Assembly (opens in a new tab)
78. Attach the verticals
You need
- 8x 12 hole beams
- Connect 8x 12 hole beams along the long edges in holes #1, 17, 25, and 41 on both sides. (TODO: Update image to move crossbar.)
In the original: Main Body Assembly (opens in a new tab)
79. Assemble the bearing support structures that connect to the rocker-bogie
You need
- M4 16mm socket screws
- M4x12 screws
- M4x8 screws
- Make two of these and connect them to the sides of the body.
- They should be installed exactly in the middle, which means that you're going to connect each side to the 17th hole on the long 41-hole beams on the top and bottom of the body frame.
- Use the M4 16mm socket screws.
- Use M4x12 screws on the end toward the outside of the rover and M4x8 screws on the end toward the center of the rover end.
- The bearings have a flat side and a 'hollow' side. The hollow sides should both be pointing to the center of the rover side, as shown in the image.
In the original: Main Body Assembly (opens in a new tab)
80. Install the bearing supports on the verticals
- Now, install the supports on the 6th hole from the top of the 12 hole beam, and the 5th hole from the bottom.
- If it's a bit tight, loosen up the verticals until all the screws are started, then tighten all of them after.
In the original: Main Body Assembly (opens in a new tab)
81. Gather the parts for the hinges for the top body plates
You need
- 20 or 22mm M4 standoffs
- 3x5 hole plate
- hinge assembly (assemble following the instructions on GoBilda: https://www.gobilda.com/plastic-hinge-2-pack/ (opens in a new tab), orientation matters)
- You will need the 20 or 22mm M4 standoffs, the 3x5 hole plate, and the hinge assembly.
- Assemble the hinge following the instructions on GoBilda (https://www.gobilda.com/plastic-hinge-2-pack/ (opens in a new tab)); orientation matters.
Note: Orientation matters when assembling the hinge.
In the original: Main Body Assembly (opens in a new tab)
82. Attach the standoffs to the 3x5 plate
You need
- M4x8mm socket head screws
- Attach the standoffs to the 3x5 plate with M4x8mm socket head screws.
In the original: Main Body Assembly (opens in a new tab)
83. Attach the plate to the top beams
- Attach the plate to the top front and top rear beam, leaving 4 holes to the outside of the plate.
In the original: Main Body Assembly (opens in a new tab)
84. Attach the hinges to the standoffs
You need
- M4x8 screws
- Attach the hinges to the standoffs with M4x8 screws.
- Face the flat part of the plastic to the outside and top as shown.
- You will attach the body plate to the top part of the hinge in a later step.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Main Body Assembly (opens in a new tab)
85. About the differential pivot
- The Differential Pivot helps to offload forces from one side of the rover to the other while climbing.
- The differential pivot is crucial in the rocker-bogie suspension system and is designed to help keep all 6 wheels on the ground at all times.
- It also allows a second attachment point for the body so that it does not freely rotate about the center axes that run through it and connects the two rocker-bogies.
In the original: Make the differential pivot (opens in a new tab)
86. Gather the parts and assemble the idler bearing hub
You need
- The parts shown in the picture below
- Gather the parts shown below.
- Assemble the idler bearing hub following the instructions on GoBilda: https://www.gobilda.com/idler-bearing-hub-32mm-od-16mm-height/ (opens in a new tab).
Note: TODO from the creator: update image to show M4x6mm button screws instead of the M4x6mm socket head screws show here (and in the CAD).
In the original: Make the differential pivot (opens in a new tab)
87. Make the turnbuckles (step 1)
You need
- Block mount
- 7-hole linkage
- M4x10mm button-head screws
- 20mm threaded rod
- Steel ball linkage, one on each end of the rod
- Connect the block mount to the 7-hole linkage using M4x10mm button-head screws.
- Connect the 20mm threaded rod to a steel ball linkage on each end to create two turnbuckles.
In the original: Make the differential pivot (opens in a new tab)
88. Connect the turnbuckles (step 2)
You need
- M4x20 socket head screw and lock nut
- M4x16 button head screw and lock nut
- Connect the turnbuckle to the 7-hole bar linkages with an M4x20 socket head screw and lock nut.
- Connect the turnbuckle to the second hole from the end of the U channel with an M4x16 button head screw and lock nut.
- Repeat for other side.
In the original: Make the differential pivot (opens in a new tab)
89. Connect the pivot to the idler bearing hub (step 3)
You need
- Two M4x6 button-head screws
- Connect the differential pivot (the whole assembly) to the idler bearing hub with two M4x6 button-head screws.
In the original: Make the differential pivot (opens in a new tab)
90. Mount the hub to the crossbars (step 4)
You need
- 2x 29 hole, 232mm square beams
- Longer 41 hole, 328mm beams
- M4x16mm socket head screws
- M4x12mm socket head screws
- Add 2x 29 hole, 232mm square beams in holes #28 and 30 from the front, on the longer 41 hole, 328mm beams, using M4x16mm socket head screws.
- Mount the idler bearing hub to the crossbars with M4x12mm socket head screws as shown.
- The differential pivot should be able to freely rotate around the body.
- We'll attach the side of the differential pivot to the rocker-bogies later.
In the original: Make the differential pivot (opens in a new tab)
91. Install the laser cut body plates
You need
- M8x16 button head screws
- Nuts
- Use M8x16 button head screws because of their lower profile along with nuts on the inside so the screws don't fall out while driving.
- If you've completed the PCB assemblies yet, you can attach them to the bottom body plate already, but you can also do this later.
Note: Use nuts on the inside so the screws don't fall out while driving.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Make the differential pivot (opens in a new tab)
92. Understand the rocker-bogie suspension
- The Rocker-Bogie is the suspension system that enables the rover to climb aggressive obstacles.
- The design allows all 6 wheels to be in contact with the ground as much as possible, increasing traction.
- The suspension system on a typical consumer vehicle can traverse obstacles about half the height of one wheel; the Rocker-Bogie suspension system can traverse obstacles over 2 times the height of the wheel.
- Features: modular link lengths give the ability to customize rover geometry.
- Features: it is optimized for climbing in the forwards direction.
- Features: a rigid support structure resists lateral bending/twisting about the Bogie joint.
In the original: Rocker-Bogie Suspension (opens in a new tab)
93. Learn how the rocker-bogie attaches to the rover
- Servo block output shafts connect to corner motor assemblies.
- The rocker-bogie connects to the body axis clamp via two brackets that are detailed in the body assembly section: https://github.com/nasa-jpl/open-source-rover/blob/0bea824015778922d4d7e373fbf56a112efea46d/mechanical/body/README.md#assemble-the-bearing-support-structures-that-connect-to-the-rocker-bogie (opens in a new tab)
- The middle drive motor connects to the extruded shaft at the bottom.
In the original: Rocker-Bogie Suspension (opens in a new tab)
94. Prepare for the assembly
- You will be creating two almost identical assemblies.
- The instructions below are for one side.
- We recommend building one side first rather than trying to build both sides in parallel, that way you'll be able to make the other side faster.
- Before you start building, familiarize yourself with the details of this assembly, in particular because you'll be building two assemblies that are mirrorred.
- Specifically, you'll want the open slits on the bogie to be facing the same side.
close up showing slits
close up showing slits <img src="https://raw.githubusercontent.com/nasa-jpl/open-source-rover/0bea824015778922d4d7e373fbf56a112efea46d/mechanical/rocker_bogie/images/slit_direction_closeup.png (opens in a new tab)" height=400/> In the original: Rocker-Bogie Suspension (opens in a new tab)
95. Create the rocker-bogie joint
You need
- Spacer 1522-0010-0040 of length 4mm
- Spacer 1514-0010-0060 of length 6mm
- First, gather the parts you'll need for the joint that connects the rocker to the bogie.
- Assemble the joint following the steps in the images below.
- The clamp in the middle isn't symmetric and protrudes on one side, so two spacers of different lengths are used. You can see this in the top left image.
- You'll use spacer 1522-0010-0040 of length 4mm on the side of the clamp that has the protrusion.
- On the other, flat side, you'll use spacer 1514-0010-0060 of length 6mm.
- This creates a tight assembly that prevents the joint from flexing from side to side.
- Wait with the yellow and orange (ball bearing) parts. The bearing should first be inserted into the yellow hub.
Joint Parts
Tip: Use the OnShape model and navigate to the tab 'rocker-bogie' in the bottom to isolate this assembly. Then right click on various parts to temporarily hide them so you can see how the assembly works in 3D.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Rocker-Bogie Suspension (opens in a new tab)
96. Attach the control arms to the joint bearings
You need
- 8x socket or button M4 screws of length 12mm (or 10mm)
- Washers
- Referencing the orange and yellow parts in the image below, connect the hub (yellow) with the inserted bearing to the control arm using 8x socket or button M4 screws of length 12mm (or 10mm).
- Use washers so that the screw doesn't bury itself in the plastic control arm and to make sure the screw doesn't extend (much) on the insides of the hubs.
- When done, the bearing should not be able to fall out.
- Put these two assemblies aside for now.
- We'll connect each finished joint to the rockers in the following step.
In the original: Rocker-Bogie Suspension (opens in a new tab)
97. Create the bogie: attach plates to the extrusions
You need
- 3 hole x 5 hole plate
1116-0024-0040(one for each extrusion) - length 96mm aluminum extrusions
1118-0024-0096(two) - 10mm button head screws
- 3-hole flat beam
- 10mm socket head screws
- Attach a 3 hole x 5 hole plate
1116-0024-0040to each of two length 96mm aluminum extrusions1118-0024-0096with 10mm button head screws as shown below. - Pay attention to direction of the slits for the cabling.
- You'll want the slit to face the short side of the plate.
- Now attach the plate to a 3-hole flat beam, and to the bogie joint, with 10mm socket head screws.
- You'll want the slits to face the top of the rover (the bogie arm) so you can route the cabling going to the front servo and motor inside of the channel.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Create the bogie (opens in a new tab)
- 3 hole x 5 hole plate
98. Attach the front servo bracket and middle wheel bracket
You need
- bracket
1111-0003-0001 - U channel
1120-0002-0072 - three or four M4 screws for each attachment
- Attach bracket
1111-0003-0001to the top of the extruded shaft you just attached to the joint using three or four M4 screws. - Attach U channel
1120-0002-0072to the bottom of the other extruded shaft you just attached to the joint using three or four M4 screws.
In the original: Create the bogie (opens in a new tab)
- bracket
99. Route wiring through bogie
You need
2911-0014-0001grommets- 54cm extension for the servo wiring
- 54cm encoder wires for the front corner motor
- protective sleeve
- Install
2911-0014-0001grommets at the top and bottom of the extruded aluminum goRail (inside the U channel on the bottom, and inside the servo bracket on the top), to protect your wires as they go around corners. - Run the servo wiring, including a 54cm extension, down from the front servo, which should be near the front servo bracket, down toward the joint.
- Run the 54cm encoder wires for the front corner motor from the front servo bracket toward the joint.
- Run the middle motor power wiring from the U channel up toward the joint.
- Run the middle motor encoder wires from the joint down to the U channel (or as shown in the picture, around it if you choose to notch your shafts), and encase in the protective sleeve.
- It should look like the last picture below, except that your servo block and servo won't be installed at this point.
Bogie wiring installed.
 Bogie wiring installed. In the original: Create the bogie (opens in a new tab)
100. Attach the front servo and servo block
You need
- bracket
1111-0003-0001 - three or four M4 screws
- servo block
- servo motor
- the set screw that came with the servo
- Attach bracket
1111-0003-0001to the extruded shaft you just attached to the joint using three or four M4 screws. - Then assemble the servo block to the servo motor.
- Insert the set screw that came with the servo inside the hollow shaft that fits onto the spline profile on the servo output, but don't tighten it yet as we'll have to readjust later when calibrating the corner motors.
- This screw prevents the corner assembly from falling off the rocker-bogie while driving.
- Finally, attach the servo motor and block to the front rocker-bogie bracket.
- The image below shows the resulting assembly.
Bracket and Bogie Joint
 Bracket and Bogie Joint In the original: Create the bogie (opens in a new tab)
- bracket
101. Attach the steel bracket and nut to a control arm
You need
- Control arm (black plastic piece) with bearing and hub, made in an earlier step
- Steel bracket
- goRail Nut (5 Hole)
- 7x socket screws with washers
- Take one of the control arms (black plastic piece) with bearing and hub you made in an earlier step.
- Attach the steel bracket, a goRail Nut (5 Hole), and 7x socket screws with washers like in the image.
Note: If you don't have the goRail nut (5 Hole) which was introduced July 2026, use three hurricane nuts instead.
In the original: Connect the control arms and rocker to the joint (opens in a new tab)
102. Instructions for when you don't have the goRail nuts
You need
- 3 hurricane nuts
- If the screws don't slide freely through the holes in the black control arm, drill the holes out to make sure the hurricane nuts rotate and lock in place in the rail.
- Unlike the image, use 3 hurricane nuts instead of 2.
- Connect the short part of the rocker (shaft 1110-0024-00096) to the control arm on one side such that the hurricane nuts fit all the way in the channel.
- Tighten such that you can still slide the control arm relative to the channel.
- Make sure the slit faces the underside/back of the rover (you can also point the slit upwards or downwards if you prefer).
- The hurricane nuts have a tendency to seem stuck without actually getting their small 'wings' locked in the channel. If they're not properly inserted, the assembly will not have the required rigidity.
Note: The hurricane nuts have a tendency to seem stuck without actually getting their small 'wings' locked in the channel. If they're not properly inserted, the assembly will not have the required rigidity.
In the original: Connect the control arms and rocker to the joint (opens in a new tab)
103. Repeat for the other control arm, route the wiring and tighten
- Repeat for the other control arm.
- Route the wiring coming from the front, middle, and rear motors and servos through the slit (see left image below).
- It helps to temporarily keep the wiring in place with some tape as you attach the shaft to the bogie joint.
- Flip the assembly over and repeat on the other side, making sure the setup is symmetric.
- Now tighten the screws all the way.
  Running wiring through short shaft of rocker Joint installed. Note: the OnShape model may represent the orientation of the slits incorrectly. In order to make the model nimble, the same rocker-bogie assembly is used on both sides of the rover which has the side-effect that the two assemblies aren't mirrored like they are supposed to be. Always stop to think about what you're building to avoid having to take things apart later.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Connect the control arms and rocker to the joint (opens in a new tab)
104. Assemble the back servo
You need
- 1-channel U bracket
- Long extruded shaft 11118-0024-0288
- 3 or 4 M4 socket screws of length 10mm
- Another servo block, assembled as you did before
- 6 button M4 screws of length 10mm (6mm or 8mm also works)
- Attach the 1-channel U bracket to the long extruded shaft 11118-0024-0288 using 3 or 4 M4 socket screws of length 10mm.
- Assemble another servo block as you did before.
- Insert this into the 1-channel bracket.
- Attach it using 6 button M4 screws of length 10mm (6mm or 8mm also works).
In the original: Connect the control arms and rocker to the joint (opens in a new tab)
105. Attach the front and back of the rocker-bogie
You need
- 4 hurricane nuts
- 45-degree bracket
- 6mm M4 socket screws
- 4 more hurricane nuts
- socket screws
- 5 hurricane nuts (2 at the bottom)
- Use 4 hurricane nuts and the 45-degree bracket to connect the front and back of the rocker-bogie with 6mm M4 socket screws, as shown in the image below, on the underside of the rover.
- Avoid screws longer than 6mm, as they will hit the goRail before fully tightening.
- Flip the assembly over and attach the two brackets like in the picture below, using 4 more hurricane nuts and socket screws to secure the pieces to the rocker bogie aluminum extrusions.
- Then route all wires through the aluminum channel that will eventually slide into the rover body.
- The slit in the channel should orient in the direction where most of the cables enter it (flipped compared to the image below) but either direction works.
- Use the image of the wiring only as an idea of how the wiring should be routed: other parts of that image may not reflect the current state of the rocker-bogie at this stage in the process.
- Secure the channel to the rocker-bogie using 5 hurricane nuts (2 at the bottom) and socket screws, making sure the channel end sits flush to the other channels and the wiring isn't squeezed inbetween.
- Repeat these steps for the other rocker-bogie, making sure it mirrors the first assembly.
- Once you're done, you're ready with these very important subassemblies!
Wiring snugly fits inside the extruded aluminum channels, even with little or no sheathing. Only use this image as an idea of how the wiring should be routed, other parts of this image may not reflect the current state of the rocker-bogie at this stage in the process.
   Note: Avoid screws longer than 6mm, as they will hit the goRail before fully tightening.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Connect the control arms and rocker to the joint (opens in a new tab)
106. Help improve the documentation
- Please make an issue on Github when you spot something that's off or can be improved.
- Pull requests are even better!
- If you have a question, post in the #troubleshooting channel in our Slack group.
In the original: Connect the control arms and rocker to the joint (opens in a new tab)
107. Attach the PCBs to the bottom body plates
- If you haven't already, now is a good time to attach the PCBs to the bottom body plates using the standoffs.
- The body plates have holes that correspond to where the standoff screws should go.
In the original: Putting it all together (opens in a new tab)
108. Look at the exploded view
- The picture shows inserting the left rocker-bogie in the body.
- Note that the 45 angle bracket in blue should already be attached to the rocker-bogie and the wheels should not be attached yet.
- A 32mm ID round spacer that should be installed below is also not seen on this image.
- The creator's note: "I didn't have space on the outside of the body, just one spacer in the center".
In the original: Putting it all together (opens in a new tab)
109. Insert the rocker-bogies in the body
You need
- 32mm internal diameter (ID) spacer
- Another 32mm ID spacer
- Flat 2-hole bracket
- Button screw
- Line up the rocker-bogies with the body such that they can be easily inserted.
- It helps to put the body on a box such that the holes line up with the rocker-bogie axes.
- Slide a 32mm internal diameter (ID) spacer around the wires and onto the rocker-bogie axis.
- Then, carefully insert the wires extending from the rocker-bogie axis through the body plate hole and large diameter bearings and into the body, immediately followed by the axis itself.
- Repeat for the other side.
- Secure the body axis to the body using another 32mm ID spacer and flat 2-hole bracket + button screw.
- Repeat for the other side.
- The picture shows inserting the rocker-bogie axis into the body axis clamp. The rocker-bogie is not shown. The cables come out of the axis on the bottom right.
In the original: Putting it all together (opens in a new tab)
110. Attach the differential pivot to the rocker-bogies
You need
- M4x8 screws
- A curved pair of needle-nose pliers or a hemostat is helpful
- Attach the differential pivot legs to the rocker-bogie 45 degree brackets using M4x8 screws.
- It may be easier to unmount the blocks, attach them to the bracket, then attach the pivot legs to them as shown in the sequence below.
- A curved pair of needle-nose pliers or a hemostat is helpful to secure the M4x8mm screw while placing the block on the top, as it's hard to reach.
- The button head screw that attatches to the inside leg is a bit tight.
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
- Picture on raw.githubusercontent.com (opens in a new tab)
In the original: Attaching the differential pivot to the rocker-bogies (opens in a new tab)
111. Attach the middle drive motors
You need
- The two drive motor U-channels
- 3 button screws
- 4 socket M4 screws
- With the help of someone else, carefully flip the rover over so we can attach the motor assemblies.
- Connect the two drive motor U-channels to the rocker bogie middle legs using 3 button screws.
- Then insert the motor into the U-channel and secure the clamp around the motor's gearbox to the U-channel using 4 socket M4 screws.
- It helps to have another person around here as well to hold the motors so they don't dangle on the cables.
In the original: Attaching the differential pivot to the rocker-bogies (opens in a new tab)
112. Attach the corner assemblies
You need
- 3 socket M4 screws
- Multimeter
- Using 3 socket M4 screws, attach each corner assembly to the output shaft bracket of the servo.
- Make sure you connect the right corner assembly to the right side.
- Flip the rover over again and route the corner cabling through a hole in the bracket holding the servo.
- The bullet connectors and DuPont connectors from the rocker bogie and corner assemblies should meet here.
- Now is a good time to do another connectivity check.
- Using your multimeter, confirm that each wire connects all the way through.
Tip: Now is a good time to do another connectivity check. Using your multimeter, confirm that each wire connects all the way through.
Note: Maintenance note: The corner servo gearset can sometimes be damaged in operation. See https://github.com/nasa-jpl/open-source-rover/blob/0bea824015778922d4d7e373fbf56a112efea46d/mechanical/servo_gear_replacement/README.md (opens in a new tab) for a guide on repairing your corner servos.
In the original: Attaching the differential pivot to the rocker-bogies (opens in a new tab)
113. Connect to the PCB and finish
- Finally, insert the PCI-E connectors inside the body and the DuPont connectors for the servo motors into the appropriate receptacles on the PCB.
- The silk screen lettering on the PCB informs which wire should go where.
- Once inserted, make sure the rocker-bogies can rotate relatively freely around the body by lifting the wheels up.
- If all goes well you're done with the mechanical and electrical stages and you're ready to install the software!
In the original: Attaching the differential pivot to the rocker-bogies (opens in a new tab)
114. Understand what this section covers
- In this section, you set up the Raspberry Pi (RPi) and all the code that will run the rover.
- Our rover uses ROS (Robotic Operating System); you set this up below.
- These instructions should work for both the RPi 3 and 4.
- You are free to use other versions of RPi, ROS, or OS, but setting these up is not covered here and it is not guaranteed that those will work.
In the original: Setting up the Raspberry Pi (RPi) (opens in a new tab)
115. Install an operating system on the SD card
You need
- Raspberry Pi
- SD card
- Raspberry Pi Imager
- The first step is to install Ubuntu on your RPi.
- Select the latest Long Term Support (LTS) version for best results.
- Other OS'es like Raspberry Pi OS might also work but might require deviation from the instructions, such as building ROS 2 from source.
- Always check the latest instructions from the official installation guide: https://docs.ros.org/en/iron/How-To-Guides/Installing-on-Raspberry-Pi.html (opens in a new tab)
- We recommend using the Raspberry Pi Imager to load the OS onto an SD card: https://www.raspberrypi.com/documentation/computers/getting-started.html#using-raspberry-pi-imager (opens in a new tab)
- If done right, you won't need an external monitor, mouse, or keyboard to set up your RPi!
In the original: Setting up the Raspberry Pi (RPi) (opens in a new tab)
116. Set the image settings before flashing
- Make sure you set the following settings while configuring the image to be flashed onto the SD card (ctrl/cmd+shift+x).
- Select
Enable SSHto you can connect to the rover over your local WiFi connection rather than having to attach a screen, keyboard, and mouse to the RPi each time. - We recommend using a password.
Set username and password. You will need these later to log into the RPi over SSH.Configure wifiso the RPi knows how to connect to your network when it boots up.Set locale settingsto your time zone.
In the original: Setting up the Raspberry Pi (RPi) (opens in a new tab)
117. Boot the Raspberry Pi
You need
- Raspberry Pi
- SD card
- Proper power supply (or connect the RPi to the rover)
- When done flashing, insert the SD card into the Raspberry Pi.
- Power the Raspberry Pi. Make sure to use a proper power supply or connect it to the rover.
- When powered, it should connect to the WiFi connection and be visible from your router's 'devices' page.
- If possible, we recommend assigning a static IP address to your RPi so you can reach it using that IP address.
- Otherwise you should also be able to reach it using its hostname (which you selected in the Imager process), potentially with
.localappended to the end.
In the original: Setting up the Raspberry Pi (RPi) (opens in a new tab)
118. Connect to the Raspberry Pi over SSH
You need
- Another computer
- From another computer, try connecting to the Raspberry Pi using SSH.
- You should be able to do so from a terminal in Windows, Linux, or MacOS using the syntax
ssh user@machine, where the user is the username you set during the SD card flashing process earlier. - Use the hostname form, or the second form if you've set a static IP address or know the IP address (see the commands below).
- It should prompt for your password and then form a connection to a terminal window on the RPi!
Command
ssh osr_user@raspberrypi.local # or, if you've set a static IP address or know the IP address: ssh alfred@192.168.1.17Tip: Your computer can remember the password for you: replace
sshwithssh-copy-idin the command above once. Once you've entered your password you should be able to log in without a password!In the original: Setting up the Raspberry Pi (RPi) (opens in a new tab)
119. Install ROS2 on the RPi
- We'll install ROS2 (Robot Operating System) on the RPi.
- If you're new to ROS, we recommend learning it as it is a crucial part in the code base.
- Log in to the RPi via ssh, or open a terminal in the desktop GUI if you're connected via a monitor and mouse/keyboard.
- Follow the instructions for installing ROS2: https://docs.ros.org/en/jazzy/Installation/Ubuntu-Install-Debs.html (opens in a new tab)
- This takes a while.
- Follow the instructions in the prompt.
- You're done when you've completed section "Setup Environment".
- See the next step for which version to install.
- If there are any errors during installation, post them in the
#troubleshootingchannel on Slack to ask for help, if you are not able to resolve them yourself. - Just ignoring them will likely cause issues in the future.
Note: Just ignoring installation errors will likely cause issues in the future.
In the original: Installing ROS (opens in a new tab)
120. Choose which ROS 2 version and package set to install
- Depending on which Operating System (OS) you installed, you might need to install a different version of ROS 2: https://www.ros.org/reps/rep-2000.html (opens in a new tab)
- Ubuntu and ROS 2 updates frequently and you should check which version of ROS 2 to install depending on what OS you installed!
- In what follows, we assume ROS 2
Jazzy. - The OSR code should be independent of which version of ROS 2 you use.
- You can choose to either install the 'full version' which comes with graphical packages like RViz and QT or install just the barebones version.
- The barebones version allows you to install packages in the full version whenever you need them and so we recommend following this approach.
- You can install ROS2 and related graphical packages on a different computer on the same network and you will be able to receive all messages out of the box, as long as you're using the same ROS 2 version.
- If you've installed Ubuntu Server (headless), install the bare bones version since you won't be able to run RViz on the Raspberry Pi anyways!
Full version
sudo apt install ros-jazzy-desktopBarebones version (recommended)
sudo apt install ros-jazzy-ros-baseNote: Ubuntu and ROS 2 updates frequently and you should check which version of ROS 2 to install depending on what OS you installed!
In the original: Installing ROS (opens in a new tab)
121. Check that ROS 2 is installed correctly
- Run
ros2 topic listfrom the command line. - It should not say 'Command not found'.
- Run
echo $ROS_DISTRO. - It should show
jazzyor whichever ROS 2 version you chose to install.
Command
ros2 topic listCommand
echo $ROS_DISTROIn the original: Installing ROS (opens in a new tab)
- Run
122. Create the ROS workspace
- First we'll create a ROS workspace for the rover code.
- Use the terminal where you've SSH'd into the Raspberry Pi, or the Raspberry Pi's terminal directly (when using the GUI, keyboard, and mouse).
- Run the commands below.
- If you get "No such file or directory", either you have not installed ROS2 properly, or the environment variables aren't set correctly. Ask for help on Slack on the troubleshooting channel.
Command
# Create a colcon workspace directory, which will contain all ROS compilation and # source code files, and navigate into it mkdir -p ~/osr_ws/src && cd ~/osr_ws # Source your newly created ROS environment. If you get "No such file or directory", either you have not installed ROS2 properly, or the environment variables aren't set correctly. Ask for help on Slack on the troubleshooting channel. source /opt/ros/${ROS_DISTRO}/setup.bashIn the original: Setting up ROS environment and building the rover code (opens in a new tab)
123. Clone the rover code
- For this section, you'll be working with the version control software git.
- Now's a good time to read up on how git works if you're new to it, and make a GitHub account: https://try.github.io/ (opens in a new tab)
- In the colcon workspace you just made, clone (download) the repo by running the commands below.
Command
sudo apt install git cd ~/osr_ws/src git clone https://github.com/nasa-jpl/osr-rover-code.gitIn the original: Setting up ROS environment and building the rover code (opens in a new tab)
124. Install dependencies and build the rover code
- Install the dependencies using rosdep. Python packages will be installed in a virtual environment (https://docs.ros.org/en/jazzy/How-To-Guides/Using-Python-Packages.html#installing-via-a-virtual-environment (opens in a new tab)).
- Run the commands below.
- It should run successfully.
- If it doesn't, please ask on Slack or submit an issue (https://github.com/nasa-jpl/osr-rover-code/issues/new (opens in a new tab)) if you believe there's a problem with the instructions.
Command
sudo apt install python3-rosdep python3-pip cd .. python3 -m venv venv --system-site-packages source ./venv/bin/activate touch ./venv/COLCON_IGNORE sudo rosdep init rosdep update rosdep install --from-paths src --ignore-src --rosdistro=$ROS_DISTRO -y python3 -m pip install adafruit-circuitpython-servokit ina260 RPi.GPIO smbus # build the ROS packages python3 -m colcon build --symlink-installIn the original: Setting up ROS environment and building the rover code (opens in a new tab)
125. Add the generated files to the path
- Add the generated files to the path so ROS can find them by running the command below.
Command
source install/setup.bashIn the original: Setting up ROS environment and building the rover code (opens in a new tab)
126. Create the settings files
- The rover has some customizable settings that will overwrite the default values.
- Whether you have any changes compared to the defaults or not, you have to manually create these files.
- Run the commands below.
- In the rover bringup instructions (https://github.com/nasa-jpl/osr-rover-code/blob/7aaf18512c9e8a997931f0caae28b63c8c6e9a78/setup/rover_bringup.md (opens in a new tab)) we will edit these files to make any changes.
Command
cd ~/osr_ws/src/osr-rover-code/ROS/osr_bringup/config touch osr_params_mod.yaml roboclaw_params_mod.yamlIn the original: Setting up ROS environment and building the rover code (opens in a new tab)
127. Add ROS config scripts to .bashrc
- The source ....bash lines you typed out earlier are used to manually configure your ROS environment.
- We also want our python virtual environment to be activated.
- We can do this automatically in the future by running the commands below.
- This adds the source lines to ~/.bashrc, which runs whenever a new shell is opened on the RPi - by logging in via ssh, for example.
- So, from now on, when you log into the RPi your new command line environment will have the appropriate configuration for ROS and the rover code.
Command
echo "source ~/osr_ws/venv/bin/activate" >> ~/.bashrc echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> ~/.bashrc echo "source ~/osr_ws/install/setup.bash" >> ~/.bashrcIn the original: Setting up ROS environment and building the rover code (opens in a new tab)
128. Enable Serial and I2C
- The RPi talks to the motor controllers over serial bus.
- Run the commands below.
- Use the menu to enable I2C and Serial under
Interface Options. - When you enable
Serial Port, it will ask: Would you like a login shell to be accessible over serial? Select 'No' using the arrow keys and 'tab' and 'enter' keys on your keyboard. - It will also ask: Would you like the serial port hardware to be enabled? Select 'Yes'.
- If it asks you to reboot, answer 'yes'.
- Connect to the Raspberry Pi again once it has rebooted.
- More on raspi-config is at https://www.raspberrypi.com/documentation/computers/configuration.html (opens in a new tab).
Command
sudo apt-get install raspi-config sudo raspi-configIn the original: Setting up serial communication on the RPi (opens in a new tab)
129. Add udev rules
- Next, add udev rules to add a symbolic link (symlink) to the serial and i2c devices and configure their permissions.
- Run the commands below.
Command
sudo cp ~/osr_ws/src/osr-rover-code/config/* /etc/udev/rules.d/ sudo udevadm control --reload-rules && sudo udevadm triggerIn the original: Setting up serial communication on the RPi (opens in a new tab)
130. Add user to system groups
- Finally, add the user to the
ttydialout, andinputgroups on the raspberry pi. - Run the commands below.
- You might have to create the dialout group if it doesn't already exist with
groupadd dialout. - Note: You'll need to log out of your ssh session and log back in for this to take effect. Or you can reboot with
sudo reboot.
Command
sudo adduser $USER tty sudo adduser $USER dialout sudo adduser $USER inputIn the original: Setting up serial communication on the RPi (opens in a new tab)
- Finally, add the user to the
131. Verify the serial devices
- Log back in and in a terminal, verify that the serial devices are present.
- Run the command below.
- It should at least show a line that contains
/dev/serial0 -> ttyS0. This is the main serial device used to send information to the Roboclaws over UART / GPIO pins. - If you see
/dev/serial1 -> ttyAMA0, that is a less powerful software-defined serial device typically used for bluetooth. - This varies between Raspberry Pi versions.
Command
ls -l /dev/serial*In the original: Setting up serial communication on the RPi (opens in a new tab)
132. Run the test script for each motor address
- Run the roboclawtest.py script with all of the motor addresses.
- Run the commands below one after another.
- Each of these should output something like the example output, within a very short execution time.
Command
cd ~/osr_ws/src/osr-rover-code/scripts python3 roboclawtest.py 128 python3 roboclawtest.py 129 python3 roboclawtest.py 130Example output (the version number may be a later version)
Connected to /dev/serial0. Address: 130 ReadVersion: (1, 'USB Roboclaw 2x7a v4.2.8\n') ReadEncM1: (1, 0, 128) Address 130 - ReadMainBatteryVoltage: (1, 170)In the original: Testing serial comm with the Roboclaw motors controllers (opens in a new tab)
133. If all three addresses work
- If all three work, congratulations! You're close to running the rover.
- Move onto rover bringup: https://github.com/nasa-jpl/osr-rover-code/blob/7aaf18512c9e8a997931f0caae28b63c8c6e9a78/setup/rover_bringup.md (opens in a new tab)
In the original: Testing serial comm with the Roboclaw motors controllers (opens in a new tab)
134. If the script hangs or returns only zeros
- If the script seems to hang, or returns only zeros inside the parantheses (0,0), you have a problem communicating with the given roboclaw for that address.
- Make sure you followed the instructions in the #Setting up serial communication section above, and the serial devices are configured correctly on the RPi.
- Also make sure you went through the calibration instructions from the main repo (https://github.com/nasa-jpl/open-source-rover/blob/master/Electrical/Calibration.pdf (opens in a new tab)) and set the proper address, serial comm baud rate, and "Enable Multi-Unit Mode" option for every roboclaw controller.
- If you update anything on a controller, you'll need to fully power cycle it by turning the rover off.
- If you're still having trouble after the above steps, try unplugging every motor controller except for one, and debug exclusively with that one.
- Reboot the Raspberry Pi if you haven't already.
- If that still doesn't work, please ask on the troubleshooting channel on our Slack group.
- Include as much relevant information as possible so we can help you find the issue as fast as possible.
Note: If multi-unit mode isn't enabled on every controller, there will be serial bus contention.
Note: If you update anything on a controller, you'll need to fully power cycle it by turning the rover off.
In the original: Testing serial comm with the Roboclaw motors controllers (opens in a new tab)
135. Get your rover ready for action
You need
- USB dongle for your remote controller (xbox or Spektrum or other)
- Note: these instructions require you to have followed the steps in rpi setup (https://github.com/nasa-jpl/osr-rover-code/blob/7aaf18512c9e8a997931f0caae28b63c8c6e9a78/setup/rpi.md (opens in a new tab)).
- If this is the first time setting up the rover, you may want to take some precautions.
- Put the rover's body on a box so that the wheels can spin without the rover hitting something by accident and the corner assemblies can rotate freely.
- Alternatively you can take off the wheels.
- Attach the USB dongle for your remote controller (xbox or Spektrum or other).
Note: These instructions require you to have followed the steps in rpi setup.
In the original: Bringing up the rover code (opens in a new tab)
136. Configure the rover parameters
- If you have any differences compared to the default build, you can change many parameters spread out over three files.
- Rather than modifying the original files, any changes should be made to the
_mod.yamlfiles you made earlier. This way your changes don't conflict with future updates. - The files follow the same structure as the default.
- Just include the values that you need to change as the default values for other parameters may change over time.
- As an example, say you installed bigger wheels on the rover. The software needs to know this such that it can control what speed to command to each motor.
- Start by opening the file you just created. Run the command below.
- An editor (nano) should open, if not, you might have to install nano using 'sudo apt install nano'.
- You can also use an editor like VScode with an SSH extension so you can use a fully fledged editor while still working from a different computer.
- If you wanted to update the value for the wheel radius, you would paste in the snippet below (compare with the contents of osr_params.yaml: https://github.com/nasa-jpl/osr-rover-code/blob/7aaf18512c9e8a997931f0caae28b63c8c6e9a78/ROS/osr_bringup/config/osr_params.yaml (opens in a new tab)).
- The software will load in these changes and apply them.
- Take a look at the parameters for the roboclaws as well (https://github.com/nasa-jpl/osr-rover-code/blob/7aaf18512c9e8a997931f0caae28b63c8c6e9a78/ROS/osr_bringup/config/roboclaw_params.yaml (opens in a new tab)).
- If you used
nano, you can save and exit the editor usingctrl+ofollowed byctrl+x.
Command
nano osr_params_mod.yamlSnippet to paste in
rover: ros__parameters: rover_dimensions: wheel_radius: 0.082 # [m]Note: Rather than modifying the original files, any changes should be made to the
_mod.yamlfiles you made earlier. This way your changes don't conflict with future updates.Note: Just include the values that you need to change as the default values for other parameters may change over time.
In the original: Bringing up the rover code (opens in a new tab)
137. Detach the corner assemblies from the servos
You need
- 2.5mm hex wrench
- M3 screw (the one that connects each corner assembly to its servo output shaft)
- Know why you calibrate: the servo motors at each corner have absolute encoders that will 'remember' where the wheels are even when power is turned off, but we still have to calibrate them the first time so they know where the zero position is.
- Know that the servo motors have a limited range of about 300 degrees, so we want to make sure we are able to make use of the full range of motion.
- Unscrew the M3 screw that connects the corner assembly to the servo output shaft using a 2.5mm hex wrench.
- Do this for all 4 corners.
- Detach the corner assembly from the servo so that the servo can spin freely.
In the original: Calibrating the corner servos (opens in a new tab)
138. Send the servo motors to their zero positions
- Know that the servo range is from 0 to 300, so we want the default position to be in the middle of that range at 150.
- Run the commands below.
- Watch the back right (0), then front right (1), then front left (2), and finally back left (3) servo motor move to an angle of 150.
- If a servo isn't moving, it either means that it's already at that angle or that there's a problem with the wiring, PCB, or PCA9685 connection.
- Try setting the value to some other angle like 200 for that motor and see if it moves. If so, it's working. Move it back to 150.
- If it does not move, check if the other servo motors move.
Command
cd ~/osr_ws/src/osr-rover-code/scripts python3 calibrate_servos.py 0 150 python3 calibrate_servos.py 1 150 python3 calibrate_servos.py 2 150 python3 calibrate_servos.py 3 150In the original: Calibrating the corner servos (opens in a new tab)
139. Re-attach the corner assemblies
You need
- M3 screw from before
- A little bit of thread lock (e.g. loctite blue)
- When all servo motors were set to this angle, re-attach the corner assembly to the shaft using the M3 screw from before.
- We recommend using a little bit of thread lock (e.g. loctite blue) so the screw doesn't unscrew and fall out while driving.
- In the following step we'll perform a finer calibration, so it's ok if the servo spline doesn't line up perfectly with the zero position of the corner assembly.
In the original: Calibrating the corner servos (opens in a new tab)
140. Align each corner assembly so the wheel points straight
- With each motor mounted, move ahead with aligning each corner assembly so that the wheels are pointing perfectly straight.
- Do this by sending each corner assembly to different angles until it looks right, using the same script.
- Work on one motor at a time and run the script with a slightly different value. For example, move the back right corner motor to 160 degrees with the command below.
- If it's moving farther away from the center, try 140. If it's getting closer, try 165 or 170.
- Repeat this until the wheel is exactly at zero.
- When you find the value where it's centered, write it down since we'll need it later.
- Repeat this for wheels at channel 1, 2, and 3.
- You should have 4 values, for example
[135, 155, 125, 162].
Command
python3 calibrate_servos.py 0 160Note: Make sure the servo motors are still free to spin without much friction by lifting the servo bracket until the wheel doesn't touch the ground. You can either prop it up or hold it up manually.
In the original: Calibrating the corner servos (opens in a new tab)
141. Enter the centered values in the software
- Know that now we need to tell the software what these values are, so when you command the corner motors to turn, they will use these values as the true centers.
- Open the file
osr_mod_launch.pywith the command below. - Look for the line that says
parameters=[{'centered_pulse_widths': [165, 134, 135, 160]}]. - Replace the values using the 4 values you just found.
- Save and exit using ctrl+o then ctrl+x.
- The corner servo motors are calibrated and ready to go!
- Next we'll configure the gamepad to control the rover.
Command
nano ~/osr_ws/src/osr-rover-code/ROS/osr_bringup/launch/osr_mod_launch.pyIn the original: Calibrating the corner servos (opens in a new tab)
142. Understand what you are configuring
- Know that not all controllers are the same, so you configure which remote controller axis and button does what.
- You are configuring how fast the rover can go, which axis makes it move forwards and backwards, which axis makes it move left and right, and which axis makes it spin in place.
- Make these changes in the file
osr-rover-code/ROS/osr_bringup/launch/osr_mod_launch.py.
In the original: Mapping remote controller buttons and axes to rover movement (opens in a new tab)
143. Look at the values in joy_to_twist and set the scale values low
- Find these values in the node joy_to_twist in the file.
- Start by setting the
scalevariables (first three) low (e.g. 0.05) so you can easily confirm the rover moves as intended and avoid a potential crash. - In the next steps, once you have confirmed everything works ok, you will set these scale values to more sensible settings.
Values of interest
{"scale_linear": 0.05}, # scale to apply to drive speed, in m/s: drive_motor_rpm * 2pi / 60 * wheel radius * slowdown_factor {"scale_angular": 0.05}, # scale to apply to angular speed, in rad/s: scale_linear / min_radius {"scale_linear_turbo": 0.05}, # scale to apply to linear speed, in m/s {"enable_button": 0}, # which button to press to enable movement {"axis_linear.x": 3}, {"axis_angular.yaw": 2}, # which joystick axis to use for rotating {"axis_angular.pitch": 0}, # axis to use for in-place rotationNote: Set the scale values low to avoid a potential crash.
In the original: Mapping remote controller buttons and axes to rover movement (opens in a new tab)
144. Launch the joy node and check your controller
- Know that depending on the make and model of your remote controller or gamepad/joystick, the buttons and axes (joysticks) may be represented differently.
- Launch the ROS 2 joy node to see what does what.
- Make sure your joystick is connected.
- In a terminal, run the first command below.
- It should confirm that it is able to connect to your gamepad.
- Check this by opening a new separate terminal and running the second command below to listen for any messages coming from the joystick.
- You should see a constant flood of messages being printed.
- Move an axis or press a button on your controller and you should see a change in the output.
Run the joy node
ros2 run joy joy_nodeListen for joystick messages (in a new terminal)
ros2 topic echo /joyNote: If the joysticks aren't sending through data in a separate terminal, make sure they have the appropriate permissions;
sudo chmod a+rw /dev/input/event0. The specific number may vary, runls -l /dev/input/*to find out. If you don't see your controller when you run this command, head to [Troubleshooting your gamepad](#troubleshooting-your-gamepad). Then try again.Note: You might want to consider using udev rules to automate this which you will need for automatic bringup using systemd services below.
Note: If you need help, please post on the Slack forum.
In the original: Mapping remote controller buttons and axes to rover movement (opens in a new tab)
145. Choose your buttons and axes
- Take a moment to choose which button or switch on your controller you want to use to enable any movement to the rover.
- This switch/button is used so that the rover doesn't accidentally start driving when the controller falls or similar.
- Choose which axis you'd like to use to send the rover forwards/backwards.
- Choose which axis you'd like to use to make the rover turn.
- Choose which axis you'd like to use to make the rover rotate in place.
- You can always come back to this and change these later.
In the original: Mapping remote controller buttons and axes to rover movement (opens in a new tab)
146. Find the index numbers and enter them in the file
- In the window where the
ros2 topic echo /joymessages are printing, for each of the axes and the button you selected, write down which index in the list of axes/buttons changes when you move the axis. - Open the file
osr_mod_launch.pywe looked at earlier. - Move the axis that you'd like to use to control forward movement and take note of which number changes.
- Counting starts at zero, so if the axis that changes is 3rd in the list, the axis number is 3-1=2.
- Enter this number (in this case 2) right after
axis_linear.x. - Do the same for the axis you'd like to use for turning, using
axis_angular.yaw. - Do the same for the axis you'd like to use for rotating in place, using
axis_angular.pitch. - Do the same for the button you'd like to use for enabling any movement in the first place.
- The button number (again count starting from 0) should go with
enable_button.
In the original: Mapping remote controller buttons and axes to rover movement (opens in a new tab)
- In the window where the
147. Confirm connection to the INA260
- If you installed the INA260 voltage, current, and power monitor on the PCB, check if you are able to connect to it by running the test script.
- Run the commands below.
- If your INA260 is not at 0x45 but some other address (just make sure it doesn't conflict with the servo controller!), you can connect to it there by adding the address to the command, for example 0x43 for address 0x43.
Command
cd ~/osr_ws/src/osr-rover-code/scripts python3 test_ina260.pyCommand for a different address (example: 0x43)
python3 test_ina260.py 0x43Example output
Attempting to connect INA260 at address 0x45... Successfully read values. They should be nonzero: Current: 0.198 A Voltage: 15.006 V Power: 2.87 WNote: If your INA260 is at an address other than 0x45, make sure it doesn't conflict with the servo controller.
In the original: Confirming connection to the INA260 (opens in a new tab)
148. Launch the rover software
- You're now all set up to launch the full rover software stack.
- Use a terminal that is already sourced from before:
source /opt/ros/foxy/setup.bash && source ~/osr_ws/install/setup.bash, unless you added these to your~/.bashrcfile. - Run the command below.
- This starts the ROS 2 nodes to run the rover with the changes you made in the previous steps.
- Any errors or warnings will be displayed there in case something went wrong.
Command
ros2 launch osr_bringup osr_mod_launch.pyIn the original: Manual rover bringup (opens in a new tab)
149. Check the startup messages
- Note that it's pretty normal for the roboclaws to issue one or two Current Error messages on startup, which look like the example below.
- As long as they are not continuous, they are not a problem.
Example Current Error messages on startup
[roboclaw_wrapper-1] [ERROR] [timestamp] [roboclaw_wrapper]: Motor controller 128 reported error code 0x20003000 (hex: 0x20003000), [roboclaw_wrapper-1] M1 Current Error [roboclaw_wrapper-1] M2 Current ErrorIn the original: Manual rover bringup (opens in a new tab)
150. Drive the rover with the Xbox wireless controller
- If you're using the Xbox wireless controller, command the rover by holding the left back button (LB) down and moving the joysticks.
- You can boost as described in the RPi setup (https://github.com/nasa-jpl/osr-rover-code/blob/7aaf18512c9e8a997931f0caae28b63c8c6e9a78/setup/rpi.md (opens in a new tab)) by holding down the right back button (RB) instead.
- If you have questions, please post on the Slack forum in the
#troubleshootingchannel. - If you think there's a problem with documentation, submit an issue (https://github.com/nasa-jpl/osr-rover-code/issues/new (opens in a new tab)).
In the original: Manual rover bringup (opens in a new tab)
151. If the rover moves in the opposite direction
- Note: if you notice the rover is moving in the opposite direction as your commands, add a minus sign to the appropriate
scale_factor in theosr_mod_launch.pyfile. - Press
ctrl-Cto stop the currently running code, then re-run it for the changes to take effect.
In the original: Manual rover bringup (opens in a new tab)
- Note: if you notice the rover is moving in the opposite direction as your commands, add a minus sign to the appropriate
152. Optional arguments
- If you want the code to calculate and publish wheel odometry, launch with the argument
enable_odometry:=true. - Odometry is used for localization and SLAM.
In the original: Manual rover bringup (opens in a new tab)
- If you want the code to calculate and publish wheel odometry, launch with the argument
153. Find the maximum speed of your rover
- This section revisits the linear and angular velocity scale, from the earlier section.
- The maximum speed your rover can go is determined by the no-load speed of your drive motors.
- The default no-load speed is located in the file osr_params.yaml (https://github.com/nasa-jpl/osr-rover-code/blob/7aaf18512c9e8a997931f0caae28b63c8c6e9a78/ROS/osr_bringup/config/osr_params.yaml (opens in a new tab)) as
drive_no_load_rpm, unless you modified it in the corresponding_mod.yamlfile. - This maximum speed corresponds to
scale_linear_turboand can be calculated asdrive_no_load_rpm * 2pi / 60 * wheel radius (=0.075m).
In the original: Revisiting linear and angular velocity scale (opens in a new tab)
154. Choose your regular moving speed
- Based on this upper limit, later we'll set our regular moving speed to a sensible fraction of that, which you can configure to your liking.
- This is because the motors will never reach the no load speed.
- Start with e.g. 0.75 * scale_linear_turbo.
- If you think it's too slow or too fast, simply scale it up or down.
In the original: Revisiting linear and angular velocity scale (opens in a new tab)
155. Set the turning speed
- The turning speed of the rover, just like a regular car, depends on how fast it's going.
- As a result,
scale_angularshould be set toscale_linear / min_radius. - For the default configuration, the
min_radiusequals0.45m.
CAUTION: At these speeds, the rover can be fast and strong enough to inflict damage or cause injury. Use caution and lower velocities to drive the rover in the presence of humans or obstacles.
In the original: Revisiting linear and angular velocity scale (opens in a new tab)
156. Understand automatic bringup
- Read this section to see how the RPi can automatically launch the rover code when it launches.
- This way you don't have to SSH in to run the rover and it can be controlled completely offline.
- Any modified parameters in
osr_mod_launch.pyand in the config folder will be found automatically.
Note: We do not recommend enabling the service until you have verified that everything on your robot runs successfully manually. Once you enable the service, as soon as you power on the RPi it will try and run everything. This could cause issues if everything has not yet been fully tested and verified.
Note: Additionally, if you are doing development of your own software for the robot we suggest disabling the service and doing manual launch of the scripts during testing phases. This will help you more easily debug any issues with your code.
In the original: Automatic bringup with launch script (opens in a new tab)
157. Learn how the startup works
- Know that starting scripts on boot using ROS can be a little more difficult than starting scripts on boot normally from the Raspberry Pi, because of the default permission settings on the RPi and the fact that ROS cannot be ran as the root user.
- The way that we will start our rover code automatically on boot is to create a service that starts our roslaunch script, and then automatically run that service on boot of the robot.
- Further information on system service scripts running at boot: https://www.linode.com/docs/quick-answers/linux/start-service-at-boot/ (opens in a new tab)
In the original: Automatic bringup with launch script (opens in a new tab)
158. Install the startup service
You need
- Raspberry Pi
- Know that there are two scripts in the init_scripts folder (https://github.com/nasa-jpl/osr-rover-code/tree/7aaf18512c9e8a997931f0caae28b63c8c6e9a78/init_scripts (opens in a new tab)). The first is the bash file that runs the roslaunch file, and the other creates a system service to start that bash script.
- Open up a terminal on the Raspberry Pi.
- Run the commands below.
Command
cd ~/osr_ws/src/osr-rover-code/init_scripts # use symbolic links so we capture updates to these files in the service sudo ln -s $(pwd)/launch_osr.sh /usr/local/bin/launch_osr.sh sudo ln -s $(pwd)/osr_paths.sh /usr/local/bin/osr_paths.sh sudo cp osr_startup.service /etc/systemd/system/osr_startup.service sudo chmod 644 /etc/systemd/system/osr_startup.serviceIn the original: Automatic bringup with launch script (opens in a new tab)
159. Set your username in the service file
- Modify the service file by running the command below.
- Replace the User and Group with your username instead of 'Ubuntu'.
- When in doubt, on the Pi run
echo $USERin a terminal.
Command
sudo nano /etc/systemd/system/osr_startup.serviceIn the original: Automatic bringup with launch script (opens in a new tab)
160. Service management commands
- Your osr startup service is now installed on the Pi and ready to be used.
- The following are some commands related to managing this service which you might find useful (see the table).
Description Command Start service sudo systemctl start osr_startup.service Stop service sudo systemctl stop osr_startup.service Enable service (runs on boot of RPi) sudo systemctl enable osr_startup.service Disable service (doesn’t run on boot of RPi) sudo systemctl disable osr_startup.service Check status of service sudo systemctl status osr_startup.service View live service list sudo journalctl -f In the original: Automatic bringup with launch script (opens in a new tab)
161. Enable the startup service
- Once you have fully tested the robot and made sure that everything is running correctly by starting the rover code manually via
ros2 launch osr_bringup osr_mod_launch.py, enable the startup service on the robot with the command below. - At this point, your rover should be fully functional and automatically run whenever you boot it up! Congratulations and happy roving!!
Command
sudo systemctl enable osr_startup.serviceNote: When you're working on the code, recalibrating the servo motors, or otherwise launching the code manually, don't forget to turn off (
stop) the code running in the background via the systemd service!In the original: Automatic bringup with launch script (opens in a new tab)
- Once you have fully tested the robot and made sure that everything is running correctly by starting the rover code manually via
162. Check whether your gamepad works with Linux
- If your gamepad doesn't show up when you run
ls -l /dev/input/*, it may not work with the linux kernel. - This is common with 'knockoffs', unofficial third-party sold cheaper models.
- The easiest way to verify this is to borrow someone else's genuine controller.
- You can also take a look at the kernel messages to see if your controller is picked up by the kernel.
Note: If you're using a bluetooth controller and a RPi3 or RPi4, you likely will have issues. This is because bluetooth only works well if it can use the same interface as the UART serial port is using, which we need to talk to the roboclaws. See #187 (https://github.com/nasa-jpl/osr-rover-code/pull/187 (opens in a new tab)) for more.
In the original: Troubleshooting your gamepad (opens in a new tab)
- If your gamepad doesn't show up when you run
163. Look at the kernel messages for your gamepad
- Unplug the usb dongle or wired gamepad.
- On your raspberry pi (through SSH), check if dmesg detects any usb events by running the command below.
- Input your password and you should see some output.
- Plug in the usb and rerun the command.
- You should see some new lines compared to the previous output.
- In the author's case, the output is the example below, proving that the author's Spektrum USB controller was detected.
- If you don't see any messages, that xbox adapter probably just doesn't work with linux or you got unlucky and received a faulty one.
Command
sudo dmesg | grep usbExample output in the author's case (Spektrum USB controller)
[ 4.643030] input: Horizon Hobby SPEKTRUM RECEIVER as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1.4/1- 1.1.4:1.0/0003:0483:572B.0001/input/input0 [ 4.643570] hid-generic 0003:0483:572B.0001: input,hidraw0: USB HID v1.11 Gamepad [Horizon Hobby SPEKTRUM RECEIVER] on usb-0000:01:00.0-1.1.4/input0In the original: Troubleshooting your gamepad (opens in a new tab)
The guide appears here as you scroll.
Guide by @nasa-jpl (README.md), under Apache-2.0.
More guides
What to buy
34 of 34 parts shown
| Item | Part | Qty | Unit price | Amount | Source |
|---|---|---|---|---|---|
| 01 | 1 CAP CER 10000PF 50V X7R RADIAL | 20 | – | $3.28≈ €3 | – |
| 02 | 2 CAP ALUM 100UF 20% 50V RADIAL | 10 | – | $2.48≈ €2 | – |
| 03 | 3 CAP CER 0.1UF 50V X7R RADIAL | 10 | – | $2.11≈ €2 | – |
| 04 | 4 CAP ALUM 10UF 20% 50V RADIAL | 10 | – | $1.62≈ €1 | – |
| 05 | 5 DIODE SCHOTTKY 25V 10A TO220AC | 2 | – | $3.86≈ €4 | – |
| 06 | 6 DIODE GEN PURP 75V 300MA DO35 | 10 | – | $1.08≈ €1 | – |
| 07 | 7 FUSEHOLDER BLOCKS - PCB - CLIP C | 1 | – | $0.68≈ €1 | – |
| 08 | 8 CONN HEADER VERT 12POS 2.54MM | 4 | – | $6≈ €6 | – |
| 09 | 9 CONN HEADER VERT 8POS 2.54MM | 4 | – | $1.88≈ €2 | – |
| 10 | 10 CONN HDR 20POS 0.1 TIN PCB | 1 | – | $1.30≈ €1 | – |
| 11 | 11 CONN HEADER VERT 40POS 2.54MM | 2 | – | $1.46≈ €1 | – |
| 12 | 12 CONN HEADER VERT 6POS 2MM | 2 | – | $0.72≈ €1 | – |
| 13 | 13 CONN HEADER VERT 20POS 2.54MM | 1 | – | $2.52≈ €2 | – |
| 14 | 14 CONN HDR 2POS 0.1 TIN PCB | 5 | – | $1.60≈ €1 | – |
| 15 | 15 TERM BLK 2P SIDE ENT 5.08MM PCB | 2 | – | $1.46≈ €1 | – |
| 16 | 16 CONN HEADER VERT 6POS 4.2MM | 6 | – | $13.62≈ €12 | – |
| 17 | 17 TRANS PNP 40V 0.2A TO92-3 | 10 | – | $2.85≈ €3 | – |
| 18 | 18 RES 100 OHM 5% 1/4W AXIAL | 10 | – | $0.56≈ €1 | – |
| 19 | 19 RES 10K OHM 5% 1/4W AXIAL | 10 | – | $0.56≈ €1 | – |
| 20 | 20 RES 4.7K OHM 5% 1/4W AXIAL | 25 | – | $1.01≈ €1 | – |
| 21 | 21 RES 0 OHM JUMPER 1/4W AXIAL | 10 | – | $0.79≈ €1 | – |
| 22 | 22 RES 68 OHM 5% 1/8W AXIAL | 10 | – | $0.45≈ €0 | – |
| 23 | 23 RES 82 OHM 5% 1/4W AXIAL | 10 | – | $0.56≈ €1 | – |
| 24 | 24 RES 1K OHM 5% 1/4W AXIAL | 10 | – | $0.56≈ €1 | – |
| 25 | 25 RES 680 OHM 5% 1/4W AXIAL | 10 | – | $0.56≈ €1 | – |
| 26 | 26 RES 220 OHM 5% 1/4W AXIAL | 10 | – | $0.56≈ €1 | – |
| 27 | 27 SWITCH SLIDE DIP SPDT 50MA 24V | 1 | – | $1.25≈ €1 | – |
| 28 | 28 LED BAR GRAPH 10SEG 570NM GRN | 2 | – | $6.52≈ €6 | – |
| 29 | 29 IC REG LINEAR 3.3V 750MA TO220-3 | 2 | – | $6.04≈ €6 | – |
| 30 | 30 FUSE GLASS 10A 125VAC 5X20MM | 2 | – | $2.42≈ €2 | – |
| 31 | 31 SWITCH TOGGLE ON-OFF-ON | 1 | – | $3.28≈ €3 | – |
| 32 | 32 TERM BLOCK HDR 24POS VERT 5MM | 1 | – | $3.33≈ €3 | – |
| 33 | 33 TERM BLOCK HDR 6POS VERT 3.5MM | 3 | – | $6.06≈ €6 | – |
| 34 | 34 TERM BLOCK PLUG 6POS STR 3.5MM | 3 | – | $7.77≈ €7 | – |
- 201 CAP CER 10000PF 50V X7R RADIAL$3.28≈ €3–
- 102 CAP ALUM 100UF 20% 50V RADIAL$2.48≈ €2–
- 103 CAP CER 0.1UF 50V X7R RADIAL$2.11≈ €2–
- 104 CAP ALUM 10UF 20% 50V RADIAL$1.62≈ €1–
- 25 DIODE SCHOTTKY 25V 10A TO220AC$3.86≈ €4–
- 106 DIODE GEN PURP 75V 300MA DO35$1.08≈ €1–
- 17 FUSEHOLDER BLOCKS - PCB - CLIP C$0.68≈ €1–
- 48 CONN HEADER VERT 12POS 2.54MM$6≈ €6–
- 49 CONN HEADER VERT 8POS 2.54MM$1.88≈ €2–
- 110 CONN HDR 20POS 0.1 TIN PCB$1.30≈ €1–
- 211 CONN HEADER VERT 40POS 2.54MM$1.46≈ €1–
- 212 CONN HEADER VERT 6POS 2MM$0.72≈ €1–
- 113 CONN HEADER VERT 20POS 2.54MM$2.52≈ €2–
- 514 CONN HDR 2POS 0.1 TIN PCB$1.60≈ €1–
- 215 TERM BLK 2P SIDE ENT 5.08MM PCB$1.46≈ €1–
- 616 CONN HEADER VERT 6POS 4.2MM$13.62≈ €12–
- 1017 TRANS PNP 40V 0.2A TO92-3$2.85≈ €3–
- 1018 RES 100 OHM 5% 1/4W AXIAL$0.56≈ €1–
- 1019 RES 10K OHM 5% 1/4W AXIAL$0.56≈ €1–
- 2520 RES 4.7K OHM 5% 1/4W AXIAL$1.01≈ €1–
- 1021 RES 0 OHM JUMPER 1/4W AXIAL$0.79≈ €1–
- 1022 RES 68 OHM 5% 1/8W AXIAL$0.45≈ €0–
- 1023 RES 82 OHM 5% 1/4W AXIAL$0.56≈ €1–
- 1024 RES 1K OHM 5% 1/4W AXIAL$0.56≈ €1–
- 1025 RES 680 OHM 5% 1/4W AXIAL$0.56≈ €1–
- 1026 RES 220 OHM 5% 1/4W AXIAL$0.56≈ €1–
- 127 SWITCH SLIDE DIP SPDT 50MA 24V$1.25≈ €1–
- 228 LED BAR GRAPH 10SEG 570NM GRN$6.52≈ €6–
- 229 IC REG LINEAR 3.3V 750MA TO220-3$6.04≈ €6–
- 230 FUSE GLASS 10A 125VAC 5X20MM$2.42≈ €2–
- 131 SWITCH TOGGLE ON-OFF-ON$3.28≈ €3–
- 132 TERM BLOCK HDR 24POS VERT 5MM$3.33≈ €3–
- 333 TERM BLOCK HDR 6POS VERT 3.5MM$6.06≈ €6–
- 334 TERM BLOCK PLUG 6POS STR 3.5MM$7.77≈ €7–
≈ € amounts use the ECB reference rate of 1 Dec 2026, for comparison only.
No parts total: the cost above is the creator's own figure ($1,600).
Why it scores 94
94/100
Ready to build
How complete the published files are for rebuilding this robot, measured by Robotheca at commit 49b40f1. It isn't a rating of the robot. Counted out of 80 points and scaled to 100: the parts that don't apply to this robot are left out.
- 2Parts list34 lines: 34 with a price, 0 with a shop link.Most points to gain: Add shop links to 34 lines.15/20
Full points: 3D and CAD files, Software, Documentation, Licenses; not counted: Robot description, Simulation
- 13D and CAD files2 printable parts (STL, 3MF), 23 CAD source files.20/20
- 3SoftwareCode in this repository, instructions to install or run it, built on ROS.15/15
- 4DocumentationREADME of 10,050 characters with 8 pictures; 5 build steps.15/15
- 5LicensesHardware: Apache-2.0; software: Apache-2.0.10/10
- –Robot descriptionNo URDF. Not counted: the score is made of the parts that apply.Optional: add a URDF, and the robot can be seen in 3D and tried in the browser.Not counted
- –SimulationNo simulation files. Not counted: the score is made of the parts that apply.Optional: add a simulation model (MuJoCo, Gazebo, Webots or Isaac).Not counted
Wiring and electronics
Main parts: Robotheca's summary
- Raspberry Pi serving as the main computer (brain) of the rover.
- Motor board carrying power and data to the 10 motors.
- Brain board of the control boards carrying the Raspberry Pi interface.
- Six drive motors with encoders, each with two power wires.
- Four corner servo motors with built-in absolute encoders.
- Battery, described as a LiPo battery of around 7.2Ah in the README.
- Parts list includes a 3.3V linear regulator, a 10A fuse, a toggle power switch, and power and signal terminal blocks.
Connections: Robotheca's summary
- Each drive motor encoder cable runs from the motor through the rocker-bogie to a 6-pin PCI-E style connector on the PCB.
- Drive motor power cables carry M+ and M- from the power supply to the PCB, with bullet connectors on the motor side.
- Corner servo cables use three wires: white PWM signal, red positive and black negative, mapped to matching PCB header pins.
- Encoder wires use channel A, channel B, ground and +5V on 4-pin connectors.
- Cables route through the goRail and U-channel with grommets at the corners to protect them from sharp edges.
Cables and connectors
From the parts list.
- 21 RES 0 OHM JUMPER 1/4W AXIAL × 10
Schematics, boards and diagrams
- electrical/pcb/control_board/Brain_Board.kicad_schKiCad
- electrical/pcb/control_board/Control_Boards.kicad_pcbKiCad
- electrical/pcb/control_board/Control_Boards.kicad_schKiCad
- electrical/pcb/control_board/documentation/schematics.pdfDiagram
- electrical/pcb/control_board/gerbers/gerber_files/brain_boardGerber (PCB manufacturing)
- electrical/pcb/control_board/gerbers/gerber_files/motor_boardGerber (PCB manufacturing)
- electrical/pcb/control_board/Motor_Board.kicad_schKiCad
- electrical/wiring/images/wiring_diagram.pngDiagram
- mechanical/rocker_bogie/images/wiring_bogiejoint_done.jpgDiagram
- mechanical/rocker_bogie/images/wiring_bogiejoint.jpgDiagram
- mechanical/wheel_assembly/images/corner_wiring.jpgDiagram
What it can do: Robotheca's summary
- Six-wheel rocker-bogie rover built from consumer off-the-shelf parts, inspired by Mars rovers.
- Drives with 10 motors: six drive motors and four corner servo motors for steering.
- Uses rocker-bogie suspension so all six wheels stay in contact with rough ground.
- Differential pivot lets weight shift between the two sides while climbing obstacles.
- Raspberry Pi acts as the robot's brain and can be interfaced with Bluetooth, WiFi or USB devices.
- Approximate drive time of at least 3 hours on a 7.2Ah battery over rough terrain, per the documents.
Software
- Framework
- ROS
- Languages
- Shell, Python, JavaScript
- License
- Apache-2.0
Robotheca doesn't review code. Read it before running it.
How to run it: Robotheca's summary
Written by Robotheca from the project's documents, not by its creator.
- 1Set up and configure the rover software by following the step-by-step instructions in the separate osr-rover-code repository.
- 2Install the operating system and rover code on the Raspberry Pi as those repository's README files describe.
- 3Software can be completed at any point, up to when electronics and mechanical parts are finished and the robot is ready to drive.
Software that runs on this robot
No software from Robotheca's catalogue found in this robot's files yet. Links come from its robotheca.yaml, its dependency files read as text, or Robotheca's editors.
The code
Free files
- 3D printable partsexpansion/mast/3d_models/
- CAD fileselectrical/pcb/control_board/3d_models/
- Electronicselectrical/pcb/control_board/
- Parts list fileparts_list/digikey_bom.csv
- Robotheca metadatarobotheca.yaml
Every file of the project, at commit 49b40f1.
Community
- Issues on GitHub (opens in a new tab)
- Pull requests on GitHub (opens in a new tab)
- Are you the creator? Manage this robot
- Report outdated info
- Report this robot
Questions and improvements go to the creator's repository.
Add a badge to your README
For the creator: two badges that link back here. The second always shows this page's current label and score.
Markdown (one click selects it)
[](https://robotheca.org/robots/jpl-open-source-rover) [](https://robotheca.org/robots/jpl-open-source-rover)
Licence and credits
Robot ID
Robotheca
JPL Open Source Rover
A build-it-yourself, six-wheeled rover scaled down from the JPL Mars rover design, made from consumer off-the-shelf parts.
- Type
- Wheeled
- Level
- Intermediate
- Cost
- $1,600
- Hands-on
- 100 h
Licence: Apache-2.0, hardware and softwareCommercial use: Allowed
Buildability: 94/100, Ready to build
Licences read from the files, checked by Robotheca on 11 Nov 2026
- Licenses
- Apache-2.0 (opens in a new tab), hardware and software
- Commercial use
- Allowed
- Made by
@nasa-jpl (opens in a new tab), in github.com/nasa-jpl/open-source-rover (opens in a new tab) at commit 49b40f1
Other wheeled robots
All 95 wheeled robots- Ready to build

- Ready to build

- Ready to build

Open source · free files
Sawppy the Rover
Wheeled · Intermediate
- Score
- Buildability 94 out of 100
- Cost
- $500≈ €458
- Ready to build

Open source · free files
Agrofelis Agricultural Robot
Wheeled · Advanced
- Score
- Buildability 88 out of 100
- Cost
- €3,729.58
- Ready to build

≈ € values are approximate, converted at the ECB euro reference rate of 1 Dec 2026. The creator's original price always comes first.