https://www.hobbytronics.co.za
4
11. Fasten the servo in between the two servo mounting brackets and
connect the mounting brackets tightly by using the longer screws from the
servo bag. Connect your servo and the small white servo beam and use
one of the screws found in the bag to ensure that the motor stays
straight.
The HC-SR04 sensor can be mounted on the servo brackets and the servo
holder can be installed on the back of the chassis. You can use four
screws and four nuts to secure it. A good tip to keep the HC-SR04 sensor
form reading the ground as an object in the software is to tilt it slightly
upwards.
12. Now that all the parts are assembled, we need to connect them all. For
that we are going to use the jumper wires and AWG wires.
The wires can
be hooked on or soldered on.
-
Connect the power wire (red) of the battery holder to the lead under
the “O” part of the ON/OFF switch. The ground wire (black) should go
to the negative (-) sign on the power jack.
-
Take another power wire (red) and connect it from the lead under the
“I” part of the ON/OFF switch to the positive sign on the power jack.
You can use the heat shrinks to extend the wires.
13. You need to connect the DC Motor next. Use the power and ground wires
provided and connect the DC Motor to the L298N Dual H-Bridge motor
driver. An example below to guide you: