Kent Rueckert
Published

Solar Powered IoT Rain Barrel

Gutters to Gardens is a solar powered rain barrel for remotely or automatically activating a water distribution system for home garden beds.

IntermediateWork in progress10 hours3,429

Things used in this project

Hardware components

Photon
Particle Photon
×1
Amazon Echo
Amazon Alexa Amazon Echo
×1
12v Battery
×1
12v solenoid valve
×1
5v Relay
×1
12v to 5v voltage reducer
×1
15w solar panel
×1
Solar charge regulator
×1
Push-On Terminal Adapter
×1
Jumper cables
×1
11- Bread board
×1
Waterproof Grease Cap Wire Connectors
×1
rain barrel
×1
raised bed
×1
drip tape
×1
split valve
×1
Barbed insert for driptape
×1
pet rock
×1
Gutter Attachment
×1
3/4 in. FHT x 1/2 in. MIP
×1
MGH x 3/4 in. MIP x Tapped 1/2 in. FIP
×1

Software apps and online services

Blynk
Blynk
Alexa Voice Service
Amazon Alexa Alexa Voice Service

Hand tools and fabrication machines

Screw driver
wire stripper
teflon tape

Story

Read more

Code

Bylnk + EchoPhotonBridge Libarys

C/C++
In the Future I will add a variety of sensors, and a sleep mode to the Photon to extend the life cycle of the battery. With Particles next release of devices I plan to make a lipo connected solar charged moisture sensor.
I recommend not using digital pin D7.
#define BLYNK_PRINT Serial
#include <blynk.h>
#include <EchoPhotonBridge.h>
EchoPhotonBridge epb;
int functionOnOff(int device, bool onOff, String rawParameters)
{
    digitalWrite(D7, (onOff) ? HIGH : LOW);
}
char auth[] = "Bylnk Auth Token";
void setup() 
{
     pinMode(D7, OUTPUT);
    epb.addEchoDeviceV2OnOff("water", &functionOnOff);
  Serial.begin(9600);
  delay(5000); 
  Blynk.begin(auth);
     
}
void loop() 
{
   Blynk.run(); 
}

Credits

Kent Rueckert

Kent Rueckert

1 project • 3 followers
Information security student at Century College.
Thanks to GivingGardens.

Comments