How to set up a PM2.5 sensor connected via usb cable?

nerves
sensors
libraries
nerves-tips

#1

Hi,

I’m just got my raspberry pi b+ up and running and I want to set up a PM2.5(sdo11) sensor with Nerves, which connects to the board via a usb cable.
I’m pretty much a complete noob when it comes to electronics and nerves, so I went to the Nerves docs. But I couldn’t make much sense of it :stuck_out_tongue:

Any advice, resources links would be really appreciated.


#2

If it connects via USB, it may present the data over a virtual serial (UART) interface. If the device you have supports Linux, maybe try connecting it to a Raspberry Pi running Raspbian first, to confirm that it’s working and you can figure out how to use the provided software, etc. Then, you can try the same with Nerves and see where you get stuck.


#3

So I tried that but I don’t think it appeared in the list when I ran the desmg command. (I have the latest rasbian installed)

Also is there a way to see if the sensor is sending back data via the command line?

Also do I need any libraries to be able to read sensor data with nerves?

Sorry for bombarding you with questions.

Thanks in advance :slight_smile: