PyPMS
PyPMS copied to clipboard
RPi zero with SDS198 reboots after running command
trafficstars
My pms instance seems to break after wake up SDS198 My sensor works fine as I am able to run it continuously on my laptop but on my RPi zero W it seems to crash when running the command: "pms -m SDS198 -s /dev/serial0 -i 2 -n 10 --debug serial"
pi@raspberrypi:~ $ pms -m SDS198 -s /dev/serial0 -i 2 -n 10 --debug serial
2023-07-06 15:46:23.447 | DEBUG | pms.core.reader:__init__:109 - capture 10 SDS198 obs from /dev/serial0 every 2 secs
2023-07-06 15:46:23.464 | DEBUG | pms.core.reader:open:143 - open /dev/serial0
2023-07-06 15:46:23.470 | DEBUG | pms.core.reader:open:148 - wake SDS198
Is this a known bug? I am able to get a reading sometimes but when I want to try a second time, it breaks....
Hi @clementpeleman
If the RPi zero W reboots after the sensor wakes up, it could be a problem with the power supply not delivering enough current and the voltage dips, causing the reboot. Google tells me that the RPi zero W needs a 1.2A power supply, could you try with a 2A phone charger?
Cheers, Á.