Project in progress
Double Plant Watering 2

Double Plant Watering 2 © GPL3+

An other double plant watering version, now with more autonomy and less power consumption.

  • 7,740 views
  • 22 comments
  • 28 respects

Components and supplies

About this project

Hi, this is the second version of my double plant watering. In this version we can see a small 5V Arduino pro mini 328, you can find it online.

There are two brushless usb pumps,

half plastic water bottle, tubes, two transistors bc368, 1k resistors, 3 diodes, an usb cable, a breadboard.

When you connect the usb cable, the pump 1 starts watering for 2 seconds, the same for the pump 2, then the microcontroller goes to sleep and wake up the next day at the same time for watering.

How can I manually wet plant?

You can simply press the reset button.

In sleep mode Arduino absorbs only few microAmps.

A diode in series with the positive power supply will reduce the current in wake up mode of some mA.

I have cutted the trace of the power led for saving energy, the average power consumption is only some microAmps instead of 12mA thanks to madcoffe power reduction technique, I hope this will inspire you, bye!

Code

Double plant watering 2Arduino
#include <LowPower.h>

byte pump1=7;               //pump1 at pin 7
byte pump2=8;               //pump2 at pin 8
int tempo=2000;             //watering time of 2 seconds
int i=0;                    //memory counter i start to 0
byte ledboard=13;           //on board led at pin 13

void setup()
{
pinMode(pump1,OUTPUT);       //pump1 output
pinMode(pump2,OUTPUT);       //pump2 output
pinMode(ledboard,OUTPUT);    //on board led output
digitalWrite(ledboard,LOW);  //turn off Arduino led
digitalWrite(pump1,LOW);     //start with both pump turned off
digitalWrite(pump2,LOW);
}

void loop() 
{
  if(i==0)                  //if reset i
  { 
  digitalWrite(pump1,HIGH); //turn on pump1 
  delay(tempo);             //wait some time
  digitalWrite(pump1,LOW);  //turn off pump1
  digitalWrite(pump2,HIGH); //turn on pump2
  delay(tempo);             //wait some time
  digitalWrite(pump2,LOW);  //turn off pump2
  }
  i++;  //i=i+1
  // Enter power down state for 8 s with ADC and BOD module disabled
  LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF); //sleep 
  if(i==10800) //every day
  i=0;          // reset i
}

Schematics

Double plant watering 2
Schematic
Double 4lahkdiu5d
Double plant watering 2
Schematic
double_plant_watering_vNzVaaYbCH.fzz

Comments

Author

Adamneareva
adamneareva
  • 3 projects
  • 7 followers

Additional contributors

  • His article helped in power reducing energy by madcoffe

Published on

May 24, 2018

Members who respect this project

Fabio123123Perfil ahmhy5fawvDefaultErospeterPhotoInfusionDefaultCnalbant

and 20 others

See similar projects
you might like

Similar projects you might like

Double Plant Watering

Project in progress by adamneareva and Fabio Cardoso

  • 769 views
  • 0 comments
  • 7 respects

Arduino Double Plant Watering Robot

Project showcase by adamneareva

  • 1,440 views
  • 2 comments
  • 4 respects

An Urban Plant Watering Solution

Project tutorial by James Yu

  • 17,320 views
  • 15 comments
  • 50 respects

Automated Plant Watering System

Project in progress by Ammar Shahid

  • 4,425 views
  • 2 comments
  • 23 respects

Automatic Plant Watering System with Arduino

Project tutorial by Team RobotGeek Projects Team

  • 32,775 views
  • 2 comments
  • 45 respects
Add projectSign up / Login