David Rodriguez
Published © GPL3+

Lane Tech HS - PCL - IOT Water Pump

This project was part of the Lane Tech HS Physical Computing Lab course. I created this project as part of the Home Automation/IoT project.

IntermediateFull instructions provided5 hours958
Lane Tech HS - PCL - IOT Water Pump

Things used in this project

Hardware components

tea light holder
×1
DC motor (generic)
×1
plastic tube
×1
plastic tray
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Solid State Relay
Solid State Relay
×1
boost converter
×1
General Purpose Transistor NPN
General Purpose Transistor NPN
×1
3.6V 0.5W Zener Diode
3.6V 0.5W Zener Diode
×1
Photon
Particle Photon
×1

Software apps and online services

Maker service
IFTTT Maker service

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)
Drill Taps
OpenBuilds Drill Taps

Story

Read more

Schematics

img_3550_MoVJFTWkMd.jpeg

Code

Code

Arduino
int relay = D1;
void setup() {
    pinMode(relay, OUTPUT);
    Particle.subscribe("startPumping", myHandler);
}

void loop() {

}

void myHandler(const char *event, const char *data) 
{
    digitalWrite(relay, HIGH);
    delay(20000); //this is the delay for how long the dc motor is on, will vary on how much water you want to pump.
    digitalWrite(relay, LOW);
}

Credits

David Rodriguez
2 projects • 1 follower

Comments