https://github.com/daveminer/rpsump
Web server for custom home automation. Built specifically for GPIO control on a Raspberry Pi
https://github.com/daveminer/rpsump
actix-web raspberry-pi rust
Last synced: 8 months ago
JSON representation
Web server for custom home automation. Built specifically for GPIO control on a Raspberry Pi
- Host: GitHub
- URL: https://github.com/daveminer/rpsump
- Owner: daveminer
- License: gpl-3.0
- Created: 2023-03-18T05:08:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-26T17:49:57.000Z (over 1 year ago)
- Last Synced: 2024-06-26T21:14:25.068Z (over 1 year ago)
- Topics: actix-web, raspberry-pi, rust
- Language: Rust
- Homepage:
- Size: 581 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# rpsump
Residential appliance automation with the Raspberry Pi.
## Overview
This particular sump pump was designed to prevent lawn damage due to moisture output from residential heaters and A/C units. The water from the appliances is routed to the sump where the Pi monitors the water level sensors and operates the pump when needed.
Later stages of this application will output the reclaimed water to a reservoir where it will be used for gardening; the Pi will also control the watering schedule.
## Requirements
SQlite >= 3.35: `sudo apt-get install libsqlite3-dev`
OpenSSL: `sudo apt install libssl-dev`
## Components
##### Board
This struct collects the hardware interfaces and is intended to be a singleton for the lifetime of the program. Other threads can read the state of inputs or change outputs via synchronous access (Mutex).
##### Input pins
Are configured with a callback that triggers when the state changes between high and low. These callbacks send messages that aggregate in the consumer of an mpsc channel for processing.
##### Output pins
Controlled by the mpsc consumer, the state of output pins is computed.
##### Sump
Group of inputs/callback handlers and outputs that form the sump pump functionality.

## Hardware
##### Raspberry Pi
- RPi 3 Model B
- 12v Relay

##### Pump Reservoir
- 4in. sewer pipe assembly from retail home improvement store
- standard pvc cement

##### Sensor and pump assembly
- 5v float switches
- aquarium pump
- flexible pvc
- hobby-grade acrylic sheet
- zip ties
