Remote control for bluetooth robots and cars. Developed by RobotClass.
HOW IT WORKS
In "Continuous command flow" mode the programm will send via bluetooth a continuous flow of characters while the user presses the button. In another mode, the program will send one uppercase character when the user presses the button and the same lowercase character when he releases the button.
List of the commands:
- forward arrow - F
- backward arrow - B
- left arrow - L
- right arrow - R
- buttons A,B,C,D - corresponding A,B,C,D characters
- speed slider - characters from 0 to 9
ARDUINO EXAMPLE
void setup(){
Serial.begin(9600);
}
void loop(){
char incomingByte;
if( Serial.available() > 0 ){
incomingByte = Serial.read();
if(incomingByte == 'F'){
moveForward();
} else if(incomingByte == 'B')
moveBackward();
}
}
}
================
For more information please visit our site: http://robotclass.ru/tutorials/arduino-bluetooth
Instagramm: https://instagram.com/robotclass.ru
VK: https://vk.com/robotclass_ru
FB: https://facebook.com/makeitlab