DIY Aquarium Touchscreen Controller - Page 4
Planted Tank Forums
Your Tanks Image Hosting *Tank Tracker * Plant Profiles Fish Profiles Planted Tank Guide Photo Gallery Articles

Go Back   The Planted Tank Forum > Specific Aspects of a Planted Tank > DIY


Reply
 
Thread Tools Display Modes
Old 11-05-2012, 10:26 AM   #46
boxhead1990
Planted Tank Obsessed
 
PTrader: (0/0%)
Join Date: Aug 2011
Location: australia
Posts: 325
Default

Sweet and i couldnt get that jarduino sketch to work either

All i could is get the lcd test i found to work n thats it haha

Sent from my GT-S5830 using Tapatalk 2
boxhead1990 is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old 11-05-2012, 04:00 PM   #47
Darkblade48
Moderator
 
Darkblade48's Avatar
 
PTrader: (3/100%)
Join Date: Jan 2008
Location: Toronto
Posts: 9,203
Default

An interesting thread that I'll be following. I had the initial ideas to just build a simple pH controller to control CO2, but then thought, why not go all the way and have something similar to a reef controller?

Then that snowballed into "Let's have a touchscreen LCD too!"....and here I am today.

I'd be interested to see the coding that you have done so far too; I haven't actually started coding yet, but have gathered all the parts (lying at home)...
__________________
Anthony

A Primer to Pressurized CO2 and A Primer to Planted Tanks
Eheim Pimp #362 - Eheim 2213 x2, Eheim 2028, Eheim 2217, Eheim surface skimmer and Eheim autofeeder.
Victor Pimp #33 - HPT272-125-350-4M
Darkblade48 is offline   Reply With Quote
Old 11-05-2012, 09:10 PM   #48
boxhead1990
Planted Tank Obsessed
 
PTrader: (0/0%)
Join Date: Aug 2011
Location: australia
Posts: 325
Default

Im slowly trying to work it all out iv bought most of what i need just waiting for it all to come in the post and trying to figure out these sketches

Sent from my GT-S5830 using Tapatalk 2
boxhead1990 is offline   Reply With Quote
Old 11-09-2012, 01:57 PM   #49
boxhead1990
Planted Tank Obsessed
 
PTrader: (0/0%)
Join Date: Aug 2011
Location: australia
Posts: 325
Default

Quote:
Originally Posted by Mike in MD View Post
Good deal
I start my vacation this Saturday coming up. I have to plumb my wet/dry in on my 65, then I have 8 days to concentrate on writing code on mine.
Mike
I got my driver sheild but they havent supplied me with anything to tell me much more then the ebay add lol


Pretty disapointing as i have no idea on how i can possably test it............



Sent from my GT-S5830 using Tapatalk 2
boxhead1990 is offline   Reply With Quote
Old 11-09-2012, 03:18 PM   #50
Mike in MD
Algae Grower
 
Mike in MD's Avatar
 
PTrader: (0/0%)
Join Date: Aug 2012
Location: Maryland
Posts: 80
Default

Pm me in the AM and we'll get ya going. I have to work late tonight
Mike

Sent from my SGH-T679 using Tapatalk 2
__________________

65 Gallon Tall with Cascade 1000, Wet/Dry and Fluidized bed filter, 3 media reactors, CO2 with CarbonDoser EXT5000 reactor, DIY 36 LED light with Typhon controller. In the works..DIY Touchscreen Aquarium Controller
Mike in MD is offline   Reply With Quote
Old 11-10-2012, 05:45 AM   #51
boxhead1990
Planted Tank Obsessed
 
PTrader: (0/0%)
Join Date: Aug 2011
Location: australia
Posts: 325
Default

Oh il just pm you now have no idea whay the time differance is im in brisbane australia lol

Sent from my GT-S5830 using Tapatalk 2
boxhead1990 is offline   Reply With Quote
Old 11-10-2012, 05:55 AM   #52
Mike in MD
Algae Grower
 
Mike in MD's Avatar
 
PTrader: (0/0%)
Join Date: Aug 2012
Location: Maryland
Posts: 80
Default

Quote:
Originally Posted by boxhead1990 View Post
Oh il just pm you now have no idea whay the time differance is im in brisbane australia lol

Sent from my GT-S5830 using Tapatalk 2
Apparently a BIG difference, it's 2AM here
PM'd ya back
Mike
__________________

65 Gallon Tall with Cascade 1000, Wet/Dry and Fluidized bed filter, 3 media reactors, CO2 with CarbonDoser EXT5000 reactor, DIY 36 LED light with Typhon controller. In the works..DIY Touchscreen Aquarium Controller
Mike in MD is offline   Reply With Quote
Old 11-10-2012, 09:53 AM   #53
boxhead1990
Planted Tank Obsessed
 
PTrader: (0/0%)
Join Date: Aug 2011
Location: australia
Posts: 325
Default

here il copy and paste this here

this is the error im getting and when i look at it all i have no bloody clue what im looking at and what half of alot of the stuff i have been reading is telling me to do.....

and here is the only sketch iv been able to get to work out of all the ones thats in there as examples ect:


#define LCD_RS 38
#define LCD_WR 39
#define LCD_CS 40
#define LCD_REST 41

#define DCLK 6
#define CS 5
#define DIN 4
#define DOUT 3
#define IRQ 2

unsigned int TP_X,TP_Y;
void spistar() //SPI Start
{
digitalWrite(CS,HIGH);
digitalWrite(DCLK,HIGH);
digitalWrite(DIN,HIGH);
digitalWrite(DCLK,HIGH);

}
//************************************************** ********
void WriteCharTo7843(unsigned char num) //SPI Write Data
{
unsigned char count=0;
unsigned char temp;
unsigned nop;
temp=num;
digitalWrite(DCLK,LOW);
for(count=0;count<8;count++)
{
if(temp&0x80)
digitalWrite(DIN,HIGH);
else
digitalWrite(DIN,LOW);

temp=temp<<1;

digitalWrite(DCLK,LOW);
nop++;
nop++;
digitalWrite(DCLK,HIGH);
nop++;
nop++;
}
}

//************************************************** ********
unsigned int ReadFromCharFrom7843() //SPI Read Data
{
unsigned nop;
unsigned char count=0;
unsigned int Num=0;
for(count=0;count<12;count++)
{
Num<<=1;
digitalWrite(DCLK,HIGH);//DCLK=1; _nop_();_nop_();_nop_();
nop++;
digitalWrite(DCLK,LOW);//DCLK=0; _nop_();_nop_();_nop_();
nop++;
if(digitalRead(DOUT)) Num++;
}
return(Num);
}

void AD7843(void)
{
digitalWrite(CS,LOW);
WriteCharTo7843(0x90);
digitalWrite(DCLK,HIGH);
digitalWrite(DCLK,LOW);
TP_Y=ReadFromCharFrom7843();
WriteCharTo7843(0xD0);
digitalWrite(DCLK,HIGH);
digitalWrite(DCLK,LOW);
TP_X=ReadFromCharFrom7843();
digitalWrite(CS,HIGH);
}



void Lcd_Writ_Bus(char VH,char VL)
{
unsigned char i,temp,data;
data=VH;
for(i=22;i<=29;i++)
{
temp=(data&0x01);
if(temp)
digitalWrite(i,HIGH);
else
digitalWrite(i,LOW);
data=data>>1;
}
data=VL;
for(i=37;i>=30;i--)
{
temp=(data&0x01);
if(temp)
digitalWrite(i,HIGH);
else
digitalWrite(i,LOW);
data=data>>1;
}
digitalWrite(LCD_WR,LOW);
digitalWrite(LCD_WR,HIGH);
}


void Lcd_Write_Com(char VH,char VL)
{
digitalWrite(LCD_RS,LOW);
Lcd_Writ_Bus(VH,VL);
}

void Lcd_Write_Data(char VH,char VL)
{
digitalWrite(LCD_RS,HIGH);
Lcd_Writ_Bus(VH,VL);
}

void Lcd_Write_Com_Data(int com,int dat)
{
Lcd_Write_Com(com>>8,com);
Lcd_Write_Data(dat>>8,dat);
}

void Address_set(unsigned int x1,unsigned int y1,unsigned int x2,unsigned int y2)
{
Lcd_Write_Com_Data(0x0044,(x2<<8)+x1);
Lcd_Write_Com_Data(0x0045,y1);
Lcd_Write_Com_Data(0x0046,y2);
Lcd_Write_Com_Data(0x004e,x1);
Lcd_Write_Com_Data(0x004f,y1);
Lcd_Write_Com(0x00,0x22);
}

void Lcd_Init(void)
{
digitalWrite(LCD_REST,HIGH);
delay(5);
digitalWrite(LCD_REST,LOW);
delay(15);
digitalWrite(LCD_REST,HIGH);
delay(15);

Lcd_Write_Com_Data(0x0000,0x0001); delay(1); //打开晶振
Lcd_Write_Com_Data(0x0003,0xA8A4); delay(1); //0xA8A4
Lcd_Write_Com_Data(0x000C,0x0000); delay(1);
Lcd_Write_Com_Data(0x000D,0x080C); delay(1);
Lcd_Write_Com_Data(0x000E,0x2B00); delay(1);
Lcd_Write_Com_Data(0x001E,0x00B7); delay(1);
Lcd_Write_Com_Data(0x0001,0x2B3F); delay(1); //驱动输出控制320*240 0x6B3F
Lcd_Write_Com_Data(0x0002,0x0600); delay(1);
Lcd_Write_Com_Data(0x0010,0x0000); delay(1);
Lcd_Write_Com_Data(0x0011,0x6070); delay(1); //0x4030 //定义数据格式 16位色
Lcd_Write_Com_Data(0x0005,0x0000); delay(1);
Lcd_Write_Com_Data(0x0006,0x0000); delay(1);
Lcd_Write_Com_Data(0x0016,0xEF1C); delay(1);
Lcd_Write_Com_Data(0x0017,0x0003); delay(1);
Lcd_Write_Com_Data(0x0007,0x0233); delay(1); //0x0233
Lcd_Write_Com_Data(0x000B,0x0000); delay(1);
Lcd_Write_Com_Data(0x000F,0x0000); delay(1); //扫描开始地址
Lcd_Write_Com_Data(0x0041,0x0000); delay(1);
Lcd_Write_Com_Data(0x0042,0x0000); delay(1);
Lcd_Write_Com_Data(0x0048,0x0000); delay(1);
Lcd_Write_Com_Data(0x0049,0x013F); delay(1);
Lcd_Write_Com_Data(0x004A,0x0000); delay(1);
Lcd_Write_Com_Data(0x004B,0x0000); delay(1);
Lcd_Write_Com_Data(0x0044,0xEF00); delay(1);
Lcd_Write_Com_Data(0x0045,0x0000); delay(1);
Lcd_Write_Com_Data(0x0046,0x013F); delay(1);
Lcd_Write_Com_Data(0x0030,0x0707); delay(1);
Lcd_Write_Com_Data(0x0031,0x0204); delay(1);
Lcd_Write_Com_Data(0x0032,0x0204); delay(1);
Lcd_Write_Com_Data(0x0033,0x0502); delay(1);
Lcd_Write_Com_Data(0x0034,0x0507); delay(1);
Lcd_Write_Com_Data(0x0035,0x0204); delay(1);
Lcd_Write_Com_Data(0x0036,0x0204); delay(1);
Lcd_Write_Com_Data(0x0037,0x0502); delay(1);
Lcd_Write_Com_Data(0x003A,0x0302); delay(1);
Lcd_Write_Com_Data(0x003B,0x0302); delay(1);
Lcd_Write_Com_Data(0x0023,0x0000); delay(1);
Lcd_Write_Com_Data(0x0024,0x0000); delay(1);
Lcd_Write_Com_Data(0x0025,0x8000); delay(1);
Lcd_Write_Com_Data(0x004f,0); //行首址0
Lcd_Write_Com_Data(0x004e,0); //列首址0
Lcd_Write_Com(0x00,0x22);

}

void Pant(char VH,char VL)
{
int i,j;
digitalWrite(LCD_CS,LOW);
Address_set(0,0,239,319);
for(i=0;i<320;i++)
{
for (j=0;j<240;j++)
{
Lcd_Write_Data(VH,VL);
}

}
digitalWrite(LCD_CS,HIGH);
}

void setup()
{
for(int p=22;p<42;p++)
{
pinMode(p,OUTPUT);
}
for(int p=2; p<7;p++)
pinMode(p,OUTPUT);
pinMode(DOUT,INPUT);
pinMode(IRQ,INPUT);

Lcd_Init();
Pant(0x00,0xff);
}

void loop()
{
Pant(0xff, 0xff);
delay(500);

unsigned char flag;
unsigned char ss[6];
unsigned int lx,ly;
spistar();

while(1)
{
flag = digitalRead(IRQ);
if (flag == 0)
{
digitalWrite(LCD_CS,LOW);
AD7843();
lx=((TP_X-340)*10/144);
//if(lx>237) lx=237;
ly=320-((TP_Y-320)/11);
//if(ly<0) ly=0;
Address_set(lx,ly,lx+2,ly+2);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
digitalWrite(LCD_CS,HIGH);
}
}
}
boxhead1990 is offline   Reply With Quote
Old 11-10-2012, 09:53 AM   #54
boxhead1990
Planted Tank Obsessed
 
