Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPi zero with SDS198 reboots after running command #39

Open
clementpeleman opened this issue Jul 6, 2023 · 1 comment
Open

RPi zero with SDS198 reboots after running command #39

clementpeleman opened this issue Jul 6, 2023 · 1 comment
Labels
question Further information is requested

Comments

@clementpeleman
Copy link

clementpeleman commented Jul 6, 2023

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....

@avaldebe avaldebe added the question Further information is requested label Jul 7, 2023
@avaldebe
Copy link
Owner

avaldebe commented Jul 7, 2023

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,
Á.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants