- Instala la aplicación Bluetooth Terminal en un dispositivo Android.
- Emparece al módulo Bluetooth HC-05 con tu dispositivo móvil.
- Abre la aplicación Bluetooth Terminal y selecciona tu dispositivo Bluetooth.
- Usa el sketch
check_transmission.inopara comprobar que recibes en tu dispositivo los valores aleatorios que se van generando. - Usa el sketch
check_reception.inopara comprobar que recibes en la consola del Serial las cadenas de texto que envías desde la aplicación Android.
Created
March 10, 2017 13:12
-
-
Save josejuansanchez/18921a220d6c5e3e5739e2587a63111f to your computer and use it in GitHub Desktop.
Sketchs para comprobar la conectividad del módulo Bluetooth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SoftwareSerial.h> | |
| SoftwareSerial softSerial(10, 11); | |
| void setup() { | |
| softSerial.begin(9600); | |
| Serial.begin(9600); | |
| softSerial.println("Setup!"); | |
| Serial.println("Setup!"); | |
| } | |
| void loop() { | |
| String msg = softSerial.readString(); | |
| Serial.println(msg); | |
| delay(10); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SoftwareSerial.h> | |
| SoftwareSerial softSerial(10, 11); | |
| void setup() { | |
| softSerial.begin(9600); | |
| softSerial.println("Setup!"); | |
| } | |
| void loop() { | |
| long randNumber = random(0, 1023); | |
| softSerial.print("Random number: "); | |
| softSerial.println(randNumber); | |
| delay(10); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment