Chapter 2 Assemble Smart Car

If you have any concerns, please feel free to contact us via support@freenove.com

You can refer to this video

Motor, Wheel and Servo arm

Installation steps

Step 0

../../../_images/Chapter2_00.png

Place the Rocker arm on the smart car board in accordance with its silkscreen printing. Use two M2.5*8 screws to install it to smart car board.

There are two servo packages. Each package contains one servo, three rocker arms, one M2*4 screw and two M2.5*8 screws, as shown below:

../../../_images/Chapter2_01.png

Step 1

There are 4 bracket packages to fix motors, each containg an aluminum bracket, two M3*30 screws, two M3*8 screws and two M3 nuts, as shown below:

../../../_images/Chapter2_02.png

../../../_images/Chapter2_03.png

Install motor bracket with M3*8.

You can also attach this bracket to motor first.

Step 2

../../../_images/Chapter2_04.png

Install motor to bracket with M3*30 screw and M3 Nut.

Caution: Do not remove the cable tie from the motor; otherwise, the motor cable may become detached.

Step 3

../../../_images/Chapter2_05.png

The installation of the rest 3 sets of motor is the same. Then connect motor wires to motor ports. If you think the wires are too long, you can tie a knot.

Caution: Do not remove the cable tie from the motor; otherwise, the motor cable may become detached.

Step 4

../../../_images/Chapter2_06.png

Install 4 wheels to motor. The mounting hole is not a round hole.

Caution: Do not remove the cable tie from the motor; otherwise, the motor cable may become detached.

../../../_images/Chapter2_07.png

Now, all motors and wheels are installed successfully.

Infrared line tracking module

Step 1

../../../_images/Chapter2_08.png

First install two M3*30 standoffs on smart car board with M3*6 screws. Then install line tracking module on standoffs with M3*6 screws.

Step 2

../../../_images/Chapter2_09.png

Connect line tracking module to smart car board with XH-2.54-5Pin cable.

Raspberry Pi

../../../_images/Chapter2_10.png

First install four M2.5*8+6 standoffs to the nuts on smart car board. And then place the Rapberry Pi on the standoff in accordance with its silkscreen printing, and use four M2.5*4 screws to install it.

Connection board

Step 1

../../../_images/Chapter2_11.png

Install the connection board as shown in the figure above. Long female header connector should be connected to smart car board and the short one should be connected to Raspberry Pi.

We have two types of connection boards, but they are installed in the same way.

See here for more information.

Note

We have two types of connection boards, but they are installed in the same way.

Connection board (PCB_V1.0)

Connection board (PCB_V2.0)

Chapter2_12

Chapter2_13

Step 2

../../../_images/Chapter2_14.png

../../../_images/Chapter2_15.png

If you have any concerns, please feel free to contact us via support@freenove.com

Pan Tilt

../../../_images/Chapter2_16.png

Finally, install two 18650 batteries. Please refer to About_Battery.pdf in the unzipped folder.

Please push the battery to + ends of battery holder to make the connection good enough.

Run program

In the first chapter, we did not install the Pan-Tilt. Because we need to run programs for the installation of the servos to ensure that the servos rotate to the correct angle.

Next let us install the Pan-Tilt.

Connect two servos to port Servo0 and port Servo1 on the smart car board. And please remember the numbers of the servos.

../../../_images/Chapter2_17.png

Enter the following command in the terminal:

If the terminal displays the directory as below (where test.py is located). You can directly execute the servo.py command.

../../../_images/Chapter2_18.png

1.If not, execute the cd command:

$ cd ~/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server

2.Execute Servo.py command:

$ sudo python servo.py

Then servos rotate to a proper angle. Please keep the connection between the servos and the smart car board.

Installation steps:

Note

Do not disorder Servo0 and Servo1 during the installation.

Step 1

Step 2

Step 3

Chapter2_19

Chapter2_20

Chapter2_21

Step 4

Step 5

Step 6

Chapter2_22

Chapter2_23

Chapter2_24

Step 7

Step 8

Step 9

Chapter2_25

Chapter2_26

Chapter2_27

Now please refer to Wiring Section to wring ultrasonic sensor and camera frist.

Step 10

Step 11

After finished

Chapter2_28

Chapter2_29

Chapter2_30

Install Pan Tilt on smart car board.

Step 1

../../../_images/Chapter2_31.png

Keep the pan tilt as shown in the right picture and install servo0 with rocker arm.

Step 2

Use a Cross screwdrive to support M2 * 10 screws and M2 nuts to fix the servo 0.

../../../_images/Chapter2_32.png

Step 3

../../../_images/Chapter2_33.png

Pay attention to servo wiring.

Note

Wiring about the ultrasonic and camera module will be introduced later.

Wiring Section

Camera

You need shut down Raspberry Pi when wire camera.

Step 1
../../../_images/Chapter2_34.png
Step 2
../../../_images/Chapter2_35.png

The Blue side of cable should be toward to Servo.

Connect one end of cable to camera. Please note the front and back of the cable.

Step 3
../../../_images/Chapter2_36.png
Step 4
../../../_images/Chapter2_37.png

The Blue side of cable should be toward to Servo.

Connect one end of cable to camera. Please note the front and back of the cable.

Camera for Pi5

You need shut down Raspberry Pi when wire camera.

Step 1
../../../_images/Chapter2_38.png
Step 2
../../../_images/Chapter2_39.png

Connect one end of cable to camera. Please note the front and back of the cable.

Step 3
../../../_images/Chapter2_40.png
Step 4
../../../_images/Chapter2_41.png

Connect another end of cable to Raspberry Pi. Please note the front and back of the cable.

Ultrasonic

Use jumper wires F/F to connect ultrasonic module with pins on smart car board.

GND-GND, VCC-5V, ECHO-ECHO, TRIG-TRIG

../../../_images/Chapter2_42.png