This sensor framework is designed to drive 8 active or/and passive sensors and log it's data into remote Android application. It also have option to activate external device(s) based on specified threshold of sensor data.
This sensor controller is mainly build around Raspberry Pi Model 3 B+ and PIC16F877A MCU. PIC16F877A MCU is used to interface/select sensors and it's built-in 10bit ADC is used to capture the analog signals from sensors.
During the prototype stage following sensors are tested with this system:
- LM35 precision temperature sensor
- MQ7 Carbon Monoxide gas sensor
- Electret Microphone
- NSL-19M51 LDR
- HC-SR501 PIR sensor
- A3144 Hall effect sensor
PIC16F877A firmware is developed using MPLAB-XC 8 version 1.48. Raspberry Pi used in this system is loaded with Raspbian Stretch and it's server application is developed using Node.js.
To compile the Android application use Delphi with Embarcadero RAD Studio 10.1 (Berlin) IDE.