ArduinoGeneral

PM2.5 laser dust sensor SEN0177

userHead pijmleko 2016-12-29 14:30:12 3435 Views7 Replies
I've connected the sensor via "sensor adapter v2.0" with Arduino but cannot get any meaningful values - only 255 bytes. Tx led on adapter board is not blinking. The only change on RX input I get when I connect 'set' pins on adapter board (when sensor goes stand by), but nowhere close to any meaningful values.
Has anyone had more success with this thing?
2017-01-04 21:50:13 Ok, you can go to your order page to apply for RMA to demand a replacement, our store will deal with your requirement ASAP. :) userHeadPic Wendy.Hu
2017-01-04 13:04:54 Thank You very much!
In the meantime I've got the second sensor and that one worked just fine, so the first one is damaged somewhat (firmware issue probably). I'll get a replacement.
userHeadPic pijmleko
2017-01-03 18:53:48 Hi

The schematic of the adapter please refer to the attachment. :)
userHeadPic Wendy.Hu
2016-12-31 11:07:44 Thanks. I think I'll try another sensor when I have a chance.
BTW, Is it possible to get schematics for "sensor adapter board v2.0" ?
userHeadPic pijmleko
2016-12-31 01:56:02 Hi

Ok, I got it. As you know, the setup is simple. So I guess there are some possible reasons for your situation. Please check the following setting to find the problem:

1. The baud rate in the serial monitor is same with your code;
2. Make sure the code you are using with your leonardo are all Serial1;
3. Make sure your connection is correct
4. Make sure the board and the com port is correct
5. Make sure the controller is good, or if you can try to another controller?

If you did all of above, the problem still exit, maybe the sensor is a broken one, under the warranty, you are entitled to demand a replacement.
And as for the 0-255 bytes you got is normal, the sensor data we need to read should be hex.

let me know if you have any problem. :)
userHeadPic Wendy.Hu
2016-12-30 03:25:08 it is a regular setup, except it is Arduino Leonardo, so I'm reading from Serial1 instead of Serial. Sample program wasn't printing anything, so I tested data from sensor with the code below, and all I got is 255 bytes. Tested with Arduino IDE 1.6/1.8

void setup()
{
Serial1.end();
Serial1.begin(9600); //use serial0
Serial1.setTimeout(1500); //set the Timeout to 1500ms, longer than the data transmission periodic time of the sensor
}

void loop() {
if (Serial1.available() > 0) {
int incomingByte = Serial1.read();
Serial.println(incomingByte, DEC);
}
}
userHeadPic pijmleko
2016-12-29 22:19:27 Hi

It sounds like there are some problems with the module. Would you mind to provide me some pictures about your diagram and the serial monitor screenshots? These would be helpful for me to understand what happened.

Looking forward to your reply. :)
userHeadPic Wendy.Hu