This project is about using Intel Edison as a core of the AirQuality Sensor Station.
Edison will use BlueTooth Low Energy to send all sensor data to any app. Your smart phone can subscribe to it and read all services characteristics .
- Intel Edison
- Alcohol Gas Sensor - MQ3
- Methane Gas Sensor -MQ4
- LPG Gas Sensor - MQ6
- Carbon Monoxide Sensor - MQ7
- Temperature and Humidity Sensor - Spark Fun HTU21D
The project was developed using NodeJS as a server and Noble and Bleno as a BLE central module.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Wiring UP All Sensors
MQ4 and MQ6 have the same wiring instructions. MQ3 and MQ7 are different.
Step 2: Setup Edison
- Open your terminal and log into your Edison
- screen /dev/xx.usbserial-XXXXXXXX 115200 –L
- Configure Your Edison and WiFi
- configure_edison --setup
- configure_edison --wifi
- Modify Edison Base-feeds.conf to make Edison's BlueTooth Work
- rfkill unblock bluetooth and systemctl disable bluetooth
- vi /etc/opkg/base-feeds.conf (open and insert only following lines)
src/gz all http://repo.opkg.net/edison/repo/all
src/gz edison http://repo.opkg.net/edison/repo/edison
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32
- Run: opkg update and opkg install bluez5-dev
- Run: npm install -g async, npm install noble and npm install bleno
- Finish with: rfkill unblock bluetooth and hciconfig hci0 up
Step 3: Clone NPM Repository
Clone my AirQuality Sensor GitHub Repository and Upload the project to Edison with Intel XDK
Step 4: Open Any Bluetooth Low Energy App
Open any Bluetooth Low Energy App and connect to you AirQuality Sensor Station (I am using LightBlue App for iPhone).
You will see the station service and all sensor characteristics. You can subscribe to receive notification for any sensor.