Hello Everyone,
My first issue was loading the SD card with the 143 files from New Life Controller. As I was on a MAC, I followed MAC instructions but was unsuccessful. I ended up loading the files onto the SD card using a PC. It worked so I didn't research the MAC failure further.
Then my issue was getting the Touch on my ElecFreaks LCD to work with the controller.
For those interested in how I was able to get my equipment to work with nkd5024's reef controller program read on.
My Equipment:
Arduino Mega 2560 R3 from Mouser $38.95 for now attached with USB to my Mac
3.2" TFT LCD Screen model TFT01-3.2 from ElecFreaks $24.50
LCD TFT01 Arduino Mega Shield v1.4 from ElecFreaks $7.50
(note: ElecFreaks offered free shipping but took one month for delivery)
RTC module DS1307 ebay seller chip_partner $2.46
solder less breadboard and jumper wires (F/F and M/F) until I have a permanent design
Steps I took since I had altered the sketches so many times:
Deleted everything! Arduino app with all in it went into my TRASH folder
reinstalled Arduino application (downloaded arduino.app moved to applications folder)
downloaded from
http://www.henningkarlsen.com/electronics/library.php Henning's libraries:
UTouch
UTFT
UTFT_tinyFAT
tinyFAT
and copied the 4 folders into the libraries folder (in Adruino/Contents/Resources/Java/libraries)
from my download of New Life Reef Controller I copies libraries:
Dallas_Temp_Control
OneWire
RTClib
copied New_Life_Reef_Controller folder that contains only the New_Life_Reef_Controller.ino file to my Adruino App (in Adruino/Contents)
What I edited in the files opening them with TextEdit.app:
Followed UTouch Manual and ran UTouch_Calibration sketch (using Mega as development board and TFT01_32 as LCD):
// Uncomment the next two lines for the Arduino Mega
UTFT myGLCD(
TFT01_32,38,39,40,41); // Remember to change the model parameter to suit your display module!
UTouch myTouch(6,5,4,3,2);
(Note: I am using pins 6,5,4,3,2 for TOUCH, I have not moved them as nkd5024 has us move them eventually. So when ever I use the library for UTouch I have UTouch myTouch(6,5,4,3,2).)
(NOTE - After calibration I made these same changes above to the UTouch_ButtonTest and UTouch_QuickDraw and both worked so I knew I was okay.)
then edited UTouchCD.h accordingly:
//CALIBRATION DATE 01-17-2013
#define CAL_X 0x002BCEB2UL
#define CAL_Y 0x03A1C12AUL
#define CAL_S 0x000EF13FUL
New_Life_Reef_Controller.ino:
---NOTE: make sure to include the side ways arrows, the formatting of reef central posts seems to hide the information within the arrows so I deleted them here.
//#include <ITDB02_Touch.h> updated to UTouch 1/17/13
#include UTouch.h
#include UTouchCD.h
#include avr/pgmspace.h
#include UTFT.h
#include tinyFAT.h
#include UTFT_tinyFAT.h
#include RTClib.h
#include Wire.h
#include OneWire.h
#include DallasTemperature.h
//******** Declare Touch/LCD/RTC **********
UTFTtf myGLCD(TFT01_32, 38, 39, 40, 41);
UTouch myTouch(6,5,4,3,2);
RTC_DS1307 RTC;
---------then down further------
//*****************************************************************************************************
void setup(){
myGLCD.InitLCD(LANDSCAPE); //Initiate LCD Screen
myGLCD.clrScr();
file.initFAT(); //Initiate SD Card for FAT16 Lib
Wire.begin();
RTC.begin(); //Initiate Real Time Clock
myTouch.InitTouch(1); //Initiate Touch Screen for Landscape for UTouch use a 1 for LANDSCAPE, 0 for PORTRAIT
myTouch.setPrecision(PREC_HI);
myGLCD.setFont(SmallFont);
After all my changes were saved, I verified the New_Life_Reef_Controller.ino and I had no errors.
I uploaded the sketch and it worked!
NOTES:
I am using a MAC (so Arduino.app and folder placement is different on a PC)
As I understand from Henning's information-
The tinyFAT library was made by Henning's to communicate with SPI scan disk files.
The UTFT library is to communicate with the LCD screen.
The UTFT_tinyFAT lib ray provides "glue" between UTFT and tinyFAT libraries.
The UTouch library is an add-on to UTFT to handle the TOUCH aspects of the screen.
All LCD screens use LANDSCAPE and Touch can be either PORTRAIT or LANDSCAPE (depending on the model) HOWEVER if using UTouch WITH UTFT then BOTH should be LANDSCAPE.
Thus, in UTouch you use the NUMBERS 1 instead of the word LANDSCAPE.
I hope this makes sense. I tried to write it as simple as possible (that is how I like instructions). If you have any other questions or need something clarified, let me know.