AlexaPi

 Part 1

A powerful feature of the Raspberry Pi is the row of GPIO (general-purpose input/output) pins along the top edge of the board. In this part will setup all the sensors and running  them in Raspbian operating system using python. We will use two raspberry pi to go head with this project I recommend model B+ link. After installing  Respin operating system on both of the raspberry pi. Setup all sensors as following. 

Temperature Sensor (DHT-11):

The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air. Setup DHT11 sensor . plugin sensor to the raspberry pi pin as following image. DHT11 link.Make sure the code saved as flask_temperature.py inside folder called flask. You will be provided with all sources code in part 3. 



Sound Sensor:

Sound sensor is a component that receives sound waves and converts them into electrical signal. plugin sensor to the raspberry pi pin as following image. Sound sensor link. Make sure the code saved as flask_sound.py inside folder called flask. You will be provided with all sources code in part 3. 


 

Water Leak Sensor:

 Water Leak Sensor can monitor moisture to send you alerts that could prevent a leak from becoming a flood. It can also monitor temperature.It requires the SmartThings Hub. plugin sensor to the raspberry pi pin as following image. Water leak sensor link. Make sure the code saved as flask_WaterLeak.py inside folder called flask. You will be provided with all sources code in part 3. 


 

Gas and Smoke Sensors (MQT-2):

Gas Sensor (MQ2) detects combustible gasses and smoke. The Grove - Gas Sensor(MQ2) module is useful for gas leakage detection (in home and industry). It can detect combustible gas and smoke. The output voltage from the Gas sensor increases when the concentration of gas. plugin sensor to the raspberry pi pin as following image. Gas Sensor  link.Make sure the code saved as flask_Gases.py inside folder called flask. You will be provided with all sources code in part 3. 


 

Air Quality (MQT-135): 

Air quality sensor for detecting a wide range of gases, including NH3, NOx, alcohol, benzene, smoke and CO2. Ideal for use in office or factory. MQ135 gas sensor has high sensitivity to Ammonia, Sulfide and Benze steam, also sensitive to smoke and other harmful gases. plugin sensor to the raspberry pi pin as following image. Air quality Sensor  link. Make sure the code saved as flask_AirQ.py inside folder called flask. You will be provided with all sources code in part 3. 



Camera Board:

A camera module is an image sensor integrated with a lens, control electronics, and an interface like CSI, Ethernet or plain raw low-voltage differential signaling. plugin sensor to the raspberry pi as following image. Camera  Sensor  link.


Sensor Overview :

After setup all sensors you will have two raspberry pi model B+. The first raspberry pi should see all this sensors plugin temperature , gas, air quality and water leak sensors. Second raspberry pi you should see sound and camera sensors we will start using second raspberry pi in part 3 . as following images.