Skip navigation

<< Previous

Table of contents

I am still finding Wind Shield wiper motor from near by scrap yard for automatic window opening and closing.

I have managed for exhaust fan from local scrapyard (230V 60Watt) and I will simply use relay switch for control this fan.

 

Still I am waiting for basic kits for this challenge, I have compiled and sent spreadsheet of components for my design to Element14.

 

Here is this spread sheet...

Line No.Order CodeQtyDescriptionMftr. & Part No.
118524943SOLAR PANEL, 0.8W, 4V, NO FRAMEMULTICOMP - MC-SP0.8-NF-GCS
223135522LI-PO BATTERY BOOSTERPACK, FOR LAUNCHPADELEMENT14 - BOOSTXL-BATTPACK
312967771TIP, D00663, 0.5MMDURATOOL - D00666
412967792TIP, D00661, D00662, 3MM, CHISELDURATOOL - D00668
5236475614.3INCH LCD DISPLAY CAPE, FOR BEAGLEBONEELEMENT14 - BB VIEW_43
624222281BEAGLEBONE BLACK REV C, CORTEX A8ELEMENT14 - BBONE-BLACK-4G
718914282SENSOR, HUMIDITY, 20-90%RH, +/-5%MULTICOMP - HCZ-D5-A
823569141ATMEGA32U4, YUN WIFI, EVALUATION BOARDARDUINO - A000008

 

 

This is all about this week... And I know that my the progress is too slow... and needs to be boosted.....

<< Previous

Table of contents

Next >>

In my previous post In The Air [IoT_Healthy] #Post 3: BBB/Pi to Airvantage via MQTT using Paho python client ,I have discussed my work for Sending Temperature and Humidity data to Airvantage cloud using MQTT Paho python client running on RPi.

 

Currently I am working on Receiving data/task from Airvantage cloud and do some control at RPi.

 

This week I am on trip for training... So not able to post current status of my work... Also I am still waiting for my components mainly BBB and CC3200.

 

Our Indian competitor friends starts receiving their kits so I am hoping that my kits will be on my doorstep soon..

 

So In next week I am hoping for some fruitful results...

Table of contents

<< Previous

Next >>


Introduction :

 

In this post I will provide Step by step guide for communicating your BBB/Pi with Airvantage over MQTT.

I have used Paho - Open Source messaging for M2M , this guide to install Paho Python MQTT Client on My Raspberry Pi B+. As have not received my BBB so far. I am very much sure that the same steps will also work with BBB.

 

DIY Guide :

 

Step1 : Setup System with MQTT Support on Airvantage M2M cloud..

 

I have used https://doc.airvantage.net/display/USERGUIDE/Using+MQTT+with+AirVantage this guide to setup System with MQTT Support on Airvantage Cloud.

 

Step2 : Test the system using MQTT Client..

I have used MQTTLens Google Chrome extension as easy to use MQTT Client for Test my system on Airvantage cloud from https://chrome.google.com/webstore/detail/mqttlens/hemojaaeigabkbcookmlgmdigohjobjm

 

here is screenshot of connection setup to Airvantage system on MQTTLens... Here username is system serial no and Password is system password...

Untitled1.png

Untitled2.png

First subscribe to <username>/messages/json topic then send json string with data....

Untitled3.png

 

here is screen shot of my System working on Airvantage cloud..

Untitled.png

once airvabtage start responding to your MQTT pulish message then move to next step...

 

Step3 : install paho MQTT Python client on your Pi... from this guide http://www.eclipse.org/paho/clients/python/

once installed creat new python file with your system credential...

 

import paho.mqtt.client as paho




host="na.airvantage.net"
port=1883


def on_connect(pahoClient, obj, rc):
# Once connected, publish message
        print "Connected Code = %d"%(rc)
        client.publish("<username>/messages/json", "{\"machine.temperature\": 23.2, \"machine.humidity\": 70}", 0)




def on_log(pahoClient, obj, level, string):
        print string


def on_publish(pahoClient, packet, mid):
# Once published, disconnect
        print "Published"
        pahoClient.disconnect()


def on_disconnect(pahoClient, obj, rc):
        print "Disconnected"


# Create a client instance
client=paho.Client()


# Register callbacks
client.on_connect = on_connect
client.on_log = on_log
client.on_publish = on_publish
client.on_disconnnect = on_disconnect


#Set userid and password
client.username_pw_set(<userID>, <password>)


#connect
x = client.connect(host, port, 60)


client.loop_forever()



 

name this file say airvantage.py or any thing of ur choice..run this file by command

python airvantage.py

 

U will see update on Airvantage cloud with your latest data....

 

In next post I will explore Airvantage API and creat real time python appilication on RaspberryPi with external inputs ... and will show this data on Airvantage cloud...

Table of contents

<< Previous

Next >>

 

As I am waiting for component/kit for this challenge yet, I will be comparing forget_me_not and in_the_air design challenges here in this post for point out difference and similarity between these two challenge...

 

in forget me not challenge competitors need to design home automation system using Raspberry Pi and Enocean energy harvesting wireless sensor modules.

here, OpenHAB application running on RaspberryPi work as Home automation server to host Home Automation control app webpage on local network or on internet.

So, yes there is critical need of powerful processor like Raspberry Pi to run OpenHAB ( in background java and apache) for hosting application on web or local network. OpenHAB is hosting web application and data is not sent on cloud to process further, all data processing done at OpenHAB ultimately at Raspberry Pi.

 

In the air challenge is all different at software side... Here Airvantage cloud will be used to upload sensor data on cloud (Just like plotly, xively...) and from cloud data can be shown on application or web page with api provided by Airvantage.

So here sensor are just sensor nodes sending data on cloud and as Airvantage uses very light weight protocol (like MQTT) for M2M application, I think there is no need for BBB as main processor, if CC3200 can access Airvantage cloud just like cc3200 does with Xively. Using Airvantage bidirection data transfer, it is also possible so control as well as sensing both done using CC3200.

 

CC3200 have enough resources (256KB RAM both code and data) for interface sensors and accuators for control at same time communicating with Airvantage cloud.

 

Conclusion:

 

For light application of sensing from few sensor and controling few accuator CC3200 is enough with all processing burden on Airvantage Cloud..or Application running on Client.

 

For heavy application which include scripting, java, apache all together BBB will be helpful..

 

This is my initial thought, I may be wrong.... so your suggestion/comments are welcome...

Table of Contents

Next >>

First of all I would like to thank all organizers of "In The air Design Challenge" and Element14 for showing potential and selecting my application...


in this first post I am sharing my application for this design challenge, Your valuable feedback and suggestions are welcome...


“Breath Easily for Healthier Living with IoT”


Introduction:

My application for “In The Air Design Challenge” include designing of  IoT based system using Beaglebone Black and CC3200 Launchpad as main processing part for sensing and controlling Air quality and water quality for Breath Easily and Healthier Living by means of controlling Air-condition, Ventilators and Exhaust Fan using real time Air Quality data of indoor and outdoor environment. The system also monitors TDS level of drinking water in home.

 

All the real time data will be available online from Airvantage M2M cloud by mihini running on Beaglebone black.

 

The entire control part is integrated with OpenHAB framework running on Beaglebone black, so automatic as well as manual control of Air-condition, Exhaust Fan and Ventilators can be done easily from openHAB application or Airvantage application running on SmartPhone/PC hence only one android application is capable to handle all home automation need.

PCB of different modules of this system will be specially designed using Cad Soft Pro and manufactured from Wurth Elektronik’s PCB service.

 

 

Description:

This system will be design around two wireless Air Quality sensing gateway, Indoor unit and Outdoor unit. Using difference in Air Quality sensor data of indoor and outdoor unit decision of control Air-condition, ventilators and Exhaust Fan will be taken. Top level blockdiagram of my application is given below,

Inthe Air.png


Indoor unit:

Indoor unit mainly consist of Beaglebone Black with Air and Water quality sensors. It also control Ventilators and Air-condition automatically. Important features of indoor unit are,

     1. It Senses indoor Air Quality using CO, CO2, NO2, VOC (Volatile Organic Compounds), temperature and Humidity Sensor and water Quality using TDS sensor. Sensors are selected by considering low power requirement and accuracy of measurement, so system works with accurate quantitative data rather than just qualitative data and it will be low power too.

     2. Work as Gateway for Airvantage M2M cloud and OpenHAB for access real time data and control the entire system online.

     3. Control of Ventilators, Exhaust fan and Air-condition (Cooler/Heater/Dryer) to control Humidity and Air Quality inside home. Also give audio visual alarm when Air Quality can’t be improved after all necessary controls at their extreme position.

     4. Indoor unit is powered from utility with backup battery.

     5. MSP430FR5969 will be used with CC2500 transceiver for control purpose at Ventilators, Exhaust fan and Air-condition.

     6. To control Aircondition I will need reverse engineering of my Airconditions remote interface to make it work with MSP430FR5969.

Blockdiagram of indoor unit modules as follows,

indoor.png

indoor 2.png

 

Indoor 3.png

 

Outdoor Unit:

Outdoor unit will be designed around CC3200 Launchpad with Air Quality Sensors. Main features of outdoor unit are,

     1. It Senses outdoor Air Quality using CO, CO2, NO2, VOC, temperature and Humidity and Sensors.

     2. Here also Sensors are selected by considering low power requirement and accuracy of measurement, so system works with accurate quantitative data rather than just qualitative data and it will be low power too.

     3. Outdoor unit will be powered by solar panel of 12V/2W.

     4. 6 cells (7.2V/800mAH) NiCd battery used for backup power.

     5. Solar battery charger is designed around TI Solar charger portfolio and Wurth Electronik’s Low profile high current SMD inductors.

     6. It is connected to indoor unit with Wi-Fi for sensor data transfer.

     7. Because this unit works on battery/solar panel, CC3200 programming is done with efficient use of Low power modes.

Detail blockdiagram of outdoor unit is as follows...

outdoor.png

Working of Entire System:

Beaglebone black and CC3200 in connected wireless to WLAN router.

WLAN router provides interface to the AirVantage M2M cloud via internet and also provide control facility via smartphone application.

Indoor Sensors and outdoor sensors data collected at Beaglebone. The difference in data is used to control window slider and/or AC or exchaust fan to maintain air quality inside home.

By all the controlling means if system is not able to maintain airquality inside home under threshold condition, then alarm triggers automatically and it will also shown via twitter on smartphone.

All the sensor data are available on AirVantage M2M cloud to easily access via smartphone or PC application.

 

Application of Hardware/software provided in this RoadTest for my application:

Hardware:

     1. Beaglebone Black : As Gateway and interfacing Air/Water quality sensors indoor

     2. CC3200 LaunchPad: As wireless Sensor node for outdoor Air quality sensor

     3. MSP430FR5969 Launchpad: As indoor control unit for controlling unit for indoor Ventilators, Exhaust fan and Air-condition .

     4. TI’s BQ25504: As solar charger and battery management for outdoor unit.

     5. TI’s LMP91000: As analog front end for low power gas sensing.

     6. TI’s HDC1000: As temperature and humidity sensor module for indoor and outdoor unit. TI’s TMP112  temperature sensor for indoor and outdoor unit.

     7. Wurth Elektronik Power inductor kits: For design solar charger and battery management.

     8. Wurth passive components : In final stage design standalone indoor and outdoor unit, passive components, LED, connector and switches will be  used.

     9. Wurth Elektronik’s PCB Service: Manufacturing standalone PCB for indoor and outdoor unit.

     10. TI's CC2500 : Indoor wireless sensor interfacing and control.

 

Software:

     1. Cad Soft Pro: For design PCB of standalone indoor and outdoor unit.

     2. Eclipse: For implement sensor gateway on Beaglebone black to provide real time data and control facilities on Sierra Wireless AirVantage M2M Cloud Platform with mihini. Eclipse will be also used for design Android application for realtime data monitor and control.

 

Extra $500 budget utilization:

     1. 12V/2Watt Solar Panel: for power supply of Outdoor unit. (1Pcs Approx-$15)

     2. 7.2V (6cell 800 mAH NiCd pack): for Backup power supply of indoor as well as outdoor unit.(2Pack Approx-$30)

     3. TDS Probe : for measuring TDS level in drinking water. (1Pcs. Approx-$25)

     4. Air Quality Sensors: low power CO2, NO2, CO, VOC sensor from http://www.ccmoss.com/ or http://www.figarosensor.com/ (2Pcs. Each Approx-$200)

     5. Car power window motor: for linear control of ventilators/window. I will get these motors easily from car scraps vendor in local market. (3Pcs. Approx 60$)

 

 

Finally, My experience with "Forget Me Not Design Challenge" and my curiosity to design IoT based application which helps in improving environment awareness and contribute to society for healthier living will be playing key role for this RoadTest challenge. Also it would be great opportunity for me to use Beaglebone Black,CC3200 and Sierra AirVantage M2M cloud Platform for IoT application.