-
Pico is connected by USB to my PC, and the SDS011 (5V needed) sensor is powered by an Breadboard Power Supply Module 3.3V 5V.
I do not think I can connect the Pico GND to the power supply module.That (not connecting the two GNDs) is possibly the source of the "random" characters you see.
I guess you can get (almost) 5V from the Pico directly, but I don't have one, and wouldn't want to damage you stuff. So maybe someone with a Pico, or @Gordon can confirm, whether you can power the SDS11 from the **** pin :)
first, thank you all for your post!
@Robin
"VERSION": "2v03",
"GIT_COMMIT": "e77d74f6",
"BOARD": "PICO_R1_3",
"FLASH": 393216, "RAM": 98304,
"SERIAL": "3f006300-04513432-33343134",
"CONSOLE": "USB",
"MODULES": "Flash,Storage,heatshrink,fs,net,dgram,tls,http,NetworkJS,WIZnet,tv,crypto,neopixel",
"EXPTR": 536871212
Pico is connected by USB to my PC, and the SDS011 (5V needed) sensor is powered by an Breadboard Power Supply Module 3.3V 5V.
I do not think I can connect the Pico GND to the power supply module.
There may be another solution, I have a power boost module 3.3V to 5V. I could connect Pico pin 3.3V & Gnd output to the power boost module to power the SDS011, but would not I risk wanting too much power from the Pico and damaging it?
@AkosLukacs
Unfortunatly, I need more time and skill in the protocol Serie to adapt your code! but I will do some test on my project reading your scripts.
@maze1980
below, sample output of
well, It's maybe a correct output, comparing the output serial from the Node.js script when the sds011 module is running, I've got
converting to decimal is
Reading the SDS011 doc, I should always get aa c0 (170 192 ) starting byte ... and ending with ab (171).
But, from my new decimal WebIDE output reading,
there not clean [170 192 data data data data data data data 171] repetitive sequence ?
I have to go to work now (already late)
thank's for your precious time folks!