|1||OSOYOO UNO R3(fully compatible withArduino UNO R3)||1||Click here to buy|
|2||OSOYOO MotorShield V1.0||1||Click here to buy|
|5||Tracking Sensor||1||Click here to buy|
|6||Ultrasonic Sensor||1||Click here to buy|
|7||SG90 Servo Motor||2||Click here to buy|
|8||Voltage Meter||1||Click here to buy|
|11||Mount Holder forUltrasonic Sensor||1||Click here to buy|
|11||18650 Battery Pack||1||Click here to buy|
Remove Jumper on ENA,IN1,IN2
|Back Motor||K3 or K4|
Before you run the Lesson 2 sketch code, please test the steering servo direction by download and running following sketch code:
After unzip above file and running above steeringtest.ino sketch code, your steering wheels will rotate from left to right and finally stop at the center direction.
If your steering servo does not facing face to center front direction, then you have two options:
Option 1 ) Use a screw driver to release the steer arm from servo, re-align the wheel direction manually and then fasten the arm onto servo again.
Option 2) You can change the default value of line 4
#define FRONT 90
if your steering wheels tends to left, increase the value from 90 to 95,100,105 …
if your steering wheels tends to right, decrease the value from 90 to 85,80,75 …
Run the sketch again until your steering wheels finally faces to front.
Then write down the FRONT value, we will use this value to change the lesson2,3,4,5,6 sketch code and make steering servo always facing front at default FRONT value.
Download file from Link: https://osoyoo.com/driver/sg90car/sg90car-lesson2.zip
Unzip the file and run the sg90car-lesson2.ino file, if you use OPTION 2) to align the steering servo, remember to change the FRONT value to in line 19 to match your OPTION 2) test. (lesson 3,4,5,6 needs to the s
your car will move forward, backward, left turn, right turn, back to right, back to left.
DownLoad Url osoyoo.com