wireless communication
This idea is how to control servo motor without any switches using blutooth module
software:
arduino
arduino bluetooth control android app
material:
arduino uno
blutooth module
servo motor
3*1000 ohm resistor
breadboard
jumber wires
arduino bluetooth control
I searched on google for datasheets and wiring
downloading the android app
writing the suitable code
I made the circuit as shown:
-rx from bluetooth to tx of arduino, tx from bluetooth to rx of arduino, vcc to 5v and GND of module to GND of arduino
-vcc of servo to 5v, GND to GND arduino and signal to pin11
I made the code as shown:
-adding variable 'incomingData' to store data on it with type "char".
-include the library of servo motor.
-define servo on pin 11
-add serial connection
coding
Now;
if you press the '1' button in mobile app, the servo will rotate with 90 degree, if '2', it will return to zero degree and any button else won't affect on the servo
mobile app
connecting things together
remove rx/tx pins of blutooth module from tx/rx of arduino
uploading the code
connecting rx/tx pins of blutooth module with tx/rx of arduino
simulation
I was having a problem with uploading the could and a message appeared "the serial is busy" ,I checked the connection and found that I didn't remove rx/tx pins of blutooth module from tx/rx of arduino before uploading .that was important thing.
Title of Media
bluetooth module
I think it is nice to have wireless communication like bluetooth module and control it using phone
wireless communication throw mobile phone
app interface