PTrader: (0/0%)
Join Date: Aug 2011
Location: australia
Posts: 325
Default

oops forgot to copy the error thingy

anyways here it is



In file included from Jarduino_v1_1.cpp:79:
/writeAnything.h: In function 'int EEPROM_writeAnything(int, const T&)':
writeAnything.h:2: error: expected initializer before '*' token
writeAnything.h:5: error: 'p' was not declared in this scope
/writeAnything.h: In function 'int EEPROM_readAnything(int, T&)':
writeAnything.h:11: error: 'byte' was not declared in this scope
writeAnything.h:11: error: 'p' was not declared in this scope
writeAnything.h:11: error: expected primary-expression before ')' token
writeAnything.h:11: error: expected primary-expression before 'void'
Jarduino_v1_1.cpp: At global scope:
Jarduino_v1_1.pde:-1: error: 'ITDB02' does not name a type
Jarduino_v1_1.pde:-1: error: 'ITDB02_Touch' does not name a type
Jarduino_v1_1.pde:-1: error: expected constructor, destructor, or type conversion before 'extern'
Jarduino_v1_1.pde:-1: error: 'OneWire' does not name a type
Jarduino_v1_1.pde:-1: error: 'DallasTemperature' does not name a type
Jarduino_v1_1.pde:-1: error: 'DeviceAddress' does not name a type
Jarduino_v1_1.pde:-1: error: 'DeviceAddress' does not name a type
Jarduino_v1_1.pde:-1: error: 'DeviceAddress' does not name a type
Jarduino_v1_1.cpp: In function 'void SaveRTC()':
Jarduino_v1_1.pde:-1: error: 'RTC' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'DS1307_SEC' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'DS1307_MIN' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'DS1307_HR' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'DS1307_DATE' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'DS1307_MTH' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'DS1307_YR' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void TimeDateBar(boolean)':
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void checkTempC()':
Jarduino_v1_1.pde:-1: error: 'sensors' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'waterThermometer' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'hoodThermometer' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'sumpThermometer' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void clearScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void printButton(char*, int, int, int, int, boolean)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'SmallFont' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void printLedChangerP(char*, int, int, int, int, boolean)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'SmallFont' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void printLedChangerM(char*, int, int, int, int, boolean)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'SmallFont' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void printHeader(char*)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void setFont(boolean, byte, byte, byte, byte, byte, byte)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'SmallFont' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void waitForIt(int, int, int, int)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myTouch' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void waitForItSq(int, int, int, int)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myTouch' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void drawBarGraph()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void drawBarandColorValue()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void ledChangerGadget()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void TimeSaver(boolean)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void screenSaver()':
Jarduino_v1_1.pde:-1: error: 'myTouch' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void genSetSelect()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void feedingTimeOnOff()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void mainScreen(boolean)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void screenReturn()':
Jarduino_v1_1.pde:-1: error: 'myTouch' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void menuScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void clockScreen(boolean)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void timeChange()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void timeCorrectFormat()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void tempScreen(boolean)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void ledTestOptionsScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void testArrayScreen(boolean)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myTouch' was not declared in this scope
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.cpp: In function 'void testIndLedScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void ledColorViewScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void ledValuesScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void ledChangeScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void WaveMakerButtons()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void WaveMakerScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void viewWaveTimes()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void WaveMakerStatusScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myTouch' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void WaveMakerSettingsScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void synchronousSynch()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void viewWaveTimesPage()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void waveModePlusMinus()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void generalSettingsScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void autoFeederScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void feedingTimeOutput()':
Jarduino_v1_1.pde:-1: error: 'RTC' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'RTC' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'RTC' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void setFeederTimesScreen(boolean)':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void AboutScreen()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void processMyTouch()':
Jarduino_v1_1.pde:-1: error: 'myTouch' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'CENTER' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void setup()':
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'LANDSCAPE' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myTouch' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'PREC_MEDIUM' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'sensors' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'waterThermometer' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'hoodThermometer' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'sumpThermometer' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void loop()':
Jarduino_v1_1.pde:-1: error: 'myTouch' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'myGLCD' was not declared in this scope
Jarduino_v1_1.pde:-1: error: 'RTC' was not declared in this scope
boxhead1990 is offline   Reply With Quote
Old 11-10-2012, 10:17 AM   #55
Mike in MD
Algae Grower
 
Mike in MD's Avatar
 
PTrader: (0/0%)
Join Date: Aug 2012
Location: Maryland
Posts: 80
Default

Lets get the screen working and go from there.

First off, you need to go to file - examples - ITDB02_Touch - Touch calibration.

