Hello,
I'm new to the Arduino world!
I'm trying to create a monitoring system! Among which I want to capture the value of radon in the air! But I have a problem with this sensor. I have already opened another topic: Send the asci command to get the sensor value - #25 by qatalin.
I still have this problem. I have to send the character 'r' from the keyboard to the sensor through UART communication and the sensor responds with the radon value. This process happens once an hour, but when the character r is sent (at any time) the sensor responds with the last recorded radon value.
I connected the sensor to a Raspberry pi4 using tx, rx pin and through serial PUTTY I was able to communicate with the sensor (it works perfectly).
I want to communicate through an ESP8266, but no matter what, the sensor doesn't answer ABSOLUTELY anything.
Thanks to those who guided me in the other discussion!
I attach the code and datasheet of the sensor below!
Thanks a lot!
#include<SoftwareSerial.h>
SoftwareSerial SUART(2, 3); //SRX = DPIN-2, STX = 3
void setup()
{
Serial.begin(9600);
SUART.begin(9600);
Serial.println("Process start");
}
void loop()
{
SUART.write('r'); //asking for data ?
delay(4000);
while(SUART.available()== 0)
{
String value_sensor = SUART.readString();
Serial.println( "Value of sensor is:");
Serial.print(value_sensor);
delay(3000);
}
}
RADON SS 2022.pdf (713.4 KB)
RADON SENSOR QA.pdf (194.2 KB)
RADON SS SENSOR APPLICATION NOTES_INTERFACING.pdf (618.9 KB)
