loading

This is a simple project of Android Bluetooth Car with Bluetooth control. Arduino controller is used

To control the car used Android-device with a built-in accelerometer. Tilt forward - car goes forward, tilt to the left - car turns to the left, tilt back - car goes back. Speed of movement or rotation depends on how much you tilt the device. Sensitivity and value of the tilt set in the configuration Android-apps. Also are provided a normal way to control: the buttons on the screen. In addition to all I implemented the touch control. Total 3 ways to control the RC Car.

Capabilities of the device you can see on the video above

Step 1: Android device

Parts needed

1. Android device

The most important part - Android device with accelerometer and Bluetooth: tablet, smartphone and other... As an Android device, I used a cheap Chinese tablet "Ainol Aurora" with an external USB-Bluetooth module (because its not have own), connected via USB Host.

<p>i made it. at the end all you got to do is to make a parallel switching from D3 to PWM for right motor and D5 to PWM for left motor. it enables the working of both the motors.</p>
I still don't get it,so basically the ena and enb things on the l298n connect to digital pins 3 and 5 am I correct? and if you say yes, it still doesn't work, srry for being a noob but i really want to understand this.
<p>haha yeah! its alright.</p><p>yep i meant the same, the thing you said. in what other way can i explain it to you? :P</p>
<p>yo dude, so i read some things about l298n, basically there are 6 inputs, 2 are pwm and 4 are direction control, but in the diagram shown above there are only 4 pins being used, i did what you said, i took out what d3 was connected to and put d3 on ena and put d5 on enb, still using 4 wires, but still not working, i need help, i really need this build to work.</p>
<p>alright man, listen, i put ena to digital pin 5 and enb on digital pin 3, it does not work, because earlier, i had used the 4 inputs in the diagram, so i disconnect the ones which were to in2 and in4, could u send me a detailed version of where the wires go from arduino to l298n please, or could u use an app called fritzing to make a diagram and send it to me via gmail, my gmail is dsehgal2004@gmail.com</p>
<p>what do you mean by that, you said d3 to pwm(already is on a pwm) and d5 which also is already on a pwm slot, but it still does not allow it to move the motors. plz help me bruh.</p>
No boy, <br>Motor driver has 6 inputs. 3 for each motor. D2 and D3 goes in for left motor and D4 and D5 goes for right motor. But to enable the motors we need to give pwm connections too. So, D3 and D5 parallely moves to pwm enabler of motor driver. <br>Hope i helped.<br>Cheers
<p>did you mean the program or wires</p>
<p>here is the finished car </p><p>thanks again tolik777</p>
<p>here is the finished car </p><p>thanks again tolik777</p>
<p>loved the project :)</p><p>thanks tolik777</p>
<p>Tolik777, thank you for a great instructable. </p><p>I not sure who had more fun doing this project me or my son.</p><p>Good Job!</p><p>I'll add an Made It image later</p>
<p>Thanks, Work great.</p><p>A little tweaks and it works on on already buillt car :D</p>
<p>tell me about those tweaks because right now both of my motors are not workin yet I followed it all I still can't get my motors to spin, plz help me dude.</p>
<p>Okay so I tried what you said to do, but still keep getting socket fail, whenever I try it on my phone</p>
<p>you can use an app called ardudroid on the playstore to get the mac address so it can remove that socket fail, go open ardudroid and click connect me to a blutooth device and if your blutooth module is on then you should see the mac address of it, copy it down and go back to cxem car and enter the mac address, and it should work. </p>
<p>add a } to the end so </p><p>else if(FCMD == cmdw){ // if EEPROM data write command</p><p>EEPROM.write(0,z1); // z1 record to a memory with 0 address</p><p>EEPROM.write(1,z2);</p><p>EEPROM.write(2,z3);</p><p>EEPROM.write(3,z4);</p><p>timer_init(); // reinitialize the timer</p><p>Serial.print(&quot;FWOK\r\n&quot;); // send a message that the data is successfully written to EEPROM</p><p>}}</p><p>then compile</p>
<p>reply guys</p>
<p>expected '}' at end of input<br><br>}<br><br>^<br><br>exit status 1<br><br>expected '}' at end of input</p><p>please help me out</p>
<p>thodi bhain di</p>
<p>Bluetooth is not getting detected I am using HC-05. What could be wrong?</p>
<p>id adding more motor driver possible, where do i hook it up?</p>
<p>hi there, i need help, I used arduino uno, correctly done my wiring connection, everything seems in correct order, as per instructions. I installed the Cxemcar 1.2 to my smartphone, connected the bluetooth successfully. But the main problem is, both motors are not moving at all. I measured L289 motor driver output voltages, they are both O volts (while pressing forward or backward from the button controls of Cxemcar). Can anyone help me..thanks a lot.</p>
<p>hi there, i need help, I used arduino uno, correctly done my wiring connection, everything seems in correct order, as per instructions. I installed the Cxemcar 1.2 to my smartphone, connected the bluetooth successfully. But the main problem is, both motors are not moving at all. I measured L289 motor driver output voltages, they are both O volts (while pressing forward or backward from the button controls of Cxemcar). Can anyone help me..thanks a lot.</p>
<p>hi there, i need help, I used arduino uno, correctly done my wiring connection, everything seems in correct order, as per instructions. I installed the Cxemcar 1.2 to my smartphone, connected the bluetooth successfully. But the main problem is, both motors are not moving at all. I measured L289 motor driver output voltages, they are both O volts (while pressing forward or backward from the button controls of Cxemcar). Can anyone help me..thanks a lot.</p>
<p>hi there, i need help, I used arduino uno, correctly done my wiring connection, everything seems in correct order, as per instructions. I installed the Cxemcar 1.2 to my smartphone, connected the bluetooth successfully. But the main problem is, both motors are not moving at all. I measured L289 motor driver output voltages, they are both O volts (while pressing forward or backward from the button controls of Cxemcar). Can anyone help me..thanks a lot.</p>
<p>hi there, i need help, I used arduino uno, correctly done my wiring connection, everything seems in correct order, as per instructions. I installed the Cxemcar 1.2 to my smartphone, connected the bluetooth successfully. But the main problem is, both motors are not moving at all. I measured L289 motor driver output voltages, they are both O volts (while pressing forward or backward from the button controls of Cxemcar). Can anyone help me..thanks a lot.</p>
<p>hi there, i need help, I used arduino uno, correctly done my wiring connection, everything seems in correct order, as per instructions. I installed the Cxemcar 1.2 to my smartphone, connected the bluetooth successfully. But the main problem is, both motors are not moving at all. I measured L289 motor driver output voltages, they are both O volts (while pressing forward or backward from the button controls of Cxemcar). Can anyone help me..thanks a lot.</p>
expected '}' at end of input<br><br>}<br><br>^<br><br>exit status 1<br><br>expected '}' at end of input<br>When i caheched the program it showa like this can anyone help me? Plz. Anyone give the perfect program plz.!
<p>great project </p>
<p>got the car assembled but when i try to test it, it comes up with &quot;socket fail&quot; and wont go or do anything. can someone help me with this? do i need to change anything in the code?</p>
<p>I made it. It works awesome. I made my own motor driver circuit though. I used 2 motor drivers to control 4 motors.</p><p>@<a href="http://www.instructables.com/member/jasonjason931" rel="nofollow">jasonjason931</a>, the code is just fine. All you have to do is go to device manager (if you are using windows) and change the Com port to Com 5. Folow this link - &quot;http://plugable.com/2011/07/04/how-to-change-the-com-port-for-a-usb-serial-adapter-on-windows-7&quot; to change it. Also don't forget to change the MAC address on the android app. Set the MAC address to your bluetooth adapter's address. That should work.</p>
Okay so I tried what you said to do, but still keep getting socket fail, whenever I try it on my phone.
Thanks! I'll give that a try! And let you know!
<p>after pasting the code into the software, i got it checked and it replied with the error: Arduino: 1.6.7 (Windows 8.1), Board: &quot;Arduino Nano, ATmega328&quot;</p><p>Build options changed, rebuilding all</p><p>C:\Users\hugh\Desktop\sketch_feb25a\bluetooth\bluetooth.ino: In function 'void Flash_Op(char, uint8_t, uint8_t, uint8_t, uint8_t)':</p><p>bluetooth:173: error: expected '}' at end of input</p><p> }</p><p> ^</p><p>exit status 1</p><p>expected '}' at end of input</p><p> This report would have more information with</p><p> &quot;Show verbose output during compilation&quot;</p><p> enabled in File &gt; Preferences.</p><p>can you help me solve it please?</p>
<p>this is the screenshot</p>
просто у меня эта программа не работает
ena и enb куда подключать и подключать ли вообще?
можно использовать с другим приложением?
<p>i made it. at the end all you got to do is to make a parallel switching from D3 to PWM for right motor and D5 to PWM for left motor. it enables the working of both the motors.</p>
Hey can u pls tell me how did u make it.
<p>Hello all i've made it but the motors are not running :( it is unresponsive to the app!</p>
Same thing is happening with me. I have completed assembling and programming but car's not even moving..
<p>can you tell me which type of motor is preferred for this project? If the attached motor would work???</p>
<p>Yes i'm using the same motors</p>
<p>Hello all I have made it but when I connect it to app it says &quot;socket Failed&quot; and motors won't start i m using uno here is the picture -</p>
<p>Very nice project! If you're interested, an alternative to the Arduino is the IOIO board. There is an Android library that goes with it, so you can put an Android phone on the RC car and control the car by wirelessly connecting to the phone. Have you heard of Android Based Robotics (ABR)? They have instructions and code. Check it out! http://www.socsci.uci.edu/~jkrichma/ABR/index.html</p>
<p>i made it. at the end all you got to do is to make a parallel switching from D3 to PWM for right motor and D5 to PWM for left motor. it enables the working of both the motors.</p>

About This Instructable

514,898views

1,020favorites

License:

Bio: I like Electronics, Robots and Arduino!
More by tolik777:Android controlled RC Vehicle with real-time Video via Bluetooth & Wi-Fi CxemCAR 1 - Android Control RC Car over Bluetooth Arduino Ampermeter (ZXCT IC's) 
Add instructable to: