Circuit Connecting

Share for us
Share on facebook
Share on twitter
Share on pinterest
Share on whatsapp

Circuit Connecting

Preview:

This is how it looks when all wiring is done. Looks complicated but don’t worry! The detailed procedures will be given below, step by step. 

Step 1: Connect the two DC motors with the motor driver.

You may remove the L-shaped PCB connector and plug it back after wiring.

Note: It doesn’t matter how to wire the motors. After all the assembly is done, if the car moves in an opposite direction of what you control, just swap the wiring of the two motors and it will work normally.

After wiring, it should be like this: 

Step 2: Connect the motor driver with the Raspberry Pi GPIO port based on the following table.

Raspberry Pi GPIO PortDC Motor Driver
Pin11IN1
Pin12IN2
Pin13IN3
Pin15IN4

Step 3: Connect the servo controller with the Raspberry Pi GPIO port as follows:

Raspberry Pi GPIO PortServo Controller
Pin 2 (5V)VCC
Pin 3 (SDA)SDA
Pin 5 (SCL)SCL
GNDGND

Step 4: Hook up the servo that controls the car’s direction to CH0 of the servo controller, and the two servos that control the view of the camera to CH14 and CH15 respectively, as shown below: 

Step 5: Connect the motor driver with the servo controller. 

Step 6: Connect the servo controller with the step-down DC-DC converter module. For the connector, loosen the screws, insert the wire, and then tighten the screws with a screwdriver.

The connection should be like:

Step 7: Connect the battery holder with the step-down DC-DC converter module and the DC motor driver.

Note: Please DO NOT install the batteries at this step! Do it later when you’ve completed all the wiring. And take care that the red wire is the power and should be connected to the anode of the holder, when the black wire, i.e. the ground, to cathode. 

Insert the four wires into two jacks of the connector, two in each. Pay attention: the red wires to the anode of the step-down module, when the black ones to the cathode. Also DO NOT plug a red wire with a black one into the same jack, or it’ll cause a short circuit!

The whole picture of wiring should be like this: 

Step 8: Connect the Raspberry Pi with the step-down DC-DC converter module, the USB Wi-Fi adapter and the USB camera. 

————– Now the circuit is completed. Congratulations! ————-

The car should be assembled successfully as shown below: