Project in progress

Double Plant Watering 2 © GPL3+

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

  • 6,598 views
  • 22 comments
  • 25 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
  • 6 followers

Additional contributors

  • His article helped in power reducing energy by madcoffe

Published on

May 24, 2018

Members who respect this project

Fabio123123Perfil ahmhy5fawvDefaultErospeterPhotoInfusionDefaultImg 20151116 wa0006 79xphbxc39

and 19 others

See similar projects
you might like

Similar projects you might like

Arduino Bluetooth Basic Tutorial

by Mayoogh Girish

  • 454,882 views
  • 42 comments
  • 239 respects

Home Automation Using Raspberry Pi 2 And Windows 10 IoT

Project tutorial by Anurag S. Vasanwala

  • 289,106 views
  • 96 comments
  • 676 respects

Security Access Using RFID Reader

by Aritro Mukherjee

  • 230,491 views
  • 38 comments
  • 239 respects

OpenCat

Project in progress by Team Petoi

  • 196,360 views
  • 154 comments
  • 1,364 respects
Add projectSign up / Login