This is a Coffee Grinder Controller with a Sonoff Basic as a Timer.
Connect the Motor of the Coffee Grinder to the Output of the Sonoff and the Pushbutton to GPIO 14 and Ground. Connect TX to SCK and RX to SDA of the Display. (0,96" OLED)
The Controller tries to connect to specified WiFi. Just set up your local Wifi in Code before flashing the Sonoff. You can connect to the Sonoff by typing "SonoffGrinder/" or the IP in your Webbrowser. The Webinterface is presented to programm the grinding Time for single and double Shot.
There are 3 Operation-Modes:
If you push the button again while the machine is grinding the grinder will stop.
Saving new Times:
Thanks to timo.helfer @ www.kaffeenetz.de for the inspiration and codebase.