ostaquet / Arduino-MQ131-driver

Arduino driver for gas sensor MQ131 (Ozone / O3)
MIT License
64 stars 19 forks source link

Bluetooth hc-05 #60

Closed EmbeddyE closed 1 month ago

EmbeddyE commented 2 months ago

So everything it's fine when I'm using the Serial monitor on the arduino IDE, but when it comes to using bluetooth to show values into an android bluetooth receiver, there's no value output on my android terminal( I'm using Ardutooth). I'm using the following code: `#include

include

SoftwareSerial B(10, 11); // RX, TX

void setup() { Serial.begin(9600); B.begin(9600); // Bluetooth communication MQ131.begin(2, A0, LOW_CONCENTRATION, 1000000);
MQ131.calibrate(); }

void loop() { MQ131.sample(); B.print(MQ131.getO3(UG_M3)); B.print(" ug/m3"); B.print(";"); delay(20); } `

ostaquet commented 1 month ago

As the library is working fine without the Bluetooth communication, it is probably linked to the Bluetooth communication and not the library.