Keyestudio Smart Little Turtle Robot V3 Manual page 166

Table of Contents

Advertisement

www.keyestudio.com
pattern
The specific logic of ultrasonic follow robot car is as shown below:
Detection
Setting
Condition
Status
Condition
Status
Condition
Status
Condition
Status
Flow Chart
Measured distance of front
obstacles
Set servo to 90°
Make dot matrix show smile face pattern
Distance<8
Go back(PWM set to 200)
distance≥8 and distance<13
Stop
distance≥13 and distance<35
Go front(PWM set to 200)
distance≥35
stop
distance
(unit: cm)
166

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents