ArduinoGeneral

not getting readings from PM2.5 laser dust sensor

userHead Account cancelled 2017-09-05 00:00:35 4917 Views7 Replies
Hi, I have 4 units of the PM2.5 laser dust sensor (https://www.dfrobot.com/wiki/index.php/ ... KU:SEN0177).

I tried running the sample code on an Arduino Uno, initially I got this error: avrdude: stk500_recv(): programmer is not responding

Managed to get the code to compile and upload after I went to the Arduino IDE settings and checked the following boxes:
Show verbose output during: 1) compilation, and 2) upload.

But after that, the output in the serial monitor shows zero for all three readings (PM1.0, PM2.5, and PM10).

I also tried modifying the code to use SoftwareSerial, so that I could try connecting the dust sensor adapter's RX and TX pins to digital pins on the Arduino. However, I got the same output with that code, too.

Here's my modified code: https://www.dropbox.com/s/5s2ejvlkhulun ... r.ino?dl=0

I'm getting the same output from all four dust sensors, so it seems like this might not be a hardware issue. (I hope it isn't a hardware issue!)

Any ideas on how I can troubleshoot this issue?
2020-01-29 03:51:56 Maybe using another board? userHeadPic michael758
2020-01-29 01:01:01 maybe any new suggestions? https://gayfucktube.name/en/category/42 ... popular/1/ :o:o:o userHeadPic diatrabmaufa
2020-01-28 18:40:54 I have a big problem too, tried everything...
With a Duemilanove, using both hardware and software Serial.
What is the solution please??
userHeadPic michael758
2019-12-19 20:06:03 Seriously, could someone upload the code, they sent before. I'm in the same situation...also, I think it'd be better without attaching the file, it tends to dessapear userHeadPic sebasbuil
2019-05-07 09:24:19 hello is that possible to send the code again please ? It is impossible to see it now .

thanks !
userHeadPic theo.smadja
2017-09-05 02:06:33 Hi,
The reason you got all zeros is the software serial, please use the attached code
userHeadPic robert.chen