A server and plugin setup for a decent espresso machine that monitors wastewater level with a proximity sensor
The server can run on a raspberry pi and my setup uses a cheap xkc-y25-npn water sensor
The tcl plugin will notify you on boot if your water reservoir is full or not
- Clone the repo into a raspberry pi and run
cd server && sudo ./install.sh
, this script will automatically install and start the service viasystemctl
- Attach a water level sensor to GPIO pin
2
- Setup a sftp server on your tablet, set port to
2222
and default directory tode1plus
- Run
cd plugin && install.sh yourUser@yourTabletIPAddr
- Reboot the de1plus app
- Go to settings -> plugins, and enable the 'Reservoir' plugin
For my setup, I am using xkc-y25-npn non contact liquid sensors, and a basic raspberry pi (any would do, I think I'm using a B+ model 3)
Connection is quite easy:
- Brown wire goes to the 5v connection on the pi
- Yellow wire goes to GPIO pin 2 on the pi
- Blue wire goes to GND on the pi
- Black wire can be ignored
The server runs against port 8080
, water level calls can be run directly against this: http://IP_ADDR_OF_PI:8080
There is also a "debug" mode which will force the sensor to be true
, you can toggle this mode by going to: http://IP_ADDR_OF_PI:8080/debug