Envolysis

by Akin Yildiz in Circuits > Arduino

29274 Views, 119 Favorites, 0 Comments

Envolysis

20141208_104027.jpg
20141208_104322.jpg
20141208_104246.jpg

hello everybody,

please suppport & share our mission; igg.me/at/smartplants

envloysis is an online updating environment analysis "bug". this tiny mobile device connects to the WiFi network and uploads sensor data to the cloud and graphs your data, also tweets you when something is wrong. it is also solder free to build. no prior electrical/programming experience is required. cost is ~17$

.

it can be built with raw analog sensors such as, LDR photocell (light sensor), NTC thermisor (temperature), soil probes (plant water level), humidity sensor, flame module etc. basically anything that you can connect to a microcontroller. you can create almost anything wifi using these simple components; a door alarm, a sun tracker, thermometer, possibilities are endless.

.

I work at a restaurant. We have 6 fridges and 1 large freezer. the owner of the business asked me if it was possible to record/upload sensor data. this is where the idea came about. it is still in progress and open for upgrades (especially battery), but we can now collect data that we've never seen before.

.

envolysis can be used as a simple cost-analysis device for restaurants and other business alike, or for anyone who wishes to monitor their home wirelessly. - i am also developing this system for plant monitoring.

Parts

01.jpg
20141028_093555.jpg
20141208_103958.jpg

wifi module ( also need a UART to set up the wifi module for first time use )

microcontroller

breadboard

battery clip

sensors (water, light, temperature, humidity, fire... )

resistors

cables

Thingspeak Setup

20141208_122931.jpg
wifi test 1.jpg
20141127_102238.jpg
20141127_102804.jpg

1. go to https://thingspeak.com/users/sign_up & fill out the form to create an account

2. once the account is created, the page will change to your channels, click "new channel"

3. change the channel name and type in the fields that you want to record (temperature, light, humidity etc.) - save channel

4. click to "API Keys" tab and copy your write API key, this will be inserted into the code.

-

we are now ready to upload and capture data to our online channel where it will be graphed automatically and can be downloaded later on in excel format.

-

after you have created your channel you can also set e-mail alerts where the web page will automatically tweet "alarms"

-

5. go to https://twitter.com/ and create an account

6. go to https://thingspeak.com/apps/reacts and create a "new react"

7. name your react and change the alarm values, choose thing tweet as your action and add a twitter account (link your accounts). condition type: numeric, test frequency: on data insertion etc.. for more help: https://thingspeak.com/docs/thingtweet

8. once your react is saved and your twitter account is linked everything should be working, and you should be getting the alarms on your twitter channel/phone.

Set Up Wifi + Upload Code

20141208_111843.jpg
20141208_112007.jpg
20141208_103516.jpg
code settings.JPG

the wifi module is very simple to set up, even for a true beginner like me. there are many great articles on this module and how to set it up. I will let other great authors do the explaining on how to do this step. please ask me any specific question you may run into.

1. https://www.instructables.com/id/ESP8266-mini-Tutor...

2. https://www.instructables.com/howto/ESP8266/

3. wikipedia

.

wifi module schematics;

GND on wifi to > GND on arduino

RX on wifi to > TX on arduino

TX on wifi to > RX on arduino

CH_PD on wifi to > 3V3 on arduino

VCC on wifi to > 3V3 on arduino

.

upload code;

download the code first;

-single sensor code: https://drive.google.com/file/d/0B8bvYGugxvFFR0JPU...

-multiple sensors code: https://drive.google.com/file/d/0B8bvYGugxvFFMjk4Q...

now connect your microcontroller to the computer and launch the arduino software.

before uploading;

make sure to change your wifi name (SSID) and password (PASS) in the code, as well as thingspeak write API key.

also make sure that the wifi module is not connected to 3V3 while uploading the code to arduino. otherwise it will not upload.

Add the Sensors + Battery

20141208_104802.jpg
20141208_101148.jpg
20141208_101131.jpg
20141215_115341.jpg
20141215_115424.jpg
20141208_104720.jpg
20141208_102608.jpg
20141215_115445.jpg
20141208_101054.jpg
20141208_104047.jpg
20141208_104058.jpg
20141208_102934.jpg
20141208_105123.jpg

choose your sensor(s) first

I will be using light & temperature sensors for demonstration. light sensor gets a 10k ohm resistor and the temperature sensor gets a 10ohm resistor. match the resistor color codes.

.

single sensor connection;

connect either leg of the sensor to 3V3

connect the other leg of the sensor to A0

connect either leg of the corresponding resistor to A0

connect the other leg of the resistor to GND

.

multiple sensors connection;

same as the single setup, just add the next sensor to 3V3 and A1/A2/A3... etc

resistors will connect the same way again, one leg to A1/A2/A3 and the other to GND

.

battery 9V;

positive (+) of battery to > Vin on arduino

negative (-) of battery to > GND on arduino

Conclusion

20141208_104151.jpg
20141205_161649.jpg
548f307fd535cf51f6000027.jpeg
20141204_104638.jpg
20141208_104450.jpg
20141208_122948.jpg
FQPZLVDI3BHLJ00.jpeg

you can seal your device in many different things. I chose to use tupperware. a more durable and air-seal kind would also be more protected.

.

this device runs on a 9V battery. you can use other options such as rechargable li-ion. you can also run it on AC with an adapter, look at custom arduino parts for more information. i am currently working on a lithium-ion rechargeable battery pack. which should provide a much better mobile lifetime, i will update this post once complete.

.

make sure to check out my plant care instruments. I will be installing a similar system inside of plant pots and other devices.

.

i have to thank author diy_bloke for his help with the code (please visit his profile and check out his posts!). it was him who adjusted the code to accept regular sensors instead of modules. with his help now we can make such a device for a very low cost. also with his help i was finally able to get my smart pot system online as well.!

.

thank you so much for your time, please ask any questions in the comments below.

remember to subscribe for updates

love & peace,

akin

Updates

collage.jpg
IMG_8105.JPG
IMG_8101.JPG
temp wiring 01.JPG
20150324_204337.jpg
wifi_temp_bug1.jpg
Capture.JPG

finally got the ESP chip to work by itself, no arduino. programming the chip directly. you can connect upto 3 sensors this way :)

check these out

1. https://www.instructables.com/id/Low-cost-WIFI-temp...

2. http://homes-smart.ru/index.php/oborudovanie/bez-p...

.

i am currently testing battery life and working on a 3D printed magnetic case.