![]() ![]() However, I am very much a beginner, and don't know enough to tell whether this is a problem with the device, the library or something I have done. In all cases, it simply looks as though the PMS5003 sensor is not transmitting anything - indeed no fans are switching on and there is no sign of life at all from the device. If your project requires simultaneous data flows, see Paul Stoffregen's AltSoftSerial library. If using multiple software serial ports, only one can receive data at a time. I have tried connecting to different serial pins, including following the ESP32 software serial example provided by the PMSerial library. SoftwareSerial library has the following known limitations: It cannot transmit and receive data at the same time. Why would the device be sending the wrong start code, and what steps can I take to debug this? When the PMS5003 is properly connected to the ESP32, status always returns "Wrong message start". Only the PMS5003 is connected to the ESP32, and using the following the code. In the Arduino IDE when the CH340 is connected you will see a COM Port in the Tools > Serial Port menu, the COM number for your device may vary depending on. You can just use one of them: Serial0: RX0 on GPIO3, TX0 on GPIO1 Serial1: RX1 on GPIO9, TX1 on GPIO10 (+CTS1 and RTS1) Serial2: RX2 on GPIO16, TX2 on GPIO17 (+CTS2 and RTS2) You don't need the Software Serial Port, since the ESP32 can unconfigurate internally the Serial port pin to other pins. These drivers are static examples detailed in Application Note 197: The Serial. 9 The ESP32 has 3 different Serial Ports (UART). In trying to debug this problem, I have a very minimal setup. These devices can also interface to a host using the direct access driver. I am unable to get any reading from a PMS5003 connected to an ESP32. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |