Controls System Set-up Guide

Controls System Set-up Guide

Basic Set-up

1. If setting up for the car, mount the motor according to Body’s instructions. If setting up for the test-rig, mount the motor on the test bench with the motor spatula. 

2. If using the display: Connect the display to UART3 (J5, labeled “minion” at bottom of board) using breakout cable (will also have a connection to the lighting board). 

Leaderboard Full Board - J5 Minion 

Leaderboard Zoomed In – J5 Minion 

 

3. If using the lighting board: Connect the lighting board to the leaderboard using the same cable and switches/lights 

(Note: lighting board may not look exactly like the image) 

GND 

5V 

Cruise Set SW 

Cruise EnableSW 

Reverse SW 

Forward SW 

Regen SW 

Brakelight 

Extra Conn 

Leaderboard Connector (J1 on the bottom of the Lighting Board, 1x9) Diagram: 
 

Minion Connector (J5 on Leaderboard, 2x5) Diagram: 

  • Connections (Leaderboard -> Lighting Board) using single wires 

    • Extra GPIO Connector (J24 on Leaderboard)

    • PB4→CRUZ_ST // Review if these n

    • PB5->BRAKELIGHT 

  • All other switches and lights necessary should be wired to their appropriate ports on the lighting board, as seen in the diagram above. 

  • Some internal lights are now deprecated as the display is used to indicate car state.

4. If using CarCAN, Connect Car CAN wires (on leaderboard)

  • J21 and J22 

  • From top to bottom, 1st pin is 5V, 2nd pin is GND, 3rd pin is CAN HIGH, 4th pin is CAN LOW 

  • CAN_IN will connect to BPS or Telemetry, same for CAN_OUT (exact order to be determined)

 5. Connect Motor CAN wires

  • Connector Type TE_4-2172079-2

  • Will connect to Tritium WaveSculptor Motor Controller using single wires connectpr

 

6. Connect the brake and pedal lines from the sim-board or pedals to the leaderboard. (J10 and J11, using the 3x2 molex connectors) 

 

  • Use 3x2 Molex connectors with only 3x1 wires connected (due to only using 1 of the 2 potentiometers for brake and accel)

7. Connect the ignition lines from the sim-board/ignition switch to the leaderboard using the 7x2 Molex connector.

8. Connect micro-USB port to laptop to view UART output (print statements, necessary for some automated tests) 

9. Connect debug wires (4) between Leaderboard and programmer 

  • We have an STM32 Nucleo board whose only purpose is to flash and debug code to the leaderboard. 

  • Note: Normally, the Nucleo's programmer is wired to the Nucleo board itself. Thus, it is necessary to remove the pair of jumpers on the Nucleo board programmer to use it for an external chip. Picture of the jumpers to remove are shown below. 

To connect the JTAG connections on the nucleo's programmer to the leaderboard, follow the pictures below. Starting from the top of the nucleo board, pin 1 is VCC, pin 2 SCK, pin 3 is GND, and pin 4 is SWO. (Be careful not to accidentally mix up the GND & SWO, they should be switched on the leaderboard end of the connection).

  • Connect the Nucleo’s micro-USB port to laptop (debugger control)

10. If contactors are needed for the testbench, connect the array-bypass and motor-bypass contactors to the leaderboard using the contactors board. 

Contactor driver board 

  • On the contactors board: 

    • The array-bypass and motor-bypass contactors should have connectors that directly plug into each of the connections shown below: 

  • Use jumper wires to connect the contactor board to the leader board and to 12V/GND

    • Contactor board connections (refer to images below):

      • Motor P.B.C. EN/GND -> Motor P.B.C. EN/GND

      • Array P.B.C. EN/GND -> Array P.B.C. EN/GND

      • Contactor board 12V/GND -> Power supply 12V/GN 

11. The Controls Leader Board Power Connector (J7) needs to be connected to the BPS Power Connector (J7) in order to have supplemental power.  

12. Additionally, the Controls Leader Board Power Connector (J7) needs to be connected to the BPS Power Connector (J7) in order to allow the ignition switch to actually work. If BPS is being hooked up, this should go to BPS as this is essentially how BPS is powered (once the ignition switch is turned, 12V is let through to BPS). However, this step can be disregarded if not hooking up to BPS board.

  •  Both can be connected to 12V if testing without BPS.

Leaderboard Full Board – J7 BPS Power Connector 

13. Set the ignition switch position to “Off” (position 6)

  • (Note: the ignition switch will appear to be in the same place as the labels, slightly above the via to which it is connected) 

 14. Connect the forward gear pin to 5V so that the motor will be in forward gear. This is done to move from the Neutral Normal Drive to the Forward Normal Drive. (Refer to state machine for more information regarding the state of drive when initially turned on). 

  • PA5, which is CLK pin on SPI (Right above minions pins) 

  • DO NOT connect this to 5V on PSU 24 pin connector 5V!

    • Get the 5V from the same 5V for the display. This can be done by using the breadboard. 

 15. If you're using a power supply (PSU for computers), you can find the 24 pin connector on the PSU and use the +12V and GND from there to power the leader board. This would be pin 11 (+12V) and pin 24 (GND). We would also need to pull PS-ON to GND for the power supply to turn on. We can short pin 3 (GND) and pin 16 (PS-ON) to do this. See pictures below 

  • Connect power to Leaderboard, contactors board, and lighting board.

  • Leaderboard power connector (J18)