fbpx

5.5 How to upload the code ?

Caution: Before uploading the code remember to remove the connection of Tx and Rx of Arduino with Bluetooth 

After the coding is completed then compile and upload the code, follow the below mentioned steps:

1.Click on the verify button to compile or to check the error in the code. 

2. To upload the code in Arduino UNO firstly, connect Arduino UNO with your Laptop or PC via USB A to B cable as shown below: 

3. Now, select Arduino UNO board type in Arduino IDE: Go to tools <Board< Arduino AVR boards < Arduino UNO.

Note: If you have some older version of Arduino IDE then Go to tools< Board < Arduino Uno.

4. Then, again go to tools and select the Port as shown below:

Note : If the port is not coming,then check if the driver is installed in your PC or not.Please follow the steps mentioned in previous topic.

5.Now, click the upload button and when the uploading will be finished then you will see uploading finished written below.

Note : If the uploading is not finished then there are some error in the code. 

6. After uploading the code, we need to control the car using Android application in the Android phone.

How to download bluetooth controlled application?:

  • Go to playstore in your phone and search for Arduino bluetooth controller:

  • Now open the app and connect the bluetooth:

  • Now, open the terminal mode and send the data 1 2 3 4 to move the car:

Result: When you will send the data 1 then the car will move foward, data2 then the car will move to backward,data3 then the car will move left and data 4 then the car will move right.

Watch the Video of the Project in next slide.