In this post I am going to detail how to create a real time data pipeline for processing sensor data. First we will connect the sensor and create the code to read it. I will use the DHT22 temperature and humidity sensor on the Raspberry Pi Zero WH. Then we’ll setup the real time data flow with Python and RabbitMQ. Finally we will use Flask and D3.js to display the data in a live dashboard in a browser.
The ZeroCam NoIR is a tiny camera for the Raspberry Pi Zero that does not have an infrared filter. This kind of camera is more suitable for recording in low light compared to a regular camera. Because of that, it is ideal for recording wildlife in the night time. Or as part of a home security system. Furthermore, it can record even in complete darkness, with the help of an infrared lamp.
Connect the HC-SR04 to Orange Pi
The HC-SR04 is a cheap and easy to use sensor, used to measure distance with ultrasound. It can be used in many projects where you trigger an action based on an object or person entering an area, like an “alarm”, as I showed in my previous post. Also, you often see this sensor as part of more interesting projects such as robots, like this one.