Bitraf Green Card
Innhold
What?
Pump control with arduino. Primarily for watering of plants but feel free to hack it and find other uses.
Why?
We envision that this packet will be the common pump control start kit for several different plant growing projects at bitraf.
Where?
- Virtual breadboard test run the software
- Google spreadsheet with all the project background (live-wiki)
- Bitraf-Green-Card github repository for sharing all the schematics, software and drawings the project generates
How?
We have decided to start with building a simple shield card for the arduino microcontroller.
System Breakdown
Hardware
- Arduinio UNO, since we sell them at bitraf
- Assorted components (Please fill in.)
- 2 of 12V pumps
- 2 soil moisture sensors (tons are available online, see example)
Software
The latest version of Bitraf-Green-Card can be found at Github. Version history:
Version 0.1 - "SoilMoistBasic"
- Function
- To test the concept of a automatic watering system
- Features
- Pumps water for 1 second after 6 seconds if the moisture sensor is dry.
- Created 22 Jan 2015
- By Jakob Nilsson
- No Rights Reserved
In and outputs
- 2 outputs 12V >1A outputs to drive two pumps
- 2 input sockets for 4 pin soil moisture sensors
- 12V input
Features
- Independent for the two pumps and sensors
- Pump water for a preset intervall at preset intevalls
- Detect if soil is moist or dry with a adjustable moisture level (trim-screw)
- Possibility to choose not to pump depending on if the soil is dry or not
- Reprogrammable via USB
Examples of use; check once per 24h or every 5 seconds
Later possible features
- 230V relay for light control with timer
- LCDisplay output
- Can choose not to pump at certain times of day
- Logging of soil moisture levels over time (USB brodcast)
- Battery backup for data logging
- Wireless
- Data gathering
- Tuning
- Reprogramming
- 230V light control (relay)
Progress
Prototype build #1
We achieved automatic watering of plants in soil at Bitraf 22/1-2015 with version v0.1 of the Bitraf Green Card on a breadboard!
Function
The soil moisture sensor was wrapped in cloth and put in contact with the bottom of the watering tray. When the cloth dried out the pump would fill the tray until the cloth got wet again.
Observations
The system functions as intended but is sensitive to the table being level or sloping away from the sensor. The risk is that the sensor stops the pumping before all plats have been watered. This kind of behavior will always be a risk when a large number of plats are being serviced by one pump.
Lessons learned
The next revision of the software will use a longer pumping time and then a longer delay before the moisture sensor is re-checked, to allow for water absorption.
Shield prototype #1
Work is proceeding to make an arduino shield.
The first test showed that we need larger transistors to cope with the currents drawn by these pumps.
A card with larger transistors was soldered but not completed for installation.