Go through the steps, and it will give you 4 numbers. Write these numbers down, you'll need them for the next step

Next, go to libraries - ITDB02_Touch Folder, open it and go to ITDB02_Touch.cpp
You want to edit this file. Open the file and look for this line:

#define PixSizeX -15.38
#define PixOffsX 213
#define PixSizeY 11.15
#define PixOffsY 311


Enter the 4 numbers that you got from your touch screen calibration here, then save the file.

Next, open the Jarduinio sketch, make sure this one line looks like below:

//TOUCH PANEL and ITDB02 MEGA SHIELD
//(Mega Shield utilizes pins 5V, 3V3, GND, 2-6, 20-41, & (50-53 for SD Card))
ITDB02 myGLCD(38,39,40,41); //May need to add "ITDB32S" depending on LCD controller
ITDB02_Touch myTouch(6,5,4,3,2);


Once you do this it should compile and be able to upload.

Mike
__________________

65 Gallon Tall with Cascade 1000, Wet/Dry and Fluidized bed filter, 3 media reactors, CO2 with CarbonDoser EXT5000 reactor, DIY 36 LED light with Typhon controller. In the works..DIY Touchscreen Aquarium Controller
Mike in MD is offline   Reply With Quote
Old 11-10-2012, 10:42 AM   #56
boxhead1990
Planted Tank Obsessed
 
PTrader: (0/0%)
Join Date: Aug 2011
Location: australia
Posts: 325
Default

I tryed that and it comes up with a million error codes aswell

Sent from my GT-S5830 using Tapatalk 2
boxhead1990 is offline   Reply With Quote
Old 11-10-2012, 10:43 AM   #57
Mike in MD
Algae Grower
 
Mike in MD's Avatar
 
PTrader: (0/0%)
Join Date: Aug 2012
Location: Maryland
Posts: 80
Default

Which LCD do you have? Also, do you have the LCD shield for the Mega?
__________________

65 Gallon Tall with Cascade 1000, Wet/Dry and Fluidized bed filter, 3 media reactors, CO2 with CarbonDoser EXT5000 reactor, DIY 36 LED light with Typhon controller. In the works..DIY Touchscreen Aquarium Controller
Mike in MD is offline   Reply With Quote
Old 11-10-2012, 10:51 AM   #58
boxhead1990
Planted Tank Obsessed
 
PTrader: (0/0%)
Join Date: Aug 2011
Location: australia
Posts: 325
Default

this is the following error codes

and i ordered it all as a kit off ebay


its all the same saitek kit that you listed as far as i no

and i even tryed the sketches that they list with it in a link and only one i could get to work with it was the one above

getting really frustrating thats for sure

this is the item description

Attention please:SD card does not support Mega 2560, but Arm, 51 MCU
please use the Arduino Software version is:Arduino 0023
We offer the sample code for arduino
Tip:
there is a film on the LCD, if there is scratch on the film when you receive the item, pls try to remove the film with your finger nail from the corner of the LCD, thanks
before get it to work, firstly need to connect the TFT shield with mega 2560, then connect LCD with TFT shiled , and need to put the sample code into Mega 2560. these points are necesssary.
Package include:
1x ATmega2560-16AU mega board for Arduino
1x LCD TFT Mega 2560 Shield v1.2
1x 3.2" TFT LCD Touch Screen Module
boxhead1990 is offline   Reply With Quote
Old 11-10-2012, 10:58 AM   #59
Mike in MD
Algae Grower
 
Mike in MD's Avatar
 
PTrader: (0/0%)
Join Date: Aug 2012
Location: Maryland
Posts: 80
Default

I would get a hold of the seller and let him know that you got a bad kit (mainboard). Most of the Chinese mainboard "knockoffs" have issues.

This is the Mainboard that you want to get.

__________________

65 Gallon Tall with Cascade 1000, Wet/Dry and Fluidized bed filter, 3 media reactors, CO2 with CarbonDoser EXT5000 reactor, DIY 36 LED light with Typhon controller. In the works..DIY Touchscreen Aquarium Controller
Mike in MD is offline   Reply With Quote
Old 11-10-2012, 11:01 AM   #60
boxhead1990
Planted Tank Obsessed
 
PTrader: (0/0%)
Join Date: Aug 2011
Location: australia
Posts: 325
Default

that looks exactly like the one i bought and i can get it to do all those blink things and stuff in examples


i just have no idea why i cant get it to load programes like everyone else
i mean i shoulnt have so many issues getting this jarduino stuff to simply just work
boxhead1990 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright Planted Tank LLC 2012