/raspi-valve-controller

A Python-implemented method for an automated garden sprinkler

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Raspi Valve Controller

A method for controlling Raspberry Pi GPIO pins via websockets.

Dependencies

Software & Hardware Requirements

  • Raspberry Pi 3B & Micro SD Card
  • WinSCP
  • Putty
  • 1kOhm resister
  • 5v-12v 5-pin Relay
  • 12V DC Solenoid
  • 12V DC Power supply (minimum 1A)
  • BC548 Transistor
  • Diode
  • Nokia 5110
  • DC-DC 12v-5v voltage regulator
  • Veroboard, wire, solder, etc

Circuitry

alt text

alt text

Installation

  1. Install Raspian on the Raspi
  2. Connect the Raspi to your network
  3. Transfer the raspi-valve-controller.py script to the Raspi
  4. Execute the script

Optional:

  1. Setup the script to run as a service on startup
  2. Google a generic init.d tutorial