71
Our cell phone can connect to Robot Car as its wifi client. The IP address of
Robot is fixed as 192.168.4.1 and It is not connected to WAN.
1) Please download sketch from following
link:
http://osoyoo.com/picture/V2.1_Arduino_Robot_Car/code/v2smartcar-
lesson6B.zip
. Unzip the file, you will see a folder “v2smartcar-
lesson6B”. Open Arduino IDE -> click file -> click Open -> choose code
“v2smartcar-lesson6B.ino” in v2smartcar-lesson6B folder, load the code into
Arduino
2) Open your Arduino Serial monitor, and you will see a similar result as STA
mode. A new Wifi SSID “osoyoo_robot” with IP address 192.168.4.1 will show
up in the window. This means your Robot car has a Wifi Hot Spot name
“osoyoo_robot”, its IP address is 192.168.4.1
3) Connect your cell phone to “osoyoo_robot” wifi hot_spot, and set IP
address as “192.168.4.1” to your APP Setting section
Now your Robot car become a Wifi Hot Spot, you can use Mobile phone
control the robot car.
Final testing
Turn on the car. Now click “Setting” to set up robot IP address.
In STA mode, you need connect cell phone to the same LAN ssid of your
robot car and set IP address same as the Robot IP showed in Arduino Serial
Monitor.
In AP mode, you need contact your cell phone to “osoyoo_robot” wifi hot_spot
and set IP address as 192.168.4.1
You can click the < > ^ v direction keys to make the car move. Use || pause
key to stop the car movement.
If you click Obstacle key, the car will do obstacle avoidance auto driving
If you click Tracking key, the car will do link tracking auto driving similar
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 ...