Controlling Arduino with Bluetooth Low Energy(I-Phone)
Bluetooth enables wireless control of your robot by sending it serial data over Bluetooth radio.
Using the HM-10 Bluetooth Low Energy module enables control from a smartphone BLE app.
Using paired HC-05 Bluetooth modules enables remote control using sensors connected to a second Arduino which acts as a remote control.
Using the HM-10 Bluetooth Low Energy module enables control from a smartphone BLE app.
Using paired HC-05 Bluetooth modules enables remote control using sensors connected to a second Arduino which acts as a remote control.
Using HM-10 BLE to Control Arduino with an Iphone
https://evothings.com/control-an-led-using-hm-10-ble-module-an-arduino-and-a-mobile-app/
HM-10 Serial Lite App
https://itunes.apple.com/us/app/hm10-bluetooth-serial-lite/id1030454675?mt=8
BluetoothBot Instructable
http://www.instructables.com/id/Arduino-controlled-Bluetooth-bot/
Below: Partial code- send leftspeed,rightspeed using Serial Lite App
https://evothings.com/control-an-led-using-hm-10-ble-module-an-arduino-and-a-mobile-app/
HM-10 Serial Lite App
https://itunes.apple.com/us/app/hm10-bluetooth-serial-lite/id1030454675?mt=8
BluetoothBot Instructable
http://www.instructables.com/id/Arduino-controlled-Bluetooth-bot/
Below: Partial code- send leftspeed,rightspeed using Serial Lite App
#include <SoftwareSerial.h> //using software serial so as not to conflict with serial download
SoftwareSerial mySerial(12,13); // RX, TX
int rightspeed = 200;
int leftspeed = 200;
void setup() {
mySerial.begin(9600);
}
void loop() {
while (mySerial.available() == 0) { }
leftspeed = mySerial.parseInt();
rightspeed =mySerial.parseInt();
forward();
delay(100);
}
void forward() {
analogWrite(ENA, leftspeed); //set speed to mid
digitalWrite(IN1, HIGH);//left motor forward
digitalWrite(IN2, LOW); //right motor forward
analogWrite(ENB, rightspeed); //set speed to mid
digitalWrite(IN3, HIGH);//left motor forward
digitalWrite(IN4, LOW); //right motor forward
}
Connecting Two Arduinos with HC-05 Bluetooth Modules as Serial Pass-through
How to Pair Two HC-05 Modules for Serial Pass-through
https://howtomechatronics.com/tutorials/arduino/how-to-configure-pair-two-hc-05-bluetooth-module-master-slave-commands/
If you remove power, they automatically re-pair(2 brief blinks every 2 seconds) when power is restored.
https://howtomechatronics.com/tutorials/arduino/how-to-configure-pair-two-hc-05-bluetooth-module-master-slave-commands/
If you remove power, they automatically re-pair(2 brief blinks every 2 seconds) when power is restored.
See Previous code example ( http://designbuildcode.weebly.com/software-serial-two-arduinos.html ) for software serial link between two Arduinos.
See LSM-303( http://designbuildcode.weebly.com/advanced-sensors.html ) for tilt sensor for use as remote control.
Connect HC-05 Tx to Pin 12
Connect HC-05 Rx to Pin 13 using 1K:2K voltage divider (lowers receive voltage at HC-05 to 3.3V)
See LSM-303( http://designbuildcode.weebly.com/advanced-sensors.html ) for tilt sensor for use as remote control.
Connect HC-05 Tx to Pin 12
Connect HC-05 Rx to Pin 13 using 1K:2K voltage divider (lowers receive voltage at HC-05 to 3.3V)