protofusion

open hardware and software

User Tools

Site Tools


zoncoffee_pid_controller

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
zoncoffee_pid_controller [2014/11/04 18:25] – [Software Setup] Ethan Zoncazoncoffee_pid_controller [2023/03/23 02:48] (current) – external edit 127.0.0.1
Line 14: Line 14:
 ===== Software Setup ===== ===== Software Setup =====
  
-[[http://hg.protofusion.org/ZonCoffee/archive/486905a58273.zip|Download the ZonCoffee Arduino sketch and libraries]]+To get started, [[http://hg.protofusion.org/ZonCoffee/archive/486905a58273.zip|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.+Your ZonCoffee board comes pre-loaded with the latest firmware. However, you can flash your own custom firmware  
 + 
 +==== Arduino IDE ====
  
 Download the latest [[http://arduino.cc/|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. Download the latest [[http://arduino.cc/|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.
 +
 +Note: In that zip file, all libraries in the "lib" folder need to be installed to your Arduino IDE. If you haven't done this before, you just need to copy and paste all subfolders of the "lib" directory into the "libraries" folder of your Arduino installation.
 +
 +
  
 ==== LCD support ==== ==== LCD support ====
Line 24: Line 30:
 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: 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+In the Arduino sketch, browse to ''options.h''
  
     13 //#define LCDSF      // Use SparkFun serial lcd     13 //#define LCDSF      // Use SparkFun serial lcd
Line 32: Line 38:
 Uncomment the LCDSF line and comment out the LCDHD line. Now your SparkFun LCD should work properly. Uncomment the LCDSF line and comment out the LCDHD line. Now your SparkFun LCD should work properly.
  
-==== Libraries ==== +**There seems to be a bug in the Arduino IDE when switching between LCDs. If you change the selected display in ''options.h'' and get a ton of compilation errors, change the order of these two blocks in zoncoffee.ino (for example):** 
-Note: In that zip file, all libraries in the "lib" folder need to be installed to your Arduino IDE. If you haven't done this before, you basically just copy and paste the library folders into the "libraries" folder of your Arduino installation.+ 
 +Change this:  
 + 
 +    15 // Setup LCD 
 +    16 #ifdef LCDHD 
 +    17   #include <LiquidCrystal.h> 
 +    18   LiquidCrystal lcd(A5,A4,A3,A2,A1,A0); 
 +    19 #endif 
 +    20 
 +    21 #ifdef LCDSF 
 +    22   #include <SLCD.h> 
 +    23   SLCD sflcd = SLCD(LCDROWS, LCDCOLS); 
 +    24 #endif 
 +     
 +To this: 
 + 
 +    15 // Setup LCD 
 +    16 #ifdef LCDSF 
 +    17   #include <SLCD.h> 
 +    18   SLCD sflcd = SLCD(LCDROWS, LCDCOLS); 
 +    19 #endif 
 +    20 #ifdef LCDHD 
 +    21   #include <LiquidCrystal.h> 
 +    22   LiquidCrystal lcd(A5,A4,A3,A2,A1,A0); 
 +    23 #endif 
 +    24 
 +     
 +...or the other way around.
  
-Thanks, +     
-Ethan Zonca+    
  
  
zoncoffee_pid_controller.1415125551.txt.gz · Last modified: 2023/03/23 02:48 (external edit)