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>Thanks, Work great.</p><p>A little tweaks and it works on on already buillt car :D</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>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>
<p>did you mean the program or wires</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>
<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>
<p>i dont know where the fault lies, but i did as it was shown.</p><p>Now the thing goes like,</p><p>from arduino nano, the out put are four for the motor driver L298N in which 2--&gt; are for PWM of left and right (D3, D5) and other 2--&gt; are for the direction of motor (D2, D4).</p><p>But at motor driver's end there are six inputs for direction, the clock and anti clockwise direction for and right motors separately in input ((in1, in2) left motor, (in3, in4) right motor) and two for PWM.</p><p>please guide me that how to attach arduino to the motor driver.</p><p>i used the above code but its still not working.</p><p>So it doesnt take any command. Else, it stops when pressed front or back button. </p>
<p>yes but they are used as pwm only if you want a step motor. Here just power the inA and inB motor pin with 5V and should work fine.</p>
<p>actually i did that. but without using pwm sockets, the motor aint running in any direction. </p>
<p>i keep getting the error message &quot;socket failed&quot; on the android device. Pls Help</p>
<p>can u please send the code very urgent , need for a project plss on nikhildhoka8@gmail.com</p>
<p>Motors are not moving .</p><p>Motor driver requires 6 input pins 2 for PWM and 4 for direction control.</p><p>But in this project there are only $ input pins for motor driver 2 PWM and @ direction.</p><p>Here is a link of Motor Driver working principal</p><p><a href="http://www.instructables.com/id/Arduino-Modules-L298N-Dual-H-Bridge-Motor-Controll/?ALLSTEPS" rel="nofollow">http://www.instructables.com/id/Arduino-Modules-L2...</a></p>
<p>exactly, even i faced the same problem. from arduino nano, the out put are four in which 2--&gt; are for PWM of left and right (D3, D5) and other 2--&gt; are for the direction of motor (D2, D4).</p><p>But at motor driver's end there are four inputs for direction, the clock and anti clockwise direction for and right motors separately in input ((in1, in2) left motor, (in3, in4) right motor).</p><p>So it doesnt take any command. else, it stops when pressed front or back button. please help </p>
<p>does anyone have the code with no error to send me pls. koffih81@gmail.com</p>
<p>motor is not running,,, what should i do???</p>
See wires
Hello tolik777.a message &quot;socket failed&quot; appeared on my cxem apps when i tried to control it.what does it mean?please help me.

About This Instructable

498,148views

1,004favorites

License:

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