Hi all,
Trying to get my PMS5003 sensor working using Arduino Uno R4 Wifi connected to D0/D1.
I read on this forum here that the TX/RX are incorrectly labelled on the PM Breakout by Pimoroni, where as typically TX connects to RX, on this little breakout the label meant TX-TX and RX-RX How to connect PMS5003 breakout board w/ Arduino UNO? - #16 by KevinMullen
Is this true? I’m dealing with 5V to 3.3V logic conversion and wondering if I just fried my sensor.
Even with a basic reading of Serial1 on the R4 Wifi, I receive absolutely no data:
void setup() {
Serial.begin(9600); // USB serial (for debugging)
Serial1.begin(9600); // PMS sensor UART
delay(3000);
uint8_t command[] = { 0x42, 0x4D, 0xE1, 0x00, 0x00, 0x01, 0x70 };
Serial1.write(command, sizeof(command));
Serial.println("Waiting for data...");
}
void loop() {
if (Serial1.available()) {
byte b = Serial1.read();
Serial.print("Byte: 0x");
Serial.println(b, HEX);
}
}
Update:
Turns out, yes it is printed what may appear as backwards to some. TX on the PM Breakout in this case connects to TX/RX → RX on your Arduino (or whatever board you’re using).