Hi,
Need some help with running the APM10 air quality sensor on Arduino. Couldn't find any library support for the same on the web. Would be great if someone could help.
Attached the sensor datasheet for reference.
0301010029-AS-RD-DR-21168-APM10激光颗粒物传感器英文版-A0.pdf (1.5 MB)
Nice adding the data sheet is a big help. From what I can see it is a standard I2C interface and I believe you will have to add pull up resistors. Use the standard wire library. Send it the "Start measurement: 0x10 0x00 0x10 0x05 0x00 0xF6" command 7 bytes long. Then read the data all of the bytes. I have never used this so that is just a SWAG, Not sure if you have to send a stop and start for the next reading.
They also have code in the data sheet to calculate the CRC. Here is a snippet:
unsigned char bit, byte, crc=0xFF;
for(byte=0; byte<Num; byte++)
They have declared byte as a variable name, though in Arduino it is a data type. Best to change that variable to a different name
Dear Sushil_Paul,
Did you reach to make an Arduino code for APM10 ?
Yes Please, can you help out with a code? I am stuck for days now. I am no coder or expert, so a complete code will help out a lot. plzz