Hello community,
Please could you help. I am trying to receive data from a JN5169 NXP MCU which as a sensor connected to it via the uart RX & TX. I have initially used the code from the ESP8266 with BME280 using Arduino IDE Tutorial.
When i connect the JN5169 up on its own and use its own software to see the data from a terminal window i get the right data. when i connect it up to the NodeMCU 8266 i just get 0 coming through i should get 3071 which states 3071mv.
Any Help is much appreciated
Hi Matthew.
I’ve never used the JN5169 MCU. How does it communicate with the ESP8266? Wirelessly via Zigbee? Or via UART?
I’m not familiar at all with those boards. So, I’m not sure if I’ll be able to help.
If it communicates via UART, I think you just need to read incoming bytes via serial.
Regards,
Sara
Hi Sara.
It can use UART aswell as zigbee. I can get the data from the JN5169 directly into a pc using serial cable and terminal window. The JN5169 also as cts and rts pins aswell. Do I need to have those connected to the ESP8266?
Kind Regards Matthew
Hi again.
I don’t think you need to connect CTS and RTS to the ESP32. TX and RX should be enough.
But as I told you, I’m not familiar with those devices, so I might be wrong.
If you connect the TX and RX you’ll probably be able to get data using the Serial functions.
Regards.
Sara