Humidity sensor SEN0438
Hi,
The Humidity sensor SEN0438 is not transmitting any data to microcontroller Rx pin. The sensor connection is like this
red - +12V White - B of RS485 to TTL module
Black - Gnd Yellow - A of RS485 to TTL module
RS485 to TTL module connection
RO - RX and DI toTX RE and DE ns joined and set to a GPIO pin
The Code is here
RE and DE pin high;
USART_Transmit(0x01);
USART_Transmit(0x03);
USART_Transmit(0x00);
USART_Transmit(0x00);
USART_Transmit(0x00);
USART_Transmit(0x02);
USART_Transmit(0xC4);
USART_Transmit(0x0B);
_delay_ms(1);
RE and DE pin high;
in =USART_Receive();
in =USART_Receive();
in =USART_Receive();
in =USART_Receive();
in =USART_Receive();
in =USART_Receive();
in =USART_Receive();
in =USART_Receive();
No data is received .
I do not think it is for underwater use. If it was fit for underwater, the manuals and descriptions would have said so.
lia.ifatAre you using this github?
https://github.com/May-DFRobot/DFRobot/blob/master/SEN0438%20-%20EN.pdf
lia.ifatHi
I want to use it to measure water temperature, but I'm wondering if I can use it by putting it in water.
Thank you,
regards
Michael.JeongHi,
I am having issues too with the communication.
Can someone please confirm whether the following communication specs are correct?
- 9600 baud rate- address: depends on the pulled up pins- 8N1 for data size, parity and stop bits
Thank you,
regards
Francesco.Stefanni
The slave address is 1 like in figure 1 . I am using atmega32 microcontroller for reading humidity from the sensor
user002Hello,
What type of controller are you using? Also can you confirm that the dial address is the same as in the code?
Yeez_B