HM-10. BLE. Arduino UNO. Notify. Bluetooth. AT. iBeacon. Arrhythmia

4.- Arrhythmia. Demo.

p110_UNO_HM10_corazon.aia (186.2 KB)

Arrhythmia is a problem with the rate or rhythm of your heartbeat. It means that your heart beats with a very irregular pattern.

This Arduino code:

// http://kio4.com/arduino/161_HM10_BLE.htm

#include <SoftwareSerial.h>
// El TXD del módulo al pin 2 (RX) del Arduino.
// El RXD del módulo al pin 3 (TX) del Arduino.
SoftwareSerial HM10(2, 3);

void setup(){
  Serial.begin(9600);
  HM10.begin(9600);
}

void loop(){
      String nivel = (String) random(90,100);
      int ritmo = random(400,1600);
      delay(ritmo);
      String mensaje = nivel + "," + (String) ritmo;
      Serial.println(mensaje);
      HM10.print(mensaje.c_str());
}

create two random numbers, level (height) and rhythm, this is a variable delay.
delay(ritmo);

  • We use RegisterForStrings (Notify).
2 Likes