Lenin Ramirez-Sanchez
Published © MIT

Solar-Powered, Internet-Connected Lawn Sprinkler Project

Control a solar-powered, Internet-connected lawn sprinkler with MQTT, which makes an ideal as rabbit/rodent repellent.

IntermediateFull instructions provided10 hours1,546
Solar-Powered, Internet-Connected Lawn Sprinkler Project

Things used in this project

Hardware components

Adafruit Feather HUZZAH with ESP8266 WiFi
Adafruit Feather HUZZAH with ESP8266 WiFi
×1
Feather Header Kit - 12-pin and 16-pin Female Header Set
×1
Adafruit Latching Mini Relay FeatherWing
×1
3.7 V LiPo Battery
×1
USB Li Ion Battery Charger
Adafruit USB Li Ion Battery Charger
×1
Adafruit Medium 6V 2W Solar panel
×1
3.5 / 1.3mm or 3.8 / 1.1mm to 5.5 / 2.1mm DC Jack Adapter Cable
×1
DC Power Cable Set - 5.5/2.1mm
×1
JST 2-pin cable
×2
Slide Switch
Slide Switch
×1
9v battery cable
×1
Solenoid valve 12V
×1

Story

Read more

Code

Code snippet #1

Plain text
mqtt:
  broker: 127.0.0.1

switch:
  platform: mqtt
  name: "Outside Sprinkler"
  command_topic: "home/sprinkler"
  payload_on: "on"
  payload_off: "off"

Code snippet #2

Plain text
{
    "ESSID": "WiFi network name (SSID)",
    "PASSWD": "Insert the WiFi password",
    "MQTT_Broker": "Internal IP of the MQTT Server.",
    "TOPIC": "home/sprinkler",
  "DURATION": 8
}

Github

https://github.com/adafruit/ampy

Github

https://github.com/Moving-Electrons/connected-sprinkler

Credits

Lenin Ramirez-Sanchez

Lenin Ramirez-Sanchez

2 projects • 1 follower

Comments