This is an old revision of the document!
Table of Contents
ZonCoffee PID Controller
ZonCoffee is an inexpensive PID controller built around the Atmel ATMEGA32u4.
Hardware Setup
- Connect your LCD
- Serial LCDs are connected to the “LCD” screw terminal
- Parallel LCDs are connected through the auxiliary connector
- Connect a rotary encoder and switch to the labeled screw terminal
- Internal pull-ups are enabled, so the switch should be connected between ground and the
sw
pin - If your rotary encoder does not operate correctly with any pin configuration, you may need to try different quadrature sequences in
/lib/Quadrature/Quadrature.cpp
- Connect a solid-state relay to the 2-pin SSR screw terminal
- Connect your 5v power supply (either USB or screw terminal)
Software Setup
Download the ZonCoffee Arduino sketch and libraries
Your ZonCoffee board comes pre-loaded with the latest firmware. However, you can flash your own custom firmware or updates using the Arduino bootloader which is pre-programmed on the ATMEGA32u4.
Download the latest Arduino IDE and make sure that the selected board is Arduino Leonardo. The IDE should function as if the ZonCoffee was a normal Arduino Leonardo.
LCD support
The firmware comes pre-configured for the HD44780 parallel LCD display. To use a SparkFun serial LCD, you will need to change a couple configuration options:
In the Arduino sketch, browse to options.h
13 //#define LCDSF // Use SparkFun serial lcd 14 #define LCDHD // Use standard HD44780 lcd or compat.
Uncomment the LCDSF line and comment out the LCDHD line. Now your SparkFun LCD should work properly.