Forskjell mellom versjoner av «Bitraf Green Card»

Fra Bitraf
Hopp til navigering Hopp til søk
m (Hardware)
 
(10 mellomliggende revisjoner av 3 brukere er ikke vist)
Linje 1: Linje 1:
 
==What?==
 
==What?==
Pump control with arduino. Primarily for watering of plants but feel free to hack it and find other uses.
+
Pump control with [[arduino]]. Primarily for watering of plants but feel free to hack it and find other uses.
  
 
==Why?==
 
==Why?==
Linje 6: Linje 6:
  
 
==Where?==
 
==Where?==
*[http://123d.circuits.io/circuits/547535-bitraf-green-card-virtual-breadboard-test/ Virtual breadboard test run of the software]
+
*[http://123d.circuits.io/circuits/547535-bitraf-green-card-virtual-breadboard-test/ Virtual breadboard test run the software]
 
*[https://docs.google.com/spreadsheets/d/1FIZH5hjUCa4hXk7hfVTxHl_OUY0C-xkADLNJ-oQ95XI/edit?usp=sharing Google spreadsheet with all the project background ''(live-wiki)'']
 
*[https://docs.google.com/spreadsheets/d/1FIZH5hjUCa4hXk7hfVTxHl_OUY0C-xkADLNJ-oQ95XI/edit?usp=sharing Google spreadsheet with all the project background ''(live-wiki)'']
 
*[https://github.com/Jaknil/Bitraf-Green-Card Bitraf-Green-Card github repository for sharing all the schematics, software and drawings the project generates]
 
*[https://github.com/Jaknil/Bitraf-Green-Card Bitraf-Green-Card github repository for sharing all the schematics, software and drawings the project generates]
Linje 16: Linje 16:
  
 
====Hardware====
 
====Hardware====
*Arduinio UNO, since we sell them at bitraf
+
*[[Arduino]] UNO, since we sell them at [[Bitmart]].
 
*Assorted components ''(Please fill in.)''
 
*Assorted components ''(Please fill in.)''
 
*2 of 12V pumps
 
*2 of 12V pumps
Linje 35: Linje 35:
 
====In and outputs====
 
====In and outputs====
 
*2 outputs 12V >1A outputs to drive two pumps
 
*2 outputs 12V >1A outputs to drive two pumps
*2 input sockets for 4 pin soil moisture sensors  
+
*2 inputs for moisture sensors  
 
*12V input
 
*12V input
  
Linje 49: Linje 49:
 
*230V relay for light control with timer
 
*230V relay for light control with timer
 
*LCDisplay output
 
*LCDisplay output
 +
*Can choose not to pump at certain times of day
 
*Logging of soil moisture levels over time (USB brodcast)
 
*Logging of soil moisture levels over time (USB brodcast)
 
*Battery backup for data logging
 
*Battery backup for data logging
Linje 59: Linje 60:
 
==Progress==
 
==Progress==
 
===Prototype build #1===
 
===Prototype build #1===
We achieved automatic watering of plants in soil at Bitraf 22/1-2015 with version v1.0 of the Bitraf Green Card on a breadboard!  
+
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!  
  
 
[[File:Beta.jpg|300px]]
 
[[File:Beta.jpg|300px]]
 
[[File:plate.jpg|300px]]
 
[[File:plate.jpg|300px]]
 +
[[File:Probe.JPG|300px]]
 +
[[File:Wrap.JPG|300px]]
  
===Shield prototype #1===
+
'''Function'''
Work is proceeding to make an arduino shield.
+
 
 +
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 plants have been watered.
 +
This kind of behavior will always be a risk when a large number of plants 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 - Small Transistors===
 +
An attempt was made to power the pumps directly from the an arduino shield.
  
 
[[File:Green1.JPG|300px]]
 
[[File:Green1.JPG|300px]]
 
[[File:Green2.JPG|300px]]
 
[[File:Green2.JPG|300px]]
 +
 +
'''Lessons learned'''
 +
 +
The first test showed that we would need larger transistors to cope with the currents drawn by these pumps (>2A).
 +
 +
===Shield prototype #2 - Large Transistors===
 +
[[File:larger.JPG|300px]]
 +
 +
A test card with larger transistors was soldered but debugging was not completed.
 +
 +
'''Lessons learned'''
 +
 +
Prefabricated relay breakout boards was judged to be a preferred way forward since they offer high current 12 (pumps/valves) and 230 volt (any growing lights) switching for a reasonable price. It also reduces risk of human error and saves construction time.
 +
 +
*[http://www.dx.com/p/arduino-2-channel-relay-shield-module-red-144140#.VNaAX0fF-Es Prices seems to be around 25-30 NOK for a 2 relay breakout board with shipping to Norway.]
 +
 +
*[http://www.dx.com/p/4-channel-5v-optocoupler-isolation-replay-module-w-high-level-trigger-blue-223433 And about 45-50 NOK for a board with four relays.]
 +
 +
===Connection shield===
 +
 +
'''Background'''
 +
 +
The arduino needs to be connected to pumps and sensors, in the first prototype we used breadboard but quickly found that it is not durable enough for long term use.
 +
The setup uses 3 breakout boards and some thicker wiring to feed the pumps.
 +
 +
'''Traditional method'''
 +
After the breadboard solution was working the traditional next step would be to solder all connectors to a [http://www.instructables.com/id/Design-a-simple-arduino-shield/ dedicated arduino shield] that would then only work for this particular application. It would look similar to our Prototype #1 above. Alternatively the user could design and order a more [http://aaroneiche.com/2010/06/24/a-beginners-guide-to-making-an-arduino-shield-pcb/ professional looking Printed Circuit Board], which may or may not work as intended when it is fabricated. Either way, next time the user would like to use the arduino for a project she would be forced to start over and make and solder a new custom arduino card.
 +
 +
'''Modular approach'''
 +
We have been looking into creating a modular connection system for the arduino. The goal is that a user should be able to buy different breakout boards from different sources and then attach them to a common cable connector thus making it possible to quickly connected or disconnected from the arduino. The user should also be able to trust the connection over time. This would make it easier to combine, remove or add breakout boards to different setups without having to build a new card for each configuration.
 +
 +
[[Category:Prosjekter]][[Category:Arduino]]

Nåværende revisjon fra 3. mar. 2018 kl. 15:49

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?

How?

We have decided to start with building a simple shield card for the arduino microcontroller.

System Breakdown

Hardware

  • Arduino UNO, since we sell them at Bitmart.
  • 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 inputs for 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!

Beta.jpg Plate.jpg Probe.JPG Wrap.JPG

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 plants have been watered. This kind of behavior will always be a risk when a large number of plants 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 - Small Transistors

An attempt was made to power the pumps directly from the an arduino shield.

Green1.JPG Green2.JPG

Lessons learned

The first test showed that we would need larger transistors to cope with the currents drawn by these pumps (>2A).

Shield prototype #2 - Large Transistors

Larger.JPG

A test card with larger transistors was soldered but debugging was not completed.

Lessons learned

Prefabricated relay breakout boards was judged to be a preferred way forward since they offer high current 12 (pumps/valves) and 230 volt (any growing lights) switching for a reasonable price. It also reduces risk of human error and saves construction time.

Connection shield

Background

The arduino needs to be connected to pumps and sensors, in the first prototype we used breadboard but quickly found that it is not durable enough for long term use. The setup uses 3 breakout boards and some thicker wiring to feed the pumps.

Traditional method After the breadboard solution was working the traditional next step would be to solder all connectors to a dedicated arduino shield that would then only work for this particular application. It would look similar to our Prototype #1 above. Alternatively the user could design and order a more professional looking Printed Circuit Board, which may or may not work as intended when it is fabricated. Either way, next time the user would like to use the arduino for a project she would be forced to start over and make and solder a new custom arduino card.

Modular approach We have been looking into creating a modular connection system for the arduino. The goal is that a user should be able to buy different breakout boards from different sources and then attach them to a common cable connector thus making it possible to quickly connected or disconnected from the arduino. The user should also be able to trust the connection over time. This would make it easier to combine, remove or add breakout boards to different setups without having to build a new card for each configuration.