
58
Ultrasonic sensor servo initial direction alignment
After turning on the battery, you will hear a long beep sound, then the servo
will make some movement and finally stops at a direction for 5 seconds.
During this first 5 seconds, you must make sure the Ultrasonic sensor (two
eyes) is facing straight forward.
If it is not straight forward, you should turn off battery immediately and remove
the sensor from servo, reinstall it and make it facing straight forward direction
as following picture. Otherwise the obstacle avoidance program will not work
properly.
After adjusting sensor direction, turn on battery again. After hearing the long
beep, the sensor should face front same as following picture. If its direction is
not straight forward, turn off battery and do direction alignment again.
Final Testing
After turning on the battery switch on the battery box, if the ultrasonic module
turn to front view position, that means you no need adjust sensor position
anymore. Just wait 5 seconds. If no obstacle is detected, the car will go
forward. If any obstacles is detected, the car will stop, the ultrasonic module
will turn from right to left to detect surrounding obstacle. The robot car will
decide to make left turn, right turn or backward according to obstacle sensor
data and our obstacle avoidance algorithm.
Sometimes your car might have collision and make your Ultrasonic sensor
position change, you must remember to do sensor direction alignment again
Summary of Contents for V2.1
Page 28: ...27 ...
Page 39: ...38 Step 4 Fix the screws on copper pillars to connect upper chassis to lower chassis ...
Page 41: ...40 Step 4 Choose corresponding board port for your project upload the sketch to the board ...
Page 58: ...57 Step 4 Choose corresponding board port for your project upload the sketch to the board ...
Page 60: ...59 as per link Ultrasonic sensor servo initial direction alignment ...
Page 73: ...72 Note F1 F6 are further development functions in the future ...
Page 81: ...80 ...
Page 86: ...85 ...