Skip to content

sensebox/Innotruck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

senseBox dashboard for Innotruck project

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:

senseBox dashboard

Hardware components

Installation instructions

Prepare RPi

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.

Python script

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

Disable screen saver

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

Adjust brightness of screen

sudo sh -c "echo n > /sys/class/backlight/rpi_backlight/brightness"

where n ∈ [0,...,255]. Do not set to n < 100!

Flip screen

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

Prepare the senseBox

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.

About

Python dashboard for Innotruck project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages