In this lesson, we will teach you how to use mobile APP to control Robot car through UDP protocol

Hardware Installation and Circuit Connection:

You must complete the Lesson 1 hardware installation and circuit connection.

You also need to know your Raspberry Pi IP address from Lesson 1.

Then turn on the battery and use putty or ssh to connect your raspberry Pi.

Software Installation:

Step 1) Make sure you have installed rpi.gpio and adafruit-pca9685 library in lesson 1 .

Step 2)Type following command to download the sample code:

wget http://osoyoo.com/driver/picar/picar-udp-control.py 
python picar-udp-control.py

After above python is running, your car is waiting for command from  your cell phone.

Step 3)Now you need install OSOYOO WIFI UDP Robot Car Controller APP.
You can search Google Play or Apple Store with the Keywords “OSOYOO WIFI UDP Robot Car Controller APP”.

If you don’t have Google Play in your country, you can also download Android APP from https://osoyoo.com/driver/arduino-udp/udp-robot.apk

Step 4)Open the APP, click Setting, Set your Raspberry Pi IP address in setting and Port to 8888:

Now your  can click the < > ^ v direction keys to make the car move. Use || pause key to stop the car movement.