I'm new to the arduino world!
I am facing a problem. I am trying to create a system based on a radon sensor.
The sensor communicates with the arduino UNO via UART TTL 3.3V, so I connected the RX, TX pins, I used a level converter between the sensor and the arduino (the Arduino UNO has a logical level of 5V).
My problem is that in order to receive a value from sensor, I have to send the character "r" to him and wait for a response. Until now, I have worked with sensors, so to speak, commercially, in which codes are found everywhere.
I am attaching the datasheet of the sensor
In don't have acces right now to the computer, but i didn't do very much. I tried to use serial.write to send 'r' char and serial.print to read the value if serial is available.
As i said I am now and I really need to solve this because is for my degree project!
After powering up for the first time, the sensor requires 1 hour time for warm-up; so, the first valid data is available after 1 hour. After that the fresh data is available in every 10 minute time. The following excerpt is from the sensor data sheet.
Hello. Thanks for help!
the circuit diagram is as in the attached figure, but instead of what is connected there, I have my sensor. The connection is as follows: I connected the Tx wire to the tx pin of the sensor, Rx to the Rx pin of the sensor, ground to ground, 3.3V to pin 3.3 . V In addition, from a separate 5V power supply I connected the Vload pin of the sensor.
I know this, but I don't know what code to write to get the values from the sensor and know that it works.
Bloc citat
After powering up for the first time, the sensor requires 1 hour time for warm-up; so, the first valid data is available after 1 hour. After that the fresh data is available in every 10 minute time. The following excerpt is from the sensor data sheet.
I would suggest to make connection among UNO, level shifter, and sensor as per Fig-1; where, the UNO has used Software UART Port (SUART) as the Hardware UART Port (USRT) remains engaged with PC/IDE/SM. At the moment do not connect any other device with the system except the sensor. Once the sensor is found to be working, then connect other devices one-by-one.
In some sensor that need an ASCII command to respond, the best way that i use is change the Serial.print by the Serial.write and the value to send always in HEX example Serial.write(0x48).
later, wait the response ande reads the value sending of the sensor. The method of reading using char or string is your choince