An Example Board #
Let’s start building a complete electrical board that can control a standard tank drivebase (just normal wheels on each side, two motors per side). For extra practice with all sorts of motor controllers we’ll use one CAN-controlled motor controller and one PWM-driven.
Here’s what you should gather if you want to build this yourself:
- 1 PDP
- Around a foot at most of 4 AWG Red wire
- 4 M6 Ring Terminals
- 1 Main Breaker
- 1 SB50 Battery Connector
- Red + Black 12 AWG Wire Spool
- Red + Black 20 AWG Wire Spool
- 1 RoboRIO
- Green + Yellow 24 AWG CAN Bus wire
- 2 PWM Motor Controllers (e.g. spark)
- 2 CAN Capable Motor Controllers (e.g. Talon SRX)
The first thing we need is a PDP to power everything else.
Power Distribution Board #
We’ll connect a main breaker to the PDP.
Main Breaker Connection #
We’ll need a section of red 4 AWG wire, and four ring terminals with holes large enough to fit M6 bolts. The PDP should come with two black M6 bolts, but if you don’t have any ask the mechanical team to fetch some. You’ll also need an SB50 battery connector to connect the battery to.
Now, we’ll connect the battery plug to the board. Crimp your two remaining ring terminals to the red and black wires on the plug. After that, use your last M6 bolt to connect the black wire of the plug directly to the PDP, and attach the red wire of the plug to the breaker.
And that’s it - our battery connection is made!
RoboRIO Connection #
We’ll power the RoboRIO next. The PDP has special ports on the top, labelled in blue on the diagram - these are specially meant to power, among other things, the RoboRIO. Find the ports labelled Vbat CONTROLLER PWR, shown here highlighted in blue:
The Vbat CONTROLLER PWR uses weidmuller connectors, read up on them if you’re not sure how to insert wires into the port
You’ll need to cut a section of your 20 AWG wire that can reach from the CONTROLLER PWR port to your RoboRIO. Once you have a section of wire, insert the red and black wires into their appropriate connectors on the PDP.
The RoboRIO uses simple screw terminals for its power connection, just strip the wires back about 3/4 of an inch and insert it into the hole after unscrewing the two flatheads in the connector.
RoboRIO’s power connector shown on the right, read more into the RoboRIO if your roborio does not have this style of connector.
Our PDP is now feeding power to the RoboRIO!
Motor Controllers Connection #
Start by cutting 4 segments of red and black wire long enough to go from the PDP to each motor controller.