Note: This project is posted with permission of the maker at BytesThink.com
Believe or not, I worked in a project with hardware and software created in 8 weeks only. I am talking about Intel Galileo ! The first intel board compatible with Arduino API plus some new and cool features.
Before to talk about how to create a very affordable moisture sensor system, let me explain what is Intel Galileo.
About the Intel Galileo Board – Hardware
Intel Galileo is a board with new processor called Quark SoC X1000, x86 based, 32 bits, single-core/single thread processor full compliance with ACPI and support RTC. Do you remember pentium ? Yes, chipset instruction compatible but smaller, affordable, ACPI enabled and very simple to use.
The board contains also contains:
- ethernet connector
- pci-e bus (mini PCI)
- sdcard slot up to 32Gb
- the regular arduino Uno pins for digital and analog IO’s and an IO expander able to generate 8 PWN channels
- 1 USB port as host (2.0) and accepts up to 128 devices
- 1 USB port for programming (2.0)
- contains 512Mb flash and 216Mb RAM
- reset button for the processor, reset button for the sketches
- 10 pin jtag-connector
- The board can operated in 5V or 3.5V (jumper configurable)
- 11kb EEPROM available (yeah.. we have a API for this.. click here)
The schematics are available.
About the Intel Galileo Board – Software
Intel Galileo uses Linux as OS and you can boot from flash SD card. The cool thing on this board you have the Arduino APIs available that means you have the IDE for Linux, Windows and Macs in 32 and 64 bits.
Only Arduino API experience ? NO!!!! We expanded the experience.. you have new components in the board so new APIs were created like RTC, EEPROM, Web client, etc. Another details is, the servo API is a new methods added that can allow your servos working with 188Hz (for more precision) or 50Hz.
Considering we are running linux, when you install the IDE all the crosscompilers are installed also (toolchain). It means you can develop using native C/C++ ANSI and using the linux libraries. Arduino IDE on this case will be optional to you because you can develop your code natively and transfer using ftp for instance.
When Intel Galileo will be releases and how much will cost ? And does it worth ?
The official date is Nov, 29/2013. The cost will be around US$ 50 to US$60 bucks! I do not have the details yet..
Intel Galileo has an ethernet connector and a pci-e bus. If you are developing anything with Arduino and requires internet connection you will be forced to buy an expensive wifi/ethernet shield that costs US$ 65 bucks! If you are using Galileo you can use the embedded ethernet connector or you can buy a simple Wifi and Bluetooth module pci-e compatible in amazon for only US$ 8.00.
The same if you need a video card!
Another plus is the RTC.. You do not need another shield with RTC.. The same with SD card, you do not need another shield for data logging because you can use the APIs and store your data up to 32Gb sd card using the slot already present.
These will save a lot of money and you give you a powerful board for your project.
How do I start ?
If you are Arduino developer you will realize the IDE is mostly the same excepted by the new APIS added and the option to update the board firmware.
You can take a look in the “Getting Start Guide” and download the IDE and you can choose Windows, Linux or Mac for IDE.
This IDE a feature very special that allow us to update the Linux OS in your board (flash or SD card). Take a look in the Start Guide for more information.
The Soil Moisture System using Nails
Now you already have an introduction about what is Intel Galileo Board. Let’s talk about this very simple project.
First of all, I created this project in 2 hours and I used this project as a demo in Maker Fair in Rome/Italy.
People, did not understand (at glance) what two coups with soil and wires were doing over the table in an electronic fair but when they realized they loved (including the intel CEO Brian Krzanich).
The system is based in two sensors. Each sensor is built using galvanized nails connected to an analog port and making a resistor division with another resistor. The sensors also keeps the nail separated in a distance equivalent of 1.5 inches using pieces of foam that I found in the trash. Yes! the system is simple, cheap and you can monitor your soil only using nails. I choose galvanized for obvious reasons.. I do not want to see the nails rusted in a short period of time.
This is more than enough to check if soil has water in good amount to the plants or not. Considering was a fair, I build a LED matrix in order to show a happy or sad face. This face has a push button as well.
If “one eye” is on, means sensor number ONE. Two “eyes” means sensor number TWO. The sensor selection was done using the push button. On this way, you could see “one” or “two” eyes being switched by the users. In the fair, I had two coups each of them with soil but one of them with a little bit of water and each coup connected to a sensor.
Then, each sensor is connected to a respective analog port (A0 – sensor 1 and A1 – sensor 2) and periodically the sensor select by the push button and represented by the “eyes” were measured. If is lower then certain amount (see the code) the soil was dry and the plants need water and consequently you could see a “sad” face in the LED matrix. Otherwise, the soil was good and a happy face could see in the LED’s matrix.
Take a look in the pictures below. The first picture is sensor number 2 (two eyes) and the plant is happy, it means, has water enough in the first coup with soil. The second pictures (one eye) means sensor number 1 and the flower is sad, it means, the plant needs water.
Then the sad face, could tweet you asking for water! Of course it was a fair and I did not connect any eletric water valve because would be a mess and I would need to change the soil all the time. Another point is, if you want to create this system in your house, you do not need the LED matrix to draw the flower sad or happy face, you only need the nails connected to your analog ports and let your software make the decision, for example, turn on your sprinklers.
On this post I am adding the code to how the sensors are read and how the LED matrix is changed after reading the push button state. I will add a different post how to tweet using our ethernet connector or wifi pci-e module.
The format is not so good but I am letting the code available to download here as well.
Next part I will post how to make the plants tweet you when they need water allowing them to communicate with you.
Note: This project is posted with permission from the maker of this project at: BytesThink.com