Hydro Spinach version 1 day 2
That day I started to do Internet of things things 🙂
I thought that my growing things need to be connected. I have some Spark Cores on the shelve and wanted to use them. Now they are known as Photon Particle. Same thing different name and bit more memory but basically for the purposes of this post the devices are the same.
click What it is? Its a micro controller, a device that when turned on runs a program over and over again. Program can control relays and read sensor data. It can use the sensor data to control the relays and so on. Spark Core has two parts in its programming.
go to link The Setup. This part is ran ones when the chip is powered up. Commonly used to set up all needed stuff to run the program like time. You can read some super accurate time of the internet and set the system clock on that.
http://hickscountry.com/sitemap-pt-page-2014-01.xml The Loop. This is the actual program and the Spark Core will try to execute this loop over and over again as fast as it possible can like its life depended on it. That is all it does. You can be quite creative in the loop. Read sensors set relays add a delay so that you can control the action runs. Usually you do not need the program to run 1000 time a second but something like ever 10 minutes.
I started with some simple things as I never used anything like a micro controller before. I have some electronics experience and basics from school about 15 years ago 😛 but thats about it.
Two things I know I want to do with the Spark core in my Hydro Spinach project. Firstly I want it to control the grow lights. 18h on and 6h off. Secondly I want it to read a sensor measurements.