anybody knows what i need on controlling rc car via bluetooth and arduino uno via mobile app with the use of cellphones tilt?
i need of course rc car, arduino, bluetooth shield , android phone, android app, and servo motor? am i right?
You need: Start with the car. You can get a cheap one at a yard sale or something. Open it up and without taking anything out, find out how to control the motors. You should post pictures so we can help.
Next, get a Bluetooth module. A HC-05 or HC-06 will work unless your android device has BLE. Do you have the device yet?
A Bluetooth shield will work as well, but you may not be able to choose where the TX and RX pins go.
I already have a bluetooth shield hc-05, its default configuration mode is slave, am i right? so i dont need to change it and i dont need to enter to AT command mode? am i correct? cause the android phone will be the one who will search for the slave bluetooth shield hc-05, please correct me if im wrong guys cause i really need to do this project thanks.
things i have now
android device
arduino uno
bluetooth shield hc-05
jumper/connecting wires things i will buy
toy car
switch, for on and off 9v battery?i need it for supply right? dc stepper motor or servo? what should i buy?
do i need any resistors?
Gippopotam:
rmtc,
If you are willing to pay a small fee to me - I can do for you the whole project. StudioGippopotam@gmail.com
but im here in the philippines also i wanna learn too on how to do it, but i need your help guys
this is my reference of what im trying to make solderer.tv/cxemcar/
do i need a L298N Dual Bridge DC stepper Motor Driver module or just a dc stepper motor
rmtc:
but im here in the philippines also i wanna learn too on how to do it, but i need your help guys
this is my reference of what im trying to make solderer.tv/cxemcar/
do i need a L298N Dual Bridge DC stepper Motor Driver module or just a dc stepper motor
I think - you chose wrong topic. First you must learn the basics.
No need to pay anyone, we can help you for free.
Some RC cars are easy to hack, so get that first.
I found a sketch somewhere on the forum. As it says, credit to Jeff Simpson.
// JY-MCU Bluetooth Dongle configurator
// Credit to Jeff Simpson
// Utility will display actual Baud rate and as an option,
// set up a new Baud rate
// TX BT board pin to Arduino D2
// RX BT board pin to Arduino D3
// 5V BT board pin to Arduino 5V
// GND BT board pin to Arduino GND
#include "SoftwareSerial.h"
SoftwareSerial mySerial(2, 3); // BlueTooth module TX RX
char response[21]; // responses from module
int rv = 0; // return value
boolean found = false; // module found
int bps;
void setup() {
Serial.begin(57600);
mySerial.begin(57600);
Serial.print("\n\nSearching "); // Search for BT module on 12 possible baudrates
long baud[12] = {1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600, 1382400};
for(int a = 0; a < 12; a++)
{ mySerial.begin(baud[a]);
mySerial.write("AT"); // "AT" will respond with "OK" if it is working
mySerial.readBytes(response, 2);
if (strncmp(response, "OK", 2) == 0)
{ Serial.print("\nBluetooth Module found at BAUD ");
Serial.println(baud[a]);
found=true;
break;
} else Serial.print(".");
}
if (found==false)
{ Serial.println("\nERROR: Bluetooth Module not responding!");
Serial.println("Make sure there are no active bluetooth connection and try again");
while(1);
}
delay(100);
mySerial.write("AT+VERSION"); // Check the firmware version
while(mySerial.available() == 0);
mySerial.readBytes(response,2);
if (strncmp(response, "OK", 2)==0)
{ rv = mySerial.readBytes(response, 20);
response[rv] = 0;
Serial.print("Firmware Version: ");
Serial.println(response);
Serial.println();
} else {
Serial.println("Error checking BT Version");
Serial.println();
while(1);
}
while(Serial.available()) Serial.read();
Serial.println("To modify Baud rate, enter:");
Serial.println(" 1 for 1200 bps");
Serial.println(" 2 for 2400 bps");
Serial.println(" 3 for 4800 bps");
Serial.println(" 4 for 9600 bps");
Serial.println(" 5 for 19200 bps");
Serial.println(" 6 for 38400 bps");
Serial.println(" 7 for 57600 bps");
Serial.println(" 8 for 115200 bps");
Serial.println(" 0 to Exit\n");
Serial.print("Selected: ");
while(Serial.available()==0);
bps = Serial.read();
if(bps>=48 & bps<=56) { // '0' < bps < '8'
Serial.println(bps-48);
if(bps>48) {
mySerial.write("AT+BAUD"); // Set the BAUD
mySerial.write(bps);
while(mySerial.available()==0);
mySerial.readBytes(response, 2);
if (strncmp(response, "OK", 2)==0) {
rv = mySerial.readBytes(response, 7);
response[rv] = 0;
Serial.print("New BAUD setting: ");
Serial.println(response);
} else {
Serial.println("Error Setting BAUD");
Serial.println(response);
}
Serial.println("Bluetooth Setup Completed ** End **");
while(1);
} else {
Serial.println("No modification ** End **");
while(1);
}
}
else Serial.println("non valid entry ** End **");
}
void loop() { }
EDIT Get a RC car that will be able to fit stuff in it. If you can get an old one, the RadioShack RoughRider is a good choice, if rather expensive. ($60 new)
Yes you don't need to pay for this project, there are lot of Bluetooth controlled Robot cars projects available online just Google search. And you don't need to buy whole L298N module, you can build it just using a simply the L298 IC. I have also built one using some tutorials on Internet, although they are lacking technical details but I want to share some links which I found useful and they don't need any fancy modules or kits means they are just raw ones for beginners like me: Bluetooth control Robot Car Arduino
And Bluetooth controlled car
Now, In your question you have mentioned that you want to use Tilt functionality of Android Cellphone, I am also very keen to know that how did you used Tilt function to move the Robot Car?
Ar you talking about getting an existing remote-control car, and building a bluetooth app to drive it?
Or are you talking about getting a toy car with a motor, and building a remote-controlled car from parts?
To do the second,
hardware:
Servo to run the steering.
H-Bridge to run the existing motor
Bluetooth receiver on the arduino.
Power supply (batteries) for everything
software
: android app to send bluetooth to the arduino
: arduino programmto listen to bluetooth, convert incoming bytes to control
: protocol (format) for the stream of bytes being sent via bluetooth.
PaulMurrayCbr:
Ar you talking about getting an existing remote-control car, and building a bluetooth app to drive it?
Or are you talking about getting a toy car with a motor, and building a remote-controlled car from parts?
Yes I want to do the second one, but just want to move the car by tilting the Android phone left, right, up and down, instead of using touch buttons. I don't have much knowledge about Android Apps, Do I need to change the Bluetooth app or need to change program and circuitry?
rame100:
Yes I want to do the second one, but just want to move the car by tilting the Android phone left, right, up and down, instead of using touch buttons. I don't have much knowledge about Android Apps, Do I need to change the Bluetooth app or need to change program and circuitry?
Well, once you have a car that you can control with bluetooth messages, writing an android app to send bluetooth in response to tilting your phone is do-able, but you'll need to talk on an android programmer's forum to find out how.