The sensor station is a modified version of the senseBox:home with an additional SDS011 sensor. It sends measurement data over a serial connection to the RPi where it is displayed on a compatible 7" screen.
Here is a prewiev of the pyqtgraph based dashboard for visualizing the sensor data:
Download and install an OS for the RPi and install it (we use Raspbian in this example). After that follow the intallation instructions on the pyqtgraph homepage.
Copy the python script from this repository to the pi home folder and make it executable:
sudo chmod +x senseBox-dashboard.py
To enable autostart of the script edit ~/.config/lxsession/LXDE-pi/autostart
and add the following line to the end of the file:
@sudo /usr/bin/python /home/pi/senseBox-dashboard.py
update the /etc/lightdm/lightdm.conf
file and add the follwing command on top of the [SeatDefaults]
section:
[SeatDefaults]
xserver-command=X -s 0 -dpms
sudo sh -c "echo n > /sys/class/backlight/rpi_backlight/brightness"
where n ∈ [0,...,255]. Do not set to n < 100!
If you want to change orientation of the display edit /boot/config.txt
and add this command to the beginning of the file:
lcd_rotate=2
Connect the SDS011 dust particle sensor to the senseBox:home and use the Arduino IDE with some additional libraries to upload the Arduino sketch from this repository to the sensor station. Then connect it to the RPi via USB cable.