COMPONENTS USED:
· Raspberry Pi 3B
· Arduino UNO
· Adafruit DHT11 Temperature andhumidity sensor
· MQ 135 Hazardous gas sensor
· Heart Pulse Sensor
· Breadboard, LEDs, Jumper wires, etc.
FUNCTION OF MAJOR COMPONENTS:
Raspberry Pi: The board acts likea complete webserver, from which a webpage is launched using the Flaskframework for python. It also has a database to store data collected fromsensors, on which it runs queries to extract relevant/selected data. It alsoplots the data graphically using the python matplotlib library.
Arduino UNO: This board performsthe function of a parallel output ADC, for interfacing analog sensors like thePulse Sensor. It provides an 9-bit output, through the I/O pins. These outputsare read by the Raspberry Pi.
DHT11: Gives readings oftemperature and Humidity
MQ-135: Detects Hazardous gasessuch as CO2, alcohol fumes, etc. Gives an alert if a threshold is crossed.
Heart Pulse Sensor: Measures heartpulse by using an LED which illuminates capillaries, and an adjacent sensor (akind of LDR), measures the variation in the light as blood passes throughcapillaries. It gives an analog output, which is converted to digital using theArduino UNO.
METHODOLOGY AND WORKING OF THE PROJECT
The data base onthe Raspberry PI is created using SQLite, which is a database engine. Commandline instructions are used to run queries on these databases. Instead ofmanually entering instructions, we wrote a python script, or ‘auto logger’, which automatically executes the command line instructions of this databaseengine. We then used Flask framework for python to launch a webserver from theboard. Using this we launched a man webpage, along with three subpages, whichhad the plots of Temperature, Humidity and Heart Pulse. The webpage allows theuser to enter the number of samples i.e. time period of the plot, so that thegraph for that specific time period is made visible. This is very useful if thedoctor/professional/researcher intends to do an analysis and make areport. The main page contains real timesensor data and the air quality status. For collecting data from each of thesensors, certain libraries are imported. As the raspberry PI does not have anin-built ADC, we use an Arduino UNO to generate digital signals, after readingfrom the pulse sensor. The final output is in the form of static HTML pages. Inorder to integrate them, we have used a web app platform called paranoid-AAC.For programming the raspberry PI, we used it in ‘headless mode’, in which theprogrammer has to connect to the RPI using SSH, this enables easy updating andreprogramming without any physical connection to the board.
Comments