Hello,
I’d like to have your advice.
When an Arduino sends some values(for example, CDs sensor values)via Bluetooth hm-10 module, I want to see the values on the app screen(made an app inventor 2).
But I don’t know how to make some blocks on app inventors.
I could find some articles using Bluetooth hc-06 modules, but I hard to find the articles using Bluetooth hm-10 module.
Fortunately, I can send some values to an Arduino and control it(for example, control LED on and off using app).
I’d like to show you as below about Arduino source code, App inventor designer and blocks.
- Arduino source code
#include <SoftwareSerial.h>
SoftwareSerial BT(2, 3);
void setup() {
Serial.begin(9600);
BT.begin(9600);
}
void loop() {
int a = analogRead(A0);
Serial.println(a);
BT.print(a);
delay(1000);
}
- App inventor2 designer and block screen