Simple Arduino sketch for a grind-on-demand grinder
BOM:
- Arduino Nano (clone or genuine)
- SSD1306 0.96" OLED (https://aliexpress.com/item/1005001621838435.html?)
- 2 buttons, with 5v LEDs (https://nl.aliexpress.com/item/32988505438.html?) or (https://nl.aliexpress.com/item/1005001732343587.html?) or whatever you like.
- Rotary encoder with push button (https://nl.aliexpress.com/item/1005001621899401.html?)
- 5V relay optocoupler relay + snubber (https://nl.aliexpress.com/item/1005004183334986.html?) + (https://nl.aliexpress.com/item/1005003128938478.html?)
- AC - 12v power supply: (https://nl.aliexpress.com/item/33012749903.html?)
- 12v - 5V step down: (https://nl.aliexpress.com/item/1005001821783419.html?)
Implementation instructions: >> Make sure you are familiar with the risks & have basic electronics knowledge.
- Unplug Grinder from all power connections, wait 30 minutes MINIMUM to allow the capacitors to discharge.
- Figure out your current circuit. Which probably only involved a momentary switch or timer. This is where the relay + snubber will connect
- Make a test setup of everything - use 5V from your computers USB to power everything.
- Download & install: Arduino IDE, VSCode. -> Install PlatformIO plugin on VSCode (with all required packages like python)
- Change settings as necessary (ENC_TOL) / prob not necessary
- Upload to Arduino with VS-code / PlatformIO
- Test! You can see in the video how the setup is supposed to perform - that is however without LEDs.
- Implement! Be careful with High voltage AC!
https://www.home-barista.com/repairs/arduino-grind-on-demand-mod-t85577.html#p912410