UK Reefs

General Interest => Automated Systems => Topic started by: tangtastic on November 27, 2011, 10:38:44 PM

Title: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on November 27, 2011, 10:38:44 PM
This was my second Arduino reef build controller , Uses the bigger atmega1280 board and a 3.2" tft colour touch screen

Please note that iteadstudio lcd is now using the ssd1289 controller and the sketch will need some modifying before it will work or you will just get a white screen
The parts

Mega 1280 board
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=50_51&products_id=207

3.2"TFT  shield
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=57_58&products_id=54

ITDB02 Arduino MEGA Shield v1.1
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=231

The pics

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN7041.jpg)

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN7043.jpg)

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN7044.jpg)

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN7045.jpg)

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN7046.jpg)



http://code.google.com/p/stilo/
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on November 27, 2011, 10:41:10 PM
Arduino reef build controller

Assembly is very easy just push together

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN7047.jpg)

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN7049.jpg)

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN7048.jpg)

Instructions are included in pdf file and the sketches are available in the link below



Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on November 27, 2011, 11:00:02 PM
Arduino reef build controller

Now the first sketch i used was a simple 2 ch one which was included above these are the pics for that sketch

(http://a5.sphotos.ak.fbcdn.net/hphotos-ak-ash4/374290_10150401787788097_670163096_8569334_533413988_n.jpg)

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN7038-1.jpg)

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN3550.jpg)

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN3548.jpg)

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN3546.jpg)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on November 27, 2011, 11:05:54 PM
Arduino reef build controller

This is the modified Stilo sketch which is also uploaded on here called Jarduino Code

With this code you can have 6 leds and a moon phase running

The only difference is the front screen at this time

(http://i768.photobucket.com/albums/xx326/ktnch/tft%20arduino/DSCN7037-1.jpg)

(http://a7.sphotos.ak.fbcdn.net/hphotos-ak-ash4/301386_10150356877563097_670163096_8362700_769217460_n.jpg)


You still need all the sketches and folders from the stilo but need to add the one attached

A huge thank you to TheDOdblG for the code, the code is not to be permitted to make any money off or to be commercialized

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: apollo13 on December 31, 2011, 06:29:01 PM
Hi there,

I have just finished my DIY LED build and was going to use a pre made Typhon controller. It has 4 channels 2 white and 2 blue which I want to control seperatly. I have used the meanwell eln 60 48ps which use 10v PWM.

This looks much nicer but I know nothing about Arduino coding, I cant seem to find the links to the coding in your post.

I have just tried the links in Saltys Arduinos for dummies and they seem dead??

Any help would be great.
Lee

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on December 31, 2011, 08:04:47 PM
A warm welcome to you, the main code the first one you need is the stilo code that will gove you a simple 2 led sketch here http://code.google.com/p/stilo

for the sketch i have used above you will need to ask TheDOdblG for the code nicely

Look forward to seeing some pics

regards
kev

 
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: apollo13 on January 01, 2012, 12:49:07 PM
Happy new year Kev!

Thanks for the reply, I had a PM with Saltydog but he was under the impression that you could only get two channels to store in the EEPROM if there was a power failure??

I will have to fire a PM to TheDOdblG and see what he says. How are you finding the controller? Easy to use and navigate? My build is logged on another forum I'm assuming is not the done thing to post links to it so I will transfer it over for you guys to see. (Just realised you use photobucket on here so it may take some time!)

Lee.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 14, 2012, 01:18:45 AM
You can also link from facebook and the site has it own picture uploader, share the build with us got a feeling yours will be done before mine lol

with the arduino code you can manually put the lighting times in by the pc when uploading the sketch but then can only change the whites and blue channels on the arduino, in the event of a powe rcut the rtc chip should still work of its back up battery so all light times should still be stored on the controller

The lads done a great job with the other build hes a wizz with arduinos


kev
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 15, 2012, 12:01:00 AM
Could one of these arduino mega builds monitor (and control) ORP and Ph probes.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: JP-79er on January 15, 2012, 08:47:00 AM
Could one of these arduino mega builds monitor (and control) ORP and Ph probes.

Good question what monitoring capabilities does this have?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 15, 2012, 10:50:42 AM
yes it can budd, saltydog made one shall send him a pm to reply

kev



Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 15, 2012, 10:54:14 AM
This is the next project when i have completed the led build


http://www.youtube.com/watch?v=jOAqTpAy8-g&feature=related (http://www.youtube.com/watch?v=jOAqTpAy8-g&feature=related)

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: JP-79er on January 15, 2012, 12:45:32 PM
if it can do:

ORP (as an ozone controller)
Density
pH
temp
and control lighting

i would build one myself
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 20, 2012, 10:33:12 PM
I finally have all the boards, after a silly mistake on ordering the wrong ITDB02 shield  :-[

I've downloaded the latest arduino v1.0 for windows, running it on a windows 7 64bit
I've downloaded jarduino from this thread.
I've downloaded the library files for the touch screen, and copied them into the libraries folder under the arduino files.
I downloaded the stilo code and copied the libraries over too.

When verifying the jarduino sketch , I get:

C:\Arduino\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:76:22: error: WProgram.h: No such file or directory
C:\Arduino\arduino-1.0\libraries\DS1307/DS1307.h:12:24: error: WConstants.h: No such file or directory

I've checked and neither of these files exist at the identified locations.

There are a bundle more errors but they are also related to the screen, so i'm hoping on resolution of this initial query, it may just solve a shed load more of the errors.

I've done a wee bit of googling, and it advises to change some of the coding, but I thought I would be better checking here first to get the experienced advice  :whoo:

This is my first foray into arduino, so I would appreciate the assistance.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 21, 2012, 08:58:12 AM
Pm me your email and i shall forward my library if i can, i did have your email but lost all emails for the last 7 years !

Shall do my best to get you sorted budd

Kev


Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 21, 2012, 09:05:13 AM
that error code is just saying the files are in the wrong place

kev
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 21, 2012, 10:28:52 AM
Cheers Kev, looking forward to getting this project started properly at last  :whoo:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 21, 2012, 01:39:42 PM
Sent you the Arduino library files from mine extract the rar files and place in the library folder, let us know bud

Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: atollaquatics on January 21, 2012, 06:56:02 PM
How easy is it to set one of these up with 4+ led channels what can be dimmed?
Do you have to use special drivers with these?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 21, 2012, 08:59:02 PM
The controller is the easy part, it starts getting complicated when you start looking at which leds and pwm drivers, best to copy a led build then all the hard work is done lol

kev
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: LiquidArts on January 21, 2012, 09:04:00 PM
if it can do:

ORP (as an ozone controller)
Density
pH
temp
and control lighting

i would build one myself

I'll work out a way to build pH and ORP sensors as a stackable shield here shortly.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 21, 2012, 11:58:02 PM
if it can do:

ORP (as an ozone controller)
Density
pH
temp
and control lighting

i would build one myself

I'll work out a way to build pH and ORP sensors as a stackable shield here shortly.
I'm still working at getting mine running with the jarduino code, big thank you to tangtastic for his help, i'm now running arduino 0022, and managing to compile without errors, but still no display on the screen  ??? it stays white. I've copied all library files into the arduino 0022 libraries folder etc.  I'm a little lost  :'(

I'll look forward to the orp and ph monitoring, will be good to be able to check from a single display, and of course that will then lead to wireless connectivity and rmote alarms/monitoring  :41: no doubt "but for who  :P
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: LiquidArts on January 22, 2012, 12:41:19 AM
So I just finished up the Mega Shield version of my pH/ORP Sensor. I've uploaded the design files to Batch PCB for single PCB manufacturing.
http://www.batchpcb.com/index.php/Products/77294
Soon as I can i'll update with the parts listing for it but is the same as the smaller one in my store. I only make a $5.00 from each of these boards if one were to DIY it themselves.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 01:06:56 AM
So I just finished up the Mega Shield version of my pH/ORP Sensor. I've uploaded the design files to Batch PCB for single PCB manufacturing.
http://www.batchpcb.com/index.php/Products/77294
Soon as I can i'll update with the parts listing for it but is the same as the smaller one in my store. I only make a $5.00 from each of these boards if one were to DIY it themselves.
Once I get my basic led controller sorted i'll look at one of these, i'd like to maximise the potential of the controller.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 10:03:09 AM
Have a look in the sketch bud and see if these are the settings for the screen

ITDB02        myGLCD(38,39,40,41);

Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 10:17:15 AM
Ian shove a link up to the screen you bought budd

Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 10:56:17 AM
This is all the compatible items for the sketch found on this thread

http://www.henningkarlsen.com/electronics/p_itdb02_analog_clock.php

Mega shield
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=231

Lcd tft
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=57_58&products_id=54





Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 02:22:06 PM
Wasn't sure whether to keep going in this thread or start a new seperate one rather than hijack this one. ???

Mega 2560
http://www.ebay.co.uk/itm/Arduino-MEGA-2560-ATMEGA2560-AVR-USB-Board-/280776636193?pt=LH_DefaultDomain_0&hash=item415f977721

ITDB02 shield
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=231

TFT screen
http://www.ebay.co.uk/itm/280575347222?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649



(http://i1155.photobucket.com/albums/p541/blitzerroo/front-view.jpg)

(http://i1155.photobucket.com/albums/p541/blitzerroo/rear-view.jpg)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 02:37:03 PM
its up to you budd keep it going on this one if you want

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 03:03:21 PM
Well I guess it's pretty much the same hardware and code that i'm trying to get working so maybe this thread is ok.

Not making much headway at the minute, i'm sure I saw a thread talking about the white screen somewhere, will keep looking, hoping in the meantime it gets resolved here.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 03:19:14 PM
just been on to Henning Karlsen  and got this reply

Hi Kev,

I believe that this module should be compatible with my ITDB02_Graph16 library, but as the HX8347-A controller was discontinued a while back I suspect that you have received a SSD1289-based module. There are a lot of eBay sellers that don't know what they are selling...

Try init'ing the module as an ITDB02-3.2S module (model-code: ITDB32S).


Regards
Henning Karlsen


Looking at your screen looks the exact same as mine budd, on the very small black think its a 10 pin chip can you read the numbers off it budd and i shall try to read mine as well

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 03:37:53 PM
Had no chance with my eyesight, but my Son says it's

XPT 20461013

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 03:42:22 PM
I am still struggling lol, still talking to Henning about it, looks like the lcd pin-outs are the same just the controller may be different

we shall sort it budd soon

Kev

 

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 04:17:48 PM
I am still struggling lol, still talking to Henning about it, looks like the lcd pin-outs are the same just the controller may be different

we shall sort it budd soon

Kev
Really hope so, it's a bit like a pig looking at a watch at the moment  :41:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 04:23:22 PM
Post the top part of your sketch up budd like this one

//-----------------------------------------------------------------------------------
// Jarduino Aquarium Controller v.1.0
//   Main code based on Stilo
//     http://code.google.com/p/stilo/
//-----------------------------------------------------------------------------------
//
// Libraries used:
//   ITDB02_Graph16 and ITDB02_Touch (C)2010 Henning Karlsen
//     web: http://www.henningkarlsen.com/electronics
//   libds1307 by Matt Joyce for Maxim DS1307 RTC chip
//     http://code.google.com/p/libds1307/
//   Dallas Temperature Control Library
//     http://milesburton.com/wiki/index.php?title=Dallas_Temperature_Control_Library
//
// LED controlling algorithm is based on Krusduino by Hugh Dangerfield
//   http://code.google.com/p/dangerduino/
//
//-----------------------------------------------------------------------------------
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation version 3
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
//-----------------------------------------------------------------------------------


#include <ITDB02_Graph16.h>
#include <avr/pgmspace.h>
#include <ITDB02_Touch.h>
#include <Wire.h>
#include <EEPROM.h>
#include "writeAnything.h"
#include <DS1307.h>
#include <OneWire.h>
#include <DallasTemperature.h>

// Change pins for screen and touch panel if needed
ITDB02        myGLCD(38,39,40,41);     // Remember to add ASPECT_16x9 if you are using an ITDB02-3.2WC!
ITDB02_Touch  myTouch(6,5,4,3,2);
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: LiquidArts on January 22, 2012, 05:40:13 PM
Well since your already chatting with Henning I guess I don't have too.....lol. But i will look into more later on tonight to figure out a solution if there is one.I know that (Himax HX8347-A) was the "original" chip for the screen but the driver I think was the SSD1289 one.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 05:43:49 PM
Try to amend the code for this one Ian

ITDB02             myGLCD(19,18,17,16);     
ITDB02_Touch  myTouch(6,5,4,3,2);

Kev


Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 06:03:07 PM
Ignore my comment above and add this comment should work

ITDB02        myGLCD(38,39,40,41, ITDB32S);

Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 07:04:52 PM
Ignore my comment above and add this comment should work

ITDB02        myGLCD(38,39,40,41, ITDB32S);

Kev
Hi Kev,

I changed the line as advised, now getting font error:

Jarduino_1.cpp: In function 'void printButton(char*, int, int, int, int, boolean)':
Jarduino_1:283: error: 'class ITDB02' has no member named 'fontSize'
Jarduino_1:283: error: 'FONT_LARGE' was not declared in this scope
Jarduino_1:289: error: 'class ITDB02' has no member named 'fontSize'
Jarduino_1:289: error: 'FONT_SMALL' was not declared in this scope
Jarduino_1.cpp: In function 'void setFont(boolean, byte, byte, byte, byte, byte, byte)':
Jarduino_1:309: error: 'class ITDB02' has no member named 'fontSize'
Jarduino_1:309: error: 'FONT_LARGE' was not declared in this scope
Jarduino_1:311: error: 'class ITDB02' has no member named 'fontSize'
Jarduino_1:311: error: 'FONT_SMALL' was not declared in this scope
Jarduino_1.cpp: In function 'void clockScreen(boolean)':
Jarduino_1:751: error: 'class ITDB02' has no member named 'fontSize'
Jarduino_1:751: error: 'FONT_SMALL' was not declared in this scope
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 07:30:44 PM
Them error codes shouldnt come on humm.

just sent you my ITDB02_Graph16 just extract and shove in the library folder

also change the "ITDB02        myGLCD(38,39,40,41, ITDB32S);" back to  "ITDB02        myGLCD(38,39,40,41); "

When i just tried to use the ITDB02        myGLCD(38,39,40,41, ITDB32S) all i got was itdb02s not delered in scope none of the other ones budd

This has got me baffled
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 07:39:52 PM
I extracted the files you sent etc, and got a one liner error, then I read this thread and noticed the code change ... now different errors:

ITDB02_Graph16\DefaultFonts.c.o:(.progmem.data+0x478): multiple definition of `BigFont'
ITDB02_Graph16\BigFont.c.o:(.progmem.data+0x0): first defined here
c:/arduino/arduino-0022/arduino-0022/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: Warning: size of symbol `BigFont' changed from 3040 in ITDB02_Graph16\BigFont.c.o to 3044 in ITDB02_Graph16\DefaultFonts.c.o
ITDB02_Graph16\SmallFont.c.o:(.progmem.data+0x0): multiple definition of `SmallFont'
ITDB02_Graph16\DefaultFonts.c.o:(.progmem.data+0x0): first defined here
c:/arduino/arduino-0022/arduino-0022/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: Warning: size of symbol `SmallFont' changed from 1144 in ITDB02_Graph16\DefaultFonts.c.o to 1140 in ITDB02_Graph16\SmallFont.c.o

This is over my head .... i'm a puppet in your hands
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 07:46:32 PM
Lets start again, delete the arduino software or download arduino 0021

then download

http://www.henningkarlsen.com/electronics/p_itdb02_analog_clock.php


   ITDB02_Graph16 library
   ITDB02_Touch library
   DS1307 library

lets try to get this clock sketch working first budd

kev

 


Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 07:49:04 PM
Lets start again, delete the arduino software or download arduino 0021

then download

http://www.henningkarlsen.com/electronics/p_itdb02_analog_clock.php


   ITDB02_Graph16 or ITDB02_Graph library
   ITDB02_Touch library
   DS1307 library

lets try to get this clock sketch working first budd

kev

I read the article and deleted the graph16 library, then extracted yours .... compiled ok, and uploaded but still white screen.

Anyway, i'll give this a whirl , back to basics :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 07:53:33 PM
Cool with a bit of luck you should have this on the screen

http://www.youtube.com/watch?v=etp7DuDwPTE&feature=player_embedded#! (http://www.youtube.com/watch?v=etp7DuDwPTE&feature=player_embedded#!)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 08:07:31 PM
Cool with a bit of luck you should have this on the screen

http://www.youtube.com/watch?v=etp7DuDwPTE&feature=player_embedded#! (http://www.youtube.com/watch?v=etp7DuDwPTE&feature=player_embedded#!)

I wish  :confuse:

Screen stays white, then after 3-5 seconds dims, then white, repeats this .....
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 08:15:27 PM
did you get the sketch from the bottom of this ?

http://www.henningkarlsen.com/electronics/p_itdb02_analog_clock.php


Download sketch: ITDB02_Analog_Clock.rar    (Filesize is 3.22 KiB. Downloaded 440 times)

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 08:15:50 PM
Got mine out now as well trying to get it sorted for you
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 08:17:02 PM
did you get the sketch from the bottom of this ?

http://www.henningkarlsen.com/electronics/p_itdb02_analog_clock.php


Download sketch: ITDB02_Analog_Clock.rar    (Filesize is 3.22 KiB. Downloaded 440 times)

Yep, downloaded, compiled, uploaded and blink blink blink
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 08:17:56 PM
Got mine out now as well trying to get it sorted for you

Appreciate the help Kev, only if you are feeling up to it.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 08:23:59 PM
dont mind budd, I have a feeling were going to have to ring friends lol

Shall get saltydog on it as well and jamie i am sure we can sort it cant be that much wrong

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 08:26:26 PM
Got the clock going ....   :whoo:

Was doing a bit of digging and added the ITDB32S

ITDB02        myGLCD(38,39,40,41,ITDB32S);   // Remember to add ASPECT_16x9 if you are using an ITDB02-3.2WC!

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 08:27:50 PM
and the touch screen appears to work .
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 08:29:11 PM
and the touch screen appears to work .

well almost ... not touching in the right place way off
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 08:33:51 PM
right bud we can sort that

go to file examples then on to idb02 touch calibrate

when you get the sketch on the screen alter for it to read like this

// ITDB02_Touch_Calibration (C)2010 Henning Karlsen
// web: http://www.henningkarlsen.com/electronics
//
// This program can be used to calibrate the touchscreen
// of the ITDB02 modules.
// This program requires the ITDB02_Graph library (8bit mode)
// or ITDB02_Graph16 (16bit mode).
//
// It is assumed that the ITDB02 module is connected to a
// ITDB02 Shield, a ITDB02 Mega Shield or that you know how
// to change the pin numbers in the setup.
//
// Instructions will be given on the display.
//

// Remember to change the next line if you are using as 16bit module!
#include <ITDB02_Graph16.h>
#include <ITDB02_Touch.h>

// Declare which fonts we will be using
extern uint8_t SmallFont[];

// Uncomment the next two lines for the ITDB02 Shield
//ITDB02        myGLCD(38,39,40,41);
//ITDB02_Touch  myTouch(15,10,14,9,8);

// Uncomment the next two lines for the ITDB02 Mega Shield
ITDB02        myGLCD(38,39,40,41,ITDB32S);   // Remember to add ASPECT_16x9 if you are using an ITDB02-3.2WC!
ITDB02_Touch  myTouch(6,5,4,3,2);
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 08:38:40 PM
When you get that sketch on you press the touch screen to continue then press on the highighed squares keep them pressed for around 1-2 secs then they will flash.

When you have done all of them you will have something like this

pixsize x  -15.03
pixoffs x 298
pixsize y 10.74
pixoffsy 372

Post it up when you have done it bud
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 08:48:36 PM
All good  :whoo:

#define PixSizeX   -15.3
#define PixOffsX   205
#define PixSizeY   11.05
#define PixOffsY   315

I set the time and date, unplugged USB and it retained values.

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 08:53:16 PM
right then go in to the library folder in arduino 0022 click on ITDB02 Touch

you want to open the file ITDB02_Touch .cpp

than amend yours to

/*
  ITDB02_Touch.cpp - Arduino library support for ITDB02 Touch function
  Copyright (C)2010 Henning Karlsen. All right reserved
 
  Basic functionality of this library are based on the demo-code provided by
  ITead studio. You can find the latest version of the library at
  http://www.henningkarlsen.com/electronics

  This library has been made for the 2.4" TFT LCD Screen Module: ITDB02-2.4,
  the 3.2" TFT LCD Screen Module: ITDB02-3.2 and the 3.2" Wide-screen module
  ITDB02-3.2WC by ITead studio.

  If you make any modifications or improvements to the code, I would appreciate
  that you share the code with me so that I might include it in the next release.
  I can be contacted through http://www.henningkarlsen.com/electronics/contact.php

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

  Version:   1.0  - Sep  13 2010  - initial release
          1.01 - Sep  18 2010  - Added example: ITDB02_Touch_ButtonTest
          1.1  - Oct   7 2010  - Fixed incompatibility with ITDB02-3.2
          1.2  - Oct  12 2010  - Added support for ITDB02-3.2WC
          1.21 - Mar  27 2011  - Updated some of the examples to be
                           compatible with ITDB02_Graph(16) v4.0

*/

#define PixSizeX   -15.3
#define PixOffsX   205
#define PixSizeY   11.05
#define PixOffsY   315


#include "WProgram.h"
#include "ITDB02_Touch.h"
#include <avr/pgmspace.h>

ITDB02_Touch::ITDB02_Touch(byte tclk, byte tcs, byte din, byte dout, byte irq)
{
    T_CLK = tclk;
    T_CS  = tcs;
    T_DIN = din;
    T_DOUT= dout;
    T_IRQ = irq;
}

void ITDB02_Touch::InitTouch(byte orientation)


.....


then click on save
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 08:54:28 PM
After you have done that upload the clock sketch again and see if the touch screen is ok

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 08:58:19 PM
I've been working under 0021 for this time clock test, and I have already saved the cpp file. Reloaded to arduino and working great.

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 09:04:25 PM
I am so relieved that the screen is actually displaying something, TBH I always thought it was a coding/library type issue, but not being fluent the doubt was always there.

 :bravo_2: Kev, you are a patient star

Now I need to work out what version of arduino, what library files etc I need to get the Jarduino code running, are there any plans to update the jarduino to work with arduino v1.0 (I assume is the latest release)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 09:09:13 PM
Just sorting the sketch out 2 secs budd
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 09:18:49 PM
Right when we add the rtc 1307 sketch and the graph16 sketch the new ones are different from the old ones hence loosing the big and small fonts

now we need to shove the old sketch of rtc1307 and the graph16 i shall send them by email now, all should should have to do is add

ITDB02        myGLCD(38,39,40,41,ITDB32S);

and we should be ok

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 09:40:11 PM
Just tried it on 0021

In file included from C:\test arduino\arduino-0021\libraries\EEPROM\EEPROM.cpp:24:
c:/test arduino/arduino-0021/hardware/tools/avr/lib/gcc/../../avr/include/avr/eeprom.h: In function 'void eeprom_read_block(void*, const void*, size_t)':
c:/test arduino/arduino-0021/hardware/tools/avr/lib/gcc/../../avr/include/avr/eeprom.h:290: error: ISO C++ forbids incrementing a pointer of type 'void*'
c:/test arduino/arduino-0021/hardware/tools/avr/lib/gcc/../../avr/include/avr/eeprom.h:290: error: ISO C++ forbids incrementing a pointer of type 'const void*'
c:/test arduino/arduino-0021/hardware/tools/avr/lib/gcc/../../avr/include/avr/eeprom.h:290: error: invalid conversion from 'const void*' to 'const uint8_t*'
c:/test arduino/arduino-0021/hardware/tools/avr/lib/gcc/../../avr/include/avr/eeprom.h:290: error:   initializing argument 1 of 'uint8_t eeprom_read_byte(const uint8_t*)'
c:/test arduino/arduino-0021/hardware/tools/avr/lib/gcc/../../avr/include/avr/eeprom.h: In function 'void eeprom_write_block(const void*, void*, size_t)':
c:/test arduino/arduino-0021/hardware/tools/avr/lib/gcc/../../avr/include/avr/eeprom.h:398: error: ISO C++ forbids incrementing a pointer of type 'void*'
c:/test arduino/arduino-0021/hardware/tools/avr/lib/gcc/../../avr/include/avr/eeprom.h:398: error: ISO C++ forbids incrementing a pointer of type 'const void*'
c:/test arduino/arduino-0021/hardware/tools/avr/lib/gcc/../../avr/include/avr/eeprom.h:398: error: invalid conversion from 'void*' to 'uint8_t*'
c:/test arduino/arduino-0021/hardware/tools/avr/lib/gcc/../../avr/include/avr/eeprom.h:398: error:   initializing argument 1 of 'void eeprom_write_byte(uint8_t*, uint8_t)'

going to try 0022

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 09:43:56 PM
Just tried it on 0022

Jarduino_1:43: error: 'ITDB32S' was not declared in this scope

I extracted the 1307 and graph16 libraries you sent ... perhaps theres a library I have missed.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 10:03:15 PM
I know what it is now, the new ITDB02 graph 16 supports
      -   HX8347-A
      -   ILI9325D
      -   ILI9327
      -   SSD1289

and the old one just supports the std one

we will need to amend the new graph 16 to make it work with the Jarduino_1  sketch

or maybe a better way amend the old ITDB02 graph 16 to support your screen ITDB32S


you can see the new sketch referes to the 32s

#include "WProgram.h"
#include "ITDB02_Graph16.h"
#include <avr/pgmspace.h>
#include <pins_arduino.h>

#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))

ITDB02::ITDB02()
{
}

ITDB02::ITDB02(int RS, int WR,int CS, int RST, byte model)
{
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
   DDRA = 0xFF;
   DDRC = 0xFF;
#else
   DDRD = 0xFF;
   DDRB |= 0x3F;
   DDRC |= 0x03;
#endif
   P_RS   = portOutputRegister(digitalPinToPort(RS));
   B_RS   = digitalPinToBitMask(RS);
   P_WR   = portOutputRegister(digitalPinToPort(WR));
   B_WR   = digitalPinToBitMask(WR);
   P_CS   = portOutputRegister(digitalPinToPort(CS));
   B_CS   = digitalPinToBitMask(CS);
   P_RST   = portOutputRegister(digitalPinToPort(RST));
   B_RST   = digitalPinToBitMask(RST);
   pinMode(RS,OUTPUT);
   pinMode(WR,OUTPUT);
   pinMode(CS,OUTPUT);
   pinMode(RST,OUTPUT);

   switch (model)
   {
      case ITDB32:
      case ITDB32S:  // Also TFT01_32
      case TFT01_24:
         disp_y_size=319;
         break;
      case ITDB32WC:  // Also TFT01_32W
         disp_y_size=399;
         break;
   }
   display_model=model;
}

void ITDB02::LCD_Writ_Bus(char VH,char VL)
{   
   byte data, temp;

#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
   PORTA = VH;
   PORTC = VL;
#else
   PORTD = VH;
   PORTC &= 0xFC;
   PORTC |= (VL>>6) & 0x03;
   PORTB =  VL & 0x3F;
#endif
   *P_WR &= ~B_WR;
   *P_WR |= B_WR;
}

void ITDB02::LCD_Write_COM(char VL) 
{   
   *P_RS &= ~B_RS;
   LCD_Writ_Bus(0x00,VL);
}

void ITDB02::LCD_Write_DATA(char VH,char VL)
{
   *P_RS |= B_RS;
   LCD_Writ_Bus(VH,VL);
}

void ITDB02::main_W_com_data(char com1,int dat1)
{
     LCD_Write_COM(com1);
     LCD_Write_DATA(dat1>>8,dat1);
}


where as the old one doesnt



  (*) Initial release is v2.0 to keep it in sync with the 8bit library.
*/



#include "WProgram.h"
#include "ITDB02_Graph16.h"
#include <avr/pgmspace.h>

#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))

extern unsigned char SmallFont[];
#ifndef _NO_BIG_FONT_
   extern unsigned char BigFont[];
#endif

ITDB02::ITDB02(int RS, int WR,int CS, int RST, byte aspect)
{
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
   DDRA = 0xFF;
   DDRC = 0xFF;
#else
   DDRD = 0xFF;
   for (byte i=8; i<16; i++)
      pinMode(i, OUTPUT);
#endif
   pinMode(RS,OUTPUT);
   pinMode(WR,OUTPUT);
   pinMode(CS,OUTPUT);
   pinMode(RST,OUTPUT);
   LCD_RS=RS;
   LCD_WR=WR;
   LCD_CS=CS;
   LCD_REST=RST;

   switch (aspect)
   {
      case ASPECT_4x3:
         disp_y_size=319;
         break;
      case ASPECT_16x9:
         disp_y_size=399;
         break;
   }
}

void ITDB02::LCD_Writ_Bus(char VH,char VL)
{   
   byte data, temp;

#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
   PORTA = VH;
   PORTC = VL;
#else
   PORTD = VH;
   if ((VL & 128)!=0)
      sbi(PORTC, 1);
   else
      cbi(PORTC, 1);
   if ((VL & 64)!=0)
      sbi(PORTC, 0);
   else
      cbi(PORTC, 0);
   if ((VL & 32)!=0)
      sbi(PORTB, 5);
   else
      cbi(PORTB, 5);
   if ((VL & 16)!=0)
      sbi(PORTB, 4);
   else
      cbi(PORTB, 4);
   if ((VL & 8)!=0)
      sbi(PORTB, 3);
   else
      cbi(PORTB, 3);
   if ((VL & 4)!=0)
      sbi(PORTB, 2);
   else
      cbi(PORTB, 2);
   if ((VL & 2)!=0)
      sbi(PORTB, 1);
   else
      cbi(PORTB, 1);
   if ((VL & 1)!=0)
      sbi(PORTB, 0);
   else
      cbi(PORTB, 0);
#endif

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 22, 2012, 10:54:08 PM
 :a102: it's one for tomorrow night as I have work in the morning, looking promising with all your good work Kev ....  :You_Rock_Emoticon:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 22, 2012, 11:05:43 PM
Need to get sat down with saltydog and sort this one, the code needs amending under the ITDB02_Graph16.cpp

Would be even better if we had a screen same as yours then we can sort it much easier lol

we will get there Ian

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on January 23, 2012, 05:11:04 AM
Hello all from New Zealand  ^-^

After dealing with saltydog I thought I'd join up with you lot and get amongst it so I have ordered said touch screen and shield along with a Mega.... Having already built and proved a Arduino reef controller with ethernet its time to take it to the next level.

Look forward to tagging along  with this build

Robert

http://kiwikidstank.dyndns.info:81/ (http://kiwikidstank.dyndns.info:81/) to see my controller on line
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 23, 2012, 09:30:30 AM
Good to have you on board Robert, get some build pics up the more the merrier

regards

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 23, 2012, 01:31:51 PM
Need to get sat down with saltydog and sort this one, the code needs amending under the ITDB02_Graph16.cpp

Would be even better if we had a screen same as yours then we can sort it much easier lol

we will get there Ian

kev

I'm more than happy to send my screen over if it helps.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 23, 2012, 01:57:34 PM
Lets just wait for henning or salty dog to get back to us failing that then its an option mind you would be easier just sending you mine screen and arduino as its all set up will find out soon budd

Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 23, 2012, 02:42:19 PM
How long ago did you but that screen Ian ?

The controller in the screen for it to work has to be a HX8347 it might be worth sending the lad a message on ebay telling him the screen has the wrong controller in he has sent you one with an SSD1289 controller


This is another seller selling the compatible screen

http://www.ebay.co.uk/itm/170758835235?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649
 
HX8347-A 240RGBx320 a-Si 262K colour TFT controller

Shall start looking at the sketch tonight when the kids are in bed but will need help by saltydog

Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 23, 2012, 04:37:52 PM
How long ago did you but that screen Ian ?

The controller in the screen for it to work has to be a HX8347 it might be worth sending the lad a message on ebay telling him the screen has the wrong controller in he has sent you one with an SSD1289 controller


This is another seller selling the compatible screen

http://www.ebay.co.uk/itm/170758835235?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649
 
HX8347-A 240RGBx320 a-Si 262K colour TFT controller

Shall start looking at the sketch tonight when the kids are in bed but will need help by saltydog

Kev

The screen was purchased just before christmas, i'll drop them a post, doubt it'll have any effect though.

Will catch you later, a few things to do.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: LiquidArts on January 23, 2012, 09:41:02 PM
Well i've had no luck with that said TFT screen. Henning wrote the libraries for the SSD chip so in order to include this one am sure he'll have to re-write it to include that one or create a new library.   :41: Welcome aboard Robert. Am waiting for the postal carrier to show up within the next 4 hours and then you'll be able to track your pkg.

Martin
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 23, 2012, 09:50:21 PM
Well i've had no luck with that said TFT screen. Henning wrote the libraries for the SSD chip so in order to include this one am sure he'll have to re-write it to include that one or create a new library.   :41: Welcome aboard Robert. Am waiting for the postal carrier to show up within the next 4 hours and then you'll be able to track your pkg.

Martin
Easiest solution then is to get the proper screen from iteadstudio then .... ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 23, 2012, 10:07:28 PM
Well i've had no luck with that said TFT screen. Henning wrote the libraries for the SSD chip so in order to include this one am sure he'll have to re-write it to include that one or create a new library.   :41: Welcome aboard Robert. Am waiting for the postal carrier to show up within the next 4 hours and then you'll be able to track your pkg.

Martin
Easiest solution then is to get the proper screen from iteadstudio then .... ?

I'm a little confused, the link in this thread to iteastudio screen shows
"The Screen include a controller SSD1289, its 16bit data interface , easy to drive by many MCU like STM32 ,AVR and 8051."
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 23, 2012, 10:53:31 PM
Martin, Hennings new code includes four types of screen including Ians as we got the clock sketch working

When we replace the new sketches for the old ones then the "small_font" "large_font" "rtc1307" and i"tbo2" comes up with errors

i have had a look and the whole program has changed been rewritten and the fonts moved to another location so links missing

I downloaded the 0022 software and shoved all of his sketches on and worked ok for his clock like Ians does but as soon as i put the jarduino code on loads of errors, try it with yours budd

Kev
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 23, 2012, 10:58:10 PM
Ian it does include the screens controller infact all of these ones

Supported controllers:
      -   HX8347-A
      -   ILI9325D
      -   ILI9327
      -   SSD1289

But because the jarduino sketch is saying its a different screen you need to amend that but henning has made it so you need the new rtc1307 sketch and again thats wrote different to the old one so the jadruino is looking for links that have been removed and not to sure if its easier starting to look at the jarduino code to alter the rtc, screen, graphs and fonts or alter the graph16 of the old software to include your screen.

Not the best trying to explain it whilst on tramadol sorry budd

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 23, 2012, 11:02:06 PM
This is the old ITDB02_GRPAH16


 

  This library has been made especially for the 3.2" TFT LCD Screen Module:
  ITDB02-3.2 by ITead studio. This library has been designed to use 16bit mode,
  and it should work with the 2.4" Module in 16bit mode as well, although I do
  not have one, so this is untested.

  If you make any modifications or improvements to the code, I would appreciate
  that you share the code with me so that I might include it in the next release.
  I can be contacted through http://www.henningkarlsen.com/electronics/contact.php

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.
 

  Version:   2.0  - Aug  15 2010  - initial release
          2.1  - Sep  30 2010  - Added Arduino Mega compatibility.
                                    Fixed a bug with CENTER and RIGHT in LANDSCAPE mode.
                           Fixed a bug in printNumI and printNumF when the
                           number to be printed was 0.
          2.2  - Oct  14 2010  - Added support for ITDB02-3.2WC
                           Added drawBitmap() with its associated tool
          2.3  - Nov  24 2010  - Added Arduino Mega2560 compatibility
                           Added support for rotating text and bitmaps
          2.4  - Jan  18 2011  - Fixed an error in the requirements
          2.5  - Jan  30 2011  - Added loadBitmap()
                           Optimized drawBitmap() when not using rotation

  (*) Initial release is v2.0 to keep it in sync with the 8bit library.
*/



#include "WProgram.h"
#include "ITDB02_Graph16.h"
#include <avr/pgmspace.h>

#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))

extern unsigned char SmallFont[];
#ifndef _NO_BIG_FONT_
   extern unsigned char BigFont[];
#endif

ITDB02::ITDB02(int RS, int WR,int CS, int RST, byte aspect)
{
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
   DDRA = 0xFF;
   DDRC = 0xFF;
#else
   DDRD = 0xFF;
   for (byte i=8; i<16; i++)
      pinMode(i, OUTPUT);
#endif
   pinMode(RS,OUTPUT);
   pinMode(WR,OUTPUT);
   pinMode(CS,OUTPUT);
   pinMode(RST,OUTPUT);
   LCD_RS=RS;
   LCD_WR=WR;
   LCD_CS=CS;
   LCD_REST=RST;

   switch (aspect)
   {
      case ASPECT_4x3:
         disp_y_size=319;
         break;
      case ASPECT_16x9:
         disp_y_size=399;
         break;
   }
}

void ITDB02::LCD_Writ_Bus(char VH,char VL)
{   
   byte data, temp;

#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
   PORTA = VH;
   PORTC = VL;
#else
   PORTD = VH;
   if ((VL & 128)!=0)
      sbi(PORTC, 1);
   else
      cbi(PORTC, 1);
   if ((VL & 64)!=0)
      sbi(PORTC, 0);
   else
      cbi(PORTC, 0);
   if ((VL & 32)!=0)
      sbi(PORTB, 5);
   else
      cbi(PORTB, 5);
   if ((VL & 16)!=0)
      sbi(PORTB, 4);
   else
      cbi(PORTB, 4);
   if ((VL & 8)!=0)
      sbi(PORTB, 3);
   else
      cbi(PORTB, 3);
   if ((VL & 4)!=0)
      sbi(PORTB, 2);
   else
      cbi(PORTB, 2);
   if ((VL & 2)!=0)
      sbi(PORTB, 1);
   else
      cbi(PORTB, 1);
   if ((VL & 1)!=0)
      sbi(PORTB, 0);
   else
      cbi(PORTB, 0);
#endif

   digitalWrite(LCD_WR,LOW);
   digitalWrite(LCD_WR,HIGH);
}

void ITDB02::LCD_Write_COM(char VH,char VL) 
{   
   digitalWrite(LCD_RS,LOW);
   LCD_Writ_Bus(VH,VL);
}

void ITDB02::LCD_Write_DATA(char VH,char VL)
{
   digitalWrite(LCD_RS,HIGH);
   LCD_Writ_Bus(VH,VL);
}

void ITDB02::main_W_com_data(int com1,int dat1)
{
     LCD_Write_COM(com1>>8,com1);
     LCD_Write_DATA(dat1>>8,dat1);
}

void ITDB02::InitLCD(byte orientation)
{
   orient=orientation;

   digitalWrite(LCD_REST,HIGH);
   delay(5);
   digitalWrite(LCD_REST,LOW);
   delay(15);
   digitalWrite(LCD_REST,HIGH);
   delay(15);

   if (disp_y_size==319)
   {
      main_W_com_data(0x0046,0x00A4);
      main_W_com_data(0x0047,0x0053);
      main_W_com_data(0x0048,0x0000);
      main_W_com_data(0x0049,0x0044);
      main_W_com_data(0x004a,0x0004);
      main_W_com_data(0x004b,0x0067);
      main_W_com_data(0x004c,0x0033);
      main_W_com_data(0x004d,0x0077);
      main_W_com_data(0x004e,0x0012);
      main_W_com_data(0x004f,0x004C);
      main_W_com_data(0x0050,0x0046);
      main_W_com_data(0x0051,0x0044);

      //240x320 window setting
      main_W_com_data(0x0002,0x0000); // Column address start2
      main_W_com_data(0x0003,0x0000); // Column address start1
      main_W_com_data(0x0004,0x0000); // Column address end2
      main_W_com_data(0x0005,0x00ef); // Column address end1
      main_W_com_data(0x0006,0x0000); // Row address start2
      main_W_com_data(0x0007,0x0000); // Row address start1
      main_W_com_data(0x0008,0x0001); // Row address end2
      main_W_com_data(0x0009,0x003f); // Row address end1

      // Display Setting
      main_W_com_data(0x0001,0x0006); // IDMON=0, INVON=1, NORON=1, PTLON=0
      main_W_com_data(0x0016,0x00C8); // MY=0, MX=0, MV=0, ML=1, BGR=0, TEON=0   0048
      main_W_com_data(0x0023,0x0095); // N_DC=1001 0101
      main_W_com_data(0x0024,0x0095); // PI_DC=1001 0101
      main_W_com_data(0x0025,0x00FF); // I_DC=1111 1111

      main_W_com_data(0x0027,0x0002); // N_BP=0000 0010
      main_W_com_data(0x0028,0x0002); // N_FP=0000 0010
      main_W_com_data(0x0029,0x0002); // PI_BP=0000 0010
      main_W_com_data(0x002a,0x0002); // PI_FP=0000 0010
      main_W_com_data(0x002C,0x0002); // I_BP=0000 0010
      main_W_com_data(0x002d,0x0002); // I_FP=0000 0010

      main_W_com_data(0x003a,0x0001); // N_RTN=0000, N_NW=001    0001
      main_W_com_data(0x003b,0x0000); // P_RTN=0000, P_NW=001
      main_W_com_data(0x003c,0x00f0); // I_RTN=1111, I_NW=000
      main_W_com_data(0x003d,0x0000); // DIV=00
      delay(1);
      main_W_com_data(0x0035,0x0038); // EQS=38h
      main_W_com_data(0x0036,0x0078); // EQP=78h
      main_W_com_data(0x003E,0x0038); // SON=38h
      main_W_com_data(0x0040,0x000F); // GDON=0Fh
      main_W_com_data(0x0041,0x00F0); // GDOFF

      // Power Supply Setting
      main_W_com_data(0x0019,0x0049); // CADJ=0100, CUADJ=100, OSD_EN=1 ,60Hz
      main_W_com_data(0x0093,0x000F); // RADJ=1111, 100%
      delay(1);
      main_W_com_data(0x0020,0x0040); // BT=0100
      main_W_com_data(0x001D,0x0007); // VC1=111   0007
      main_W_com_data(0x001E,0x0000); // VC3=000
      main_W_com_data(0x001F,0x0004); // VRH=0011

      //VCOM SETTING
      main_W_com_data(0x0044,0x004D); // VCM=101 0000  4D
      main_W_com_data(0x0045,0x000E); // VDV=1 0001   0011
      delay(1);
      main_W_com_data(0x001C,0x0004); // AP=100
      delay(2);

      main_W_com_data(0x001B,0x0018); // GASENB=0, PON=0, DK=1, XDK=0, VLCD_TRI=0, STB=0
      delay(1);
      main_W_com_data(0x001B,0x0010); // GASENB=0, PON=1, DK=0, XDK=0, VLCD_TRI=0, STB=0
      delay(1);
      main_W_com_data(0x0043,0x0080); //set VCOMG=1
      delay(2);

      // Display ON Setting
      main_W_com_data(0x0090,0x007F); // SAP=0111 1111
      main_W_com_data(0x0026,0x0004); //GON=0, DTE=0, D=01
      delay(1);
      main_W_com_data(0x0026,0x0024); //GON=1, DTE=0, D=01
      main_W_com_data(0x0026,0x002C); //GON=1, DTE=0, D=11
      delay(1);
      main_W_com_data(0x0026,0x003C); //GON=1, DTE=1, D=11

      // INTERNAL REGISTER SETTING
      main_W_com_data(0x0057,0x0002); // TEST_Mode=1: into TEST mode
      main_W_com_data(0x0095,0x0001); // SET DISPLAY CLOCK AND PUMPING CLOCK TO SYNCHRONIZE
      main_W_com_data(0x0057,0x0000); // TEST_Mode=0: exit TEST mode
      //main_W_com_data(0x0021,0x0000);
      LCD_Write_COM(0x00,0x22);   
   }
   else
   {
      LCD_Write_COM(0x00,0xE9);
      LCD_Write_DATA(0x00,0x20);
      LCD_Write_COM(0x00,0x11); //Exit Sleep
      delay(100);
      LCD_Write_COM(0x00,0xD1);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x71);
      LCD_Write_DATA(0x00,0x19);
      LCD_Write_COM(0x00,0xD0);
      LCD_Write_DATA(0x00,0x07);
      LCD_Write_DATA(0x00,0x01);
      LCD_Write_DATA(0x00,0x08);
      LCD_Write_COM(0x00,0x36);
      LCD_Write_DATA(0x00,0x48);
      LCD_Write_COM(0x00,0x3A);
      LCD_Write_DATA(0x00,0x05);
      LCD_Write_COM(0x00,0xC1);
      LCD_Write_DATA(0x00,0x10);
      LCD_Write_DATA(0x00,0x10);
      LCD_Write_DATA(0x00,0x02);
      LCD_Write_DATA(0x00,0x02);
      LCD_Write_COM(0x00,0xC0); //Set Default Gamma
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x35);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x01);
      LCD_Write_DATA(0x00,0x02);
      LCD_Write_COM(0x00,0xC5); //Set frame rate
      LCD_Write_DATA(0x00,0x04);
      LCD_Write_COM(0x00,0xD2); //power setting
      LCD_Write_DATA(0x00,0x01);
      LCD_Write_DATA(0x00,0x44);
      LCD_Write_COM(0x00,0xC8); //Set Gamma
      LCD_Write_DATA(0x00,0x04);
      LCD_Write_DATA(0x00,0x67);
      LCD_Write_DATA(0x00,0x35);
      LCD_Write_DATA(0x00,0x04);
      LCD_Write_DATA(0x00,0x08);
      LCD_Write_DATA(0x00,0x06);
      LCD_Write_DATA(0x00,0x24);
      LCD_Write_DATA(0x00,0x01);
      LCD_Write_DATA(0x00,0x37);
      LCD_Write_DATA(0x00,0x40);
      LCD_Write_DATA(0x00,0x03);
      LCD_Write_DATA(0x00,0x10);
      LCD_Write_DATA(0x00,0x08);
      LCD_Write_DATA(0x00,0x80);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_COM(0x00,0x2A);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0xeF);
      LCD_Write_COM(0x00,0x2B);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x01);
      LCD_Write_DATA(0x00,0x8F);
      LCD_Write_COM(0x00,0x29); //display on     
      LCD_Write_COM(0x00,0x2C); //display on
   }

   setColor(255, 255, 255);
   setBackColor(0, 0, 0);
   fsize = FONT_SMALL;
}

void ITDB02::setXY(word x1, word y1, word x2, word y2)
{
   int tmp;

   if (orient==LANDSCAPE)
   {
      tmp=x1;
      x1=y1;
      y1=disp_y_size-tmp;
      tmp=x2;
      x2=y2;
      y2=disp_y_size-tmp;
      tmp=y1;
      y1=y2;
      y2=tmp;
   }

   if (disp_y_size==319)
   {
      main_W_com_data(0x0002,x1>>8);  // Column address start2
      main_W_com_data(0x0003,x1);      // Column address start1
      main_W_com_data(0x0004,x2>>8);  // Column address end2
      main_W_com_data(0x0005,x2);      // Column address end1
      main_W_com_data(0x0006,y1>>8);  // Row address start2
      main_W_com_data(0x0007,y1);      // Row address start1
      main_W_com_data(0x0008,y2>>8);  // Row address end2
      main_W_com_data(0x0009,y2);      // Row address end1
      LCD_Write_COM(0x00,0x22);     
   }
   else
   {
      LCD_Write_COM(0x00,0x2a);
        LCD_Write_DATA(0x00,x1>>8);
        LCD_Write_DATA(0x00,x1);
        LCD_Write_DATA(0x00,x2>>8);
        LCD_Write_DATA(0x00,x2);
        LCD_Write_COM(0x00,0x2b);
        LCD_Write_DATA(0x00,y1>>8);
        LCD_Write_DATA(0x00,y1);
        LCD_Write_DATA(0x00,y2>>8);
        LCD_Write_DATA(0x00,y2);
        LCD_Write_COM(0x00,0x2c);                      
   }
}

void ITDB02::drawRect(int x1, int y1, int x2, int y2)
{
   int tmp;

   if (x1>x2)
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
   }
   if (y1>y2)
   {
      tmp=y1;
      y1=y2;
      y2=tmp;
   }

   drawHLine(x1, y1, x2-x1);
   drawHLine(x1, y2, x2-x1);
   drawVLine(x1, y1, y2-y1);
   drawVLine(x2, y1, y2-y1);
}

void ITDB02::drawRoundRect(int x1, int y1, int x2, int y2)
{
   int tmp;

   if (x1>x2)
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
   }
   if (y1>y2)
   {
      tmp=y1;
      y1=y2;
      y2=tmp;
   }
   if ((x2-x1)>4 && (y2-y1)>4)
   {
      drawPixel(x1+1,y1+1);
      drawPixel(x2-1,y1+1);
      drawPixel(x1+1,y2-1);
      drawPixel(x2-1,y2-1);
      drawHLine(x1+2, y1, x2-x1-4);
      drawHLine(x1+2, y2, x2-x1-4);
      drawVLine(x1, y1+2, y2-y1-4);
      drawVLine(x2, y1+2, y2-y1-4);
   }
}

void ITDB02::fillRect(int x1, int y1, int x2, int y2)
{
   int tmp;

   if (x1>x2)
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
   }
   if (y1>y2)
   {
      tmp=y1;
      y1=y2;
      y2=tmp;
   }

   if (orient==PORTRAIT)
   {
      for (int i=0; i<((y2-y1)/2)+1; i++)
      {
         drawHLine(x1, y1+i, x2-x1);
         drawHLine(x1, y2-i, x2-x1);
      }
   }
   else
   {
      for (int i=0; i<((x2-x1)/2)+1; i++)
      {
         drawVLine(x1+i, y1, y2-y1);
         drawVLine(x2-i, y1, y2-y1);
      }
   }
}

void ITDB02::fillRoundRect(int x1, int y1, int x2, int y2)
{
   int tmp;

   if (x1>x2)
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
   }
   if (y1>y2)
   {
      tmp=y1;
      y1=y2;
      y2=tmp;
   }

   if ((x2-x1)>4 && (y2-y1)>4)
   {
      for (int i=0; i<((y2-y1)/2)+1; i++)
      {
         switch(i)
         {
         case 0:
            drawHLine(x1+2, y1+i, x2-x1-4);
            drawHLine(x1+2, y2-i, x2-x1-4);
            break;
         case 1:
            drawHLine(x1+1, y1+i, x2-x1-2);
            drawHLine(x1+1, y2-i, x2-x1-2);
            break;
         default:
            drawHLine(x1, y1+i, x2-x1);
            drawHLine(x1, y2-i, x2-x1);
         }
      }
   }
}

void ITDB02::drawCircle(int x, int y, int radius)
{
  int f = 1 - radius;
  int ddF_x = 1;
  int ddF_y = -2 * radius;
  int x1 = 0;
  int y1 = radius;
 
  drawPixel(x, y + radius);
  drawPixel(x, y - radius);
  drawPixel(x + radius, y);
  drawPixel(x - radius, y);
 
  while(x1 < y1)
  {
    if(f >= 0)
    {
      y1--;
      ddF_y += 2;
      f += ddF_y;
    }
    x1++;
    ddF_x += 2;
    f += ddF_x;   
    drawPixel(x + x1, y + y1);
    drawPixel(x - x1, y + y1);
    drawPixel(x + x1, y - y1);
    drawPixel(x - x1, y - y1);
    drawPixel(x + y1, y + x1);
    drawPixel(x - y1, y + x1);
    drawPixel(x + y1, y - x1);
    drawPixel(x - y1, y - x1);
  }
}

void ITDB02::fillCircle(int x, int y, int radius)
{
   for(int y1=-radius; y1<=radius; y1++)
      for(int x1=-radius; x1<=radius; x1++)
         if(x1*x1+y1*y1 <= radius*radius)
            drawPixel(x+x1, y+y1);
}

void ITDB02::clrScr()
{
   long i;
   
   digitalWrite(LCD_CS,LOW);
   if (orient==PORTRAIT)
      setXY(0,0,239,disp_y_size);
   else
      setXY(0,0,disp_y_size,239);
   for (i=0; i<(240*(disp_y_size+1)); i++)
   {
      setPixel(0,0,0);
   }
   digitalWrite(LCD_CS,HIGH);
}

void ITDB02::fillScr(byte r, byte g, byte b)
{
   long i;
   
   digitalWrite(LCD_CS,LOW);
   if (orient==PORTRAIT)
      setXY(0,0,239,disp_y_size);
   else
      setXY(0,0,disp_y_size,239);
   for (i=0; i<(240*(disp_y_size+1)); i++)
   {
      setPixel (r, g, b);
   }
   digitalWrite(LCD_CS,HIGH);
}

void ITDB02::setColor(byte r, byte g, byte b)
{
   fcolorr=r;
   fcolorg=g;
   fcolorb=b;
}

void ITDB02::setBackColor(byte r, byte g, byte b)
{
   bcolorr=r;
   bcolorg=g;
   bcolorb=b;
}

void ITDB02::setPixel(byte r,byte g,byte b)
{
   LCD_Write_DATA(((r&248)|g>>5),((g&28)<<3|b>>3));
}

void ITDB02::drawPixel(int x, int y)
{
   digitalWrite(LCD_CS,LOW); 
   setXY(x, y, x, y);
   setPixel(fcolorr, fcolorg, fcolorb);
   if (orient==PORTRAIT)
      setXY(0,0,239,disp_y_size);
   else
      setXY(0,0,disp_y_size,239);
   digitalWrite(LCD_CS,HIGH); 
}

void ITDB02::drawLine(int x1, int y1, int x2, int y2)
{
   int tmp;
   double delta, tx, ty;
   double m, b, dx, dy;

        if (((x2-x1)<0))
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
      tmp=y1;
      y1=y2;
      y2=tmp;
   }
        if (((y2-y1)<0))
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
      tmp=y1;
      y1=y2;
      y2=tmp;
   }

   if (y1==y2)
   {
      if (x1>x2)
      {
         tmp=x1;
         x1=x2;
         x2=tmp;
      }
      drawHLine(x1, y1, x2-x1);
   }
   else if (x1==x2)
   {
      if (y1>y2)
      {
         tmp=y1;
         y1=y2;
         y2=tmp;
      }
      drawVLine(x1, y1, y2-y1);
   }
   else if (abs(x2-x1)>abs(y2-y1))
   {
      delta=(double(y2-y1)/double(x2-x1));
      ty=double(y1);
      if (x1>x2)
                {
                        for (int i=x1; i>=x2; i--)
                {
                 drawPixel(i,int(ty+0.5));
                 ty=ty-delta;
              }
                }
                else
                {
                        for (int i=x1; i<=x2; i++)
                {
                 drawPixel(i,int(ty+0.5));
                 ty=ty+delta;
              }
                }
   }
   else
   {
      delta=(float(x2-x1)/float(y2-y1));
      tx=float(x1);
                if (y1>y2)
                {
              for (int i=y2+1; i>y1; i--)
              {
                     drawPixel(int(tx+0.5), i);
                     tx=tx+delta;
              }
                }
                else
                {
              for (int i=y1; i<y2+1; i++)
              {
                     drawPixel(int(tx+0.5), i);
                     tx=tx+delta;
              }
                }
   }

   if (orient==PORTRAIT)
      setXY(0,0,239,disp_y_size);
   else
      setXY(0,0,disp_y_size,239);
}

void ITDB02::drawHLine(int x, int y, int l)
{
   digitalWrite(LCD_CS,LOW); 
   setXY(x, y, x+l, y);
   for (int i=0; i<l+1; i++)
   {
      setPixel(fcolorr, fcolorg, fcolorb);
   }
   digitalWrite(LCD_CS,HIGH); 
}

void ITDB02::drawVLine(int x, int y, int l)
{
   digitalWrite(LCD_CS,LOW); 
   setXY(x, y, x, y+l);
   for (int i=0; i<l; i++)
   {
      setPixel(fcolorr, fcolorg, fcolorb);
   }
   digitalWrite(LCD_CS,HIGH); 
}

void ITDB02::printChar(byte c, int x, int y)
{
   byte i,j,ch;
   word temp;

   digitalWrite(LCD_CS,LOW);   
 
   if (fsize==FONT_SMALL)
   {
      if (orient==PORTRAIT)
      {
         setXY(x,y,x+7,y+11);
       
         temp=((c-32)*12);
         for(j=0;j<12;j++)
         {
            ch=pgm_read_byte(&SmallFont[temp]);
            //delay(100);
            for(i=0;i<8;i++)
            {   
               if((ch&(1<<(7-i)))!=0)   
               {
                  setPixel(fcolorr, fcolorg, fcolorb);
               }
               else
               {
                  setPixel(bcolorr, bcolorg, bcolorb);
               }   
            }
            temp++;
         }
      }
      else
      {
       
         temp=((c-32)*12);
         for(j=0;j<12;j++)
         {
            setXY(x,y+j,x+7,y+j);
            ch=pgm_read_byte(&SmallFont[temp]);
            for(i=0;i<8;i++)
            {   
               if((ch&(1<<i))!=0)   
               {
                  setPixel(fcolorr, fcolorg, fcolorb);
               }
               else
               {
                  setPixel(bcolorr, bcolorg, bcolorb);
               }   
            }
            temp++;
         }
      }
   }
#ifndef _NO_BIG_FONT_
   else
   {
      if (orient==PORTRAIT)
      {
         setXY(x,y,x+15,y+15);
       
         temp=((c-32)*32);
         for(j=0;j<32;j++)
         {
            ch=pgm_read_byte(&BigFont[temp]);
            for(i=0;i<8;i++)
            {   
               if((ch&(1<<(7-i)))!=0)   
               {
                  setPixel(fcolorr, fcolorg, fcolorb);
               }
               else
               {
                  setPixel(bcolorr, bcolorg, bcolorb);
               }   
            }
            temp++;
         }
      }
      else
      {
         temp=((c-32)*32);
         for(j=0;j<32;j+=2)
         {
            setXY(x,y+(j/2),x+15,y+(j/2));
            ch=pgm_read_byte(&BigFont[temp+1]);
            for(i=0;i<8;i++)
            {   
               if((ch&(1<<i))!=0)   
               {
                  setPixel(fcolorr, fcolorg, fcolorb);
               }
               else
               {
                  setPixel(bcolorr, bcolorg, bcolorb);
               }   
            }
            ch=pgm_read_byte(&BigFont[temp]);
            for(i=0;i<8;i++)
            {   
               if((ch&(1<<i))!=0)   
               {
                  setPixel(fcolorr, fcolorg, fcolorb);
               }
               else
               {
                  setPixel(bcolorr, bcolorg, bcolorb);
               }   
            }
            temp+=2;
         }
      }
   }
#endif
   digitalWrite(LCD_CS,HIGH);
}

void ITDB02::rotateChar(byte c, int x, int y, int pos, int deg)
{
   byte i,j,ch;
   word temp;
   int newx,newy;
   double radian;
   radian=deg*0.0175; 

   digitalWrite(LCD_CS,LOW);   
   if (fsize==FONT_SMALL)
   {
      temp=((c-32)*12);
      for(j=0;j<12;j++)
      {
         ch=pgm_read_byte(&SmallFont[temp]);
         for(i=0;i<8;i++)
         {   
            newx=x+(((i+(pos*8))*cos(radian))-((j)*sin(radian)));
            newy=y+(((j)*cos(radian))+((i+(pos*8))*sin(radian)));

            setXY(newx,newy,newx+1,newy+1);
            
            if((ch&(1<<(7-i)))!=0)   
            {
               setPixel(fcolorr, fcolorg, fcolorb);
            }
            else 
            {
               setPixel(bcolorr, bcolorg, bcolorb);
            }   
         }
         temp++;
      }
   }
#ifndef _NO_BIG_FONT_
   else
   {
      temp=((c-32)*32);
      for(j=0;j<16;j++)
      {
         ch=pgm_read_byte(&BigFont[temp]);
         for(i=0;i<8;i++)
         {   
            newx=x+(((i+(pos*16))*cos(radian))-((j)*sin(radian)));
            newy=y+(((j)*cos(radian))+((i+(pos*16))*sin(radian)));

            setXY(newx,newy,newx+1,newy+1);
            
            if((ch&(1<<(7-i)))!=0)   
            {
               setPixel(fcolorr, fcolorg, fcolorb);
            }
            else 
            {
               setPixel(bcolorr, bcolorg, bcolorb);
            }   
         }
         temp++;
         ch=pgm_read_byte(&BigFont[temp]);
         for(i=8;i<16;i++)
         {   
            newx=x+(((i+(pos*16))*cos(radian))-((j)*sin(radian)));
            newy=y+(((j)*cos(radian))+((i+(pos*16))*sin(radian)));

            setXY(newx,newy,newx+1,newy+1);
            
            if((ch&(1<<(15-i)))!=0)   
            {
               setPixel(fcolorr, fcolorg, fcolorb);
            }
            else 
            {
               setPixel(bcolorr, bcolorg, bcolorb);
            }   
         }
         temp++;
      }
   }
#endif
   digitalWrite(LCD_CS,HIGH);
}

void ITDB02::print(char *st, int x, int y, int deg)
{
   int stl, i;

   stl = strlen(st);

   if (fsize==FONT_SMALL)
   {
      if (orient==PORTRAIT)
      {
      if (x==RIGHT)
         x=240-(stl*8);
      if (x==CENTER)
         x=(240-(stl*8))/2;
      }
      else
      {
      if (x==RIGHT)
         x=(disp_y_size+1)-(stl*8);
      if (x==CENTER)
         x=((disp_y_size+1)-(stl*8))/2;
      }
   }
   else
   {
      if (orient==PORTRAIT)
      {
      if (x==RIGHT)
         x=240-(stl*16);
      if (x==CENTER)
         x=(240-(stl*16))/2;
      }
      else
      {
      if (x==RIGHT)
         x=(disp_y_size+1)-(stl*16);
      if (x==CENTER)
         x=((disp_y_size+1)-(stl*16))/2;
      }
   }

   for (i=0; i<stl; i++)
      if (deg==0)
         printChar(*st++, x + (i*(fsize*8)), y);
      else
         rotateChar(*st++, x, y, i, deg);
}

void ITDB02::printNumI(long num, int x, int y)
{
  char buf[25];
  char st[27];
  boolean neg=false;
  int c=0;
 
  if (num==0)
  {
     st[0]=48;
     st[1]=0;
  }
  else
  {
     if (num<0)
     {
      neg=true;
      num=-num;
     }
    
     while (num>0)
     {
      buf[c]=48+(num % 10);
      c++;
      num=(num-(num % 10))/10;
     }
     buf[c]=0;
    
     if (neg)
     {
      st[0]=45;
     }
    
     for (int i=0; i<c; i++)
     {
      st[i+neg]=buf[c-i-1];
     }
     st[c+neg]=0;
  }

  print(st,x,y);
}

void ITDB02::printNumF(double num, byte dec, int x, int y)
{
  char buf[25];
  char st[27];
  boolean neg=false;
  int c=0;
  int c2;
  unsigned long inum;
 
  if (num==0)
  {
     st[0]=48;
     st[1]=46;
     for (int i=0; i<dec; i++)
        st[2+i]=48;
     st[2+dec]=0;
  }
  else
  {
     if (num<0)
     {
      neg=true;
      num=-num;
     }
    
     if (dec<1)
      dec=1;
     if (dec>5)
      dec=5;
    
     inum=long(num*pow(10,dec));
    
     while (inum>0)
     {
      buf[c]=48+(inum % 10);
      c++;
      inum=(inum-(inum % 10))/10;
     }
     buf[c]=0;
    
     if (neg)
     {
      st[0]=45;
     }
    
     c2=neg;
     for (int i=0; i<c; i++)
     {
      st[c2]=buf[c-i-1];
      c2++;
      if ((c-(c2-neg))==dec)
      {
        st[c2]=46;
        c2++;
      }
     }
     st[c2]=0;
  }

  print(st,x,y);
}

void ITDB02::fontSize(byte size)
{
#ifdef _NO_BIG_FONT_
   fsize = FONT_SMALL;
#else
   fsize = size;
#endif
}

void ITDB02::drawBitmap(int x, int y, int sx, int sy, unsigned int* data, int scale)
{
   unsigned int col;
   int tx, ty, tc, tsx, tsy;
   byte r, g, b;

   if (scale==1)
   {
      if (orient==PORTRAIT)
      {
         digitalWrite(LCD_CS,LOW); 
         setXY(x, y, x+sx-1, y+sy-1);
         for (tc=0; tc<(sx*sy); tc++)
         {
            col=pgm_read_word(&data[tc]);
            LCD_Write_DATA(col>>8,col & 0xff);
         }
         digitalWrite(LCD_CS,HIGH); 
      }
      else
      {
         digitalWrite(LCD_CS,LOW); 
         for (ty=0; ty<sy; ty++)
         {
            setXY(x, y+ty, x+sx-1, y+ty);
            for (tx=sx; tx>=0; tx--)
            {
               col=pgm_read_word(&data[(ty*sx)+tx]);
               LCD_Write_DATA(col>>8,col & 0xff);
            }
         }
         digitalWrite(LCD_CS,HIGH); 
      }
   }
   else
   {
      if (orient==PORTRAIT)
      {
         digitalWrite(LCD_CS,LOW); 
         for (ty=0; ty<sy; ty++)
         {
            setXY(x, y+(ty*scale), x+((sx*scale)-1), y+(ty*scale)+scale);
            for (tsy=0; tsy<scale; tsy++)
               for (tx=0; tx<sx; tx++)
               {
                  col=pgm_read_word(&data[(ty*sx)+tx]);
                  for (tsx=0; tsx<scale; tsx++)
                     LCD_Write_DATA(col>>8,col & 0xff);
               }
         }
         digitalWrite(LCD_CS,HIGH); 
      }
      else
      {
         digitalWrite(LCD_CS,LOW); 
         for (ty=0; ty<sy; ty++)
         {
            for (tsy=0; tsy<scale; tsy++)
            {
               setXY(x, y+(ty*scale)+tsy, x+((sx*scale)-1), y+(ty*scale)+tsy);
               for (tx=sx; tx>=0; tx--)
               {
                  col=pgm_read_word(&data[(ty*sx)+tx]);
                  for (tsx=0; tsx<scale; tsx++)
                     LCD_Write_DATA(col>>8,col & 0xff);
               }
            }
         }
         digitalWrite(LCD_CS,HIGH); 
      }
   }
}

void ITDB02::drawBitmap(int x, int y, int sx, int sy, unsigned int* data, int deg, int rox, int roy)
{
   unsigned int col;
   int tx, ty, newx, newy;
   byte r, g, b;
   double radian;
   radian=deg*0.0175; 

   if (deg==0)
      drawBitmap(x, y, sx, sy, data);
   else
   {
      for (ty=0; ty<sy; ty++)
         for (tx=0; tx<sx; tx++)
         {
            col=pgm_read_word(&data[(ty*sx)+tx]);
            r=(col & 0xF800)>>8;
            g=(((col & 0x7e0)>>5)<<2);
            b=(col & 0x1F)<<3;

            setColor(r,g,b);

            newx=x+rox+(((tx-rox)*cos(radian))-((ty-roy)*sin(radian)));
            newy=y+roy+(((ty-roy)*cos(radian))+((tx-rox)*sin(radian)));

            drawPixel(newx, newy);
         }
   }
}

#ifdef _ENABLE_tinyFAT_INTEGRATION_
word ITDB02::loadBitmap(int x, int y, int sx, int sy, char *filename)
{
   int res;
   int cx, cy, cp;
   word temp, result;
   byte r,g,b;

   res=file.openFile(filename, FILEMODE_BINARY);
   if (res==NO_ERROR)
   {
      digitalWrite(LCD_CS,LOW); 
      cx=0;
      cy=0;
      result=512;
      if (orient==PORTRAIT)
      {
         setXY(x, y, x+sx-1, y+sy-1);
      }
      while (result==512)
      {
         result=file.readBinary();
         switch(result)
         {
            case ERROR_WRONG_FILEMODE:
               return ERROR_WRONG_FILEMODE;
               break;
            case ERROR_NO_FILE_OPEN:
               return ERROR_NO_FILE_OPEN;
               break;
            default:
               if (orient==PORTRAIT)
               {
                  for (int i=0; i<result; i+=2)
                     LCD_Write_DATA(file.buffer,file.buffer[i+1]);
               }
               else
               {
                  cp=0;
                  while (cp<result)
                  {
                     if (((result-cp)/2)<(sx-cx))
                     {
                        setXY(x+cx, y+cy, x+cx+((result-cp)/2)-1, y+cy);
                        for (int i=(result-cp)-2; i>=0; i-=2)
                           LCD_Write_DATA(file.buffer[cp+i],file.buffer[cp+i+1]);
                        cx+=((result-cp)/2);
                        cp=result;
                     }
                     else
                     {
                        setXY(x+cx, y+cy, x+sx-1, y+cy);
                        for (int i=sx-cx-1; i>=0; i--)
                           LCD_Write_DATA(file.buffer[cp+(i*2)],file.buffer[cp+(i*2)+1]);
                        cp+=(sx-cx)*2;
                        cx=0;
                        cy++;
                     }
                  }
               }
               break;
         }             
      }
      file.closeFile();
      if (orient==PORTRAIT)
         setXY(0,0,239,disp_y_size);
      else
         setXY(0,0,disp_y_size,239);
      digitalWrite(LCD_CS,HIGH); 
      return 0;
   }
   else
   {
      return res;
   }
}
#endif
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 23, 2012, 11:05:14 PM
Bloody similes ! lol

This is the new ITDB02_GRAPH16
Everything with (ITDB32S) is referring to your screen Ian also C Files and H files to alter


 
  This library was originally made especially for the 3.2" TFT LCD Screen Module:
  ITDB02-3.2 by ITead studio, but has later been expanded to support multiple
  modules. This library has been designed to use 16bit mode, so it will not
  work with 8bit modules.

  Supported controllers:
      -   HX8347-A
      -   ILI9325D
      -   ILI9327
      -   SSD1289

 

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.


#include "WProgram.h"
#include "ITDB02_Graph16.h"
#include <avr/pgmspace.h>
#include <pins_arduino.h>

#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))

ITDB02::ITDB02()
{
}

ITDB02::ITDB02(int RS, int WR,int CS, int RST, byte model)
{
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
   DDRA = 0xFF;
   DDRC = 0xFF;
#else
   DDRD = 0xFF;
   DDRB |= 0x3F;
   DDRC |= 0x03;
#endif
   P_RS   = portOutputRegister(digitalPinToPort(RS));
   B_RS   = digitalPinToBitMask(RS);
   P_WR   = portOutputRegister(digitalPinToPort(WR));
   B_WR   = digitalPinToBitMask(WR);
   P_CS   = portOutputRegister(digitalPinToPort(CS));
   B_CS   = digitalPinToBitMask(CS);
   P_RST   = portOutputRegister(digitalPinToPort(RST));
   B_RST   = digitalPinToBitMask(RST);
   pinMode(RS,OUTPUT);
   pinMode(WR,OUTPUT);
   pinMode(CS,OUTPUT);
   pinMode(RST,OUTPUT);

   switch (model)
   {
      case ITDB32:
      case ITDB32S:  // Also TFT01_32
      case TFT01_24:
         disp_y_size=319;
         break;
      case ITDB32WC:  // Also TFT01_32W
         disp_y_size=399;
         break;
   }
   display_model=model;
}

void ITDB02::LCD_Writ_Bus(char VH,char VL)
{   
   byte data, temp;

#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
   PORTA = VH;
   PORTC = VL;
#else
   PORTD = VH;
   PORTC &= 0xFC;
   PORTC |= (VL>>6) & 0x03;
   PORTB =  VL & 0x3F;
#endif
   *P_WR &= ~B_WR;
   *P_WR |= B_WR;
}

void ITDB02::LCD_Write_COM(char VL) 
{   
   *P_RS &= ~B_RS;
   LCD_Writ_Bus(0x00,VL);
}

void ITDB02::LCD_Write_DATA(char VH,char VL)
{
   *P_RS |= B_RS;
   LCD_Writ_Bus(VH,VL);
}

void ITDB02::main_W_com_data(char com1,int dat1)
{
     LCD_Write_COM(com1);
     LCD_Write_DATA(dat1>>8,dat1);
}

void ITDB02::InitLCD(byte orientation)
{
   orient=orientation;

   *P_RST |= B_RST;
   delay(5);
   *P_RST &= ~B_RST;
   delay(15);
   *P_RST |= B_RST;
   delay(15);

   switch(display_model)
   {
   case ITDB32:
      main_W_com_data(0x46,0x00A4);
      main_W_com_data(0x47,0x0053);
      main_W_com_data(0x48,0x0000);
      main_W_com_data(0x49,0x0044);
      main_W_com_data(0x4a,0x0004);
      main_W_com_data(0x4b,0x0067);
      main_W_com_data(0x4c,0x0033);
      main_W_com_data(0x4d,0x0077);
      main_W_com_data(0x4e,0x0012);
      main_W_com_data(0x4f,0x004C);
      main_W_com_data(0x50,0x0046);
      main_W_com_data(0x51,0x0044);

      //240x320 window setting
      main_W_com_data(0x02,0x0000); // Column address start2
      main_W_com_data(0x03,0x0000); // Column address start1
      main_W_com_data(0x04,0x0000); // Column address end2
      main_W_com_data(0x05,0x00ef); // Column address end1
      main_W_com_data(0x06,0x0000); // Row address start2
      main_W_com_data(0x07,0x0000); // Row address start1
      main_W_com_data(0x08,0x0001); // Row address end2
      main_W_com_data(0x09,0x003f); // Row address end1

      // Display Setting
      main_W_com_data(0x01,0x0006); // IDMON=0, INVON=1, NORON=1, PTLON=0
      main_W_com_data(0x16,0x00C8); // MY=0, MX=0, MV=0, ML=1, BGR=0, TEON=0   0048
      main_W_com_data(0x23,0x0095); // N_DC=1001 0101
      main_W_com_data(0x24,0x0095); // PI_DC=1001 0101
      main_W_com_data(0x25,0x00FF); // I_DC=1111 1111

      main_W_com_data(0x27,0x0002); // N_BP=0000 0010
      main_W_com_data(0x28,0x0002); // N_FP=0000 0010
      main_W_com_data(0x29,0x0002); // PI_BP=0000 0010
      main_W_com_data(0x2a,0x0002); // PI_FP=0000 0010
      main_W_com_data(0x2C,0x0002); // I_BP=0000 0010
      main_W_com_data(0x2d,0x0002); // I_FP=0000 0010

      main_W_com_data(0x3a,0x0001); // N_RTN=0000, N_NW=001    0001
      main_W_com_data(0x3b,0x0000); // P_RTN=0000, P_NW=001
      main_W_com_data(0x3c,0x00f0); // I_RTN=1111, I_NW=000
      main_W_com_data(0x3d,0x0000); // DIV=00
      delay(1);
      main_W_com_data(0x35,0x0038); // EQS=38h
      main_W_com_data(0x36,0x0078); // EQP=78h
      main_W_com_data(0x3E,0x0038); // SON=38h
      main_W_com_data(0x40,0x000F); // GDON=0Fh
      main_W_com_data(0x41,0x00F0); // GDOFF

      // Power Supply Setting
      main_W_com_data(0x19,0x0049); // CADJ=0100, CUADJ=100, OSD_EN=1 ,60Hz
      main_W_com_data(0x93,0x000F); // RADJ=1111, 100%
      delay(1);
      main_W_com_data(0x20,0x0040); // BT=0100
      main_W_com_data(0x1D,0x0007); // VC1=111   0007
      main_W_com_data(0x1E,0x0000); // VC3=000
      main_W_com_data(0x1F,0x0004); // VRH=0011

      //VCOM SETTING
      main_W_com_data(0x44,0x004D); // VCM=101 0000  4D
      main_W_com_data(0x45,0x000E); // VDV=1 0001   0011
      delay(1);
      main_W_com_data(0x1C,0x0004); // AP=100
      delay(2);

      main_W_com_data(0x1B,0x0018); // GASENB=0, PON=0, DK=1, XDK=0, VLCD_TRI=0, STB=0
      delay(1);
      main_W_com_data(0x1B,0x0010); // GASENB=0, PON=1, DK=0, XDK=0, VLCD_TRI=0, STB=0
      delay(1);
      main_W_com_data(0x43,0x0080); //set VCOMG=1
      delay(2);

      // Display ON Setting
      main_W_com_data(0x90,0x007F); // SAP=0111 1111
      main_W_com_data(0x26,0x0004); //GON=0, DTE=0, D=01
      delay(1);
      main_W_com_data(0x26,0x0024); //GON=1, DTE=0, D=01
      main_W_com_data(0x26,0x002C); //GON=1, DTE=0, D=11
      delay(1);
      main_W_com_data(0x26,0x003C); //GON=1, DTE=1, D=11

      // INTERNAL REGISTER SETTING
      main_W_com_data(0x57,0x0002); // TEST_Mode=1: into TEST mode
      main_W_com_data(0x95,0x0001); // SET DISPLAY CLOCK AND PUMPING CLOCK TO SYNCHRONIZE
      main_W_com_data(0x57,0x0000); // TEST_Mode=0: exit TEST mode
      //main_W_com_data(0x21,0x0000);
      LCD_Write_COM(0x22);   
      break;
   case ITDB32WC:  // Also TFT01_32W
      LCD_Write_COM(0xE9);
      LCD_Write_DATA(0x00,0x20);
      LCD_Write_COM(0x11); //Exit Sleep
      delay(100);
      LCD_Write_COM(0xD1);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x71);
      LCD_Write_DATA(0x00,0x19);
      LCD_Write_COM(0xD0);
      LCD_Write_DATA(0x00,0x07);
      LCD_Write_DATA(0x00,0x01);
      LCD_Write_DATA(0x00,0x08);
      LCD_Write_COM(0x36);
      LCD_Write_DATA(0x00,0x48);
      LCD_Write_COM(0x3A);
      LCD_Write_DATA(0x00,0x05);
      LCD_Write_COM(0xC1);
      LCD_Write_DATA(0x00,0x10);
      LCD_Write_DATA(0x00,0x10);
      LCD_Write_DATA(0x00,0x02);
      LCD_Write_DATA(0x00,0x02);
      LCD_Write_COM(0xC0); //Set Default Gamma
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x35);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x01);
      LCD_Write_DATA(0x00,0x02);
      LCD_Write_COM(0xC5); //Set frame rate
      LCD_Write_DATA(0x00,0x04);
      LCD_Write_COM(0xD2); //power setting
      LCD_Write_DATA(0x00,0x01);
      LCD_Write_DATA(0x00,0x44);
      LCD_Write_COM(0xC8); //Set Gamma
      LCD_Write_DATA(0x00,0x04);
      LCD_Write_DATA(0x00,0x67);
      LCD_Write_DATA(0x00,0x35);
      LCD_Write_DATA(0x00,0x04);
      LCD_Write_DATA(0x00,0x08);
      LCD_Write_DATA(0x00,0x06);
      LCD_Write_DATA(0x00,0x24);
      LCD_Write_DATA(0x00,0x01);
      LCD_Write_DATA(0x00,0x37);
      LCD_Write_DATA(0x00,0x40);
      LCD_Write_DATA(0x00,0x03);
      LCD_Write_DATA(0x00,0x10);
      LCD_Write_DATA(0x00,0x08);
      LCD_Write_DATA(0x00,0x80);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_COM(0x2A);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0xeF);
      LCD_Write_COM(0x2B);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x00);
      LCD_Write_DATA(0x00,0x01);
      LCD_Write_DATA(0x00,0x8F);
      LCD_Write_COM(0x29); //display on     
      LCD_Write_COM(0x2C); //display on
      break;
   case ITDB32S:  // Also TFT01_32
      main_W_com_data(0x00,0x0001);
      main_W_com_data(0x03,0xA8A4);
      main_W_com_data(0x0C,0x0000);
      main_W_com_data(0x0D,0x080C);
      main_W_com_data(0x0E,0x2B00);
      main_W_com_data(0x1E,0x00B7);
      main_W_com_data(0x01,0x2B3F);
      main_W_com_data(0x02,0x0600);
      main_W_com_data(0x10,0x0000);
      main_W_com_data(0x11,0x6070);
      main_W_com_data(0x05,0x0000);
      main_W_com_data(0x06,0x0000);
      main_W_com_data(0x16,0xEF1C);
      main_W_com_data(0x17,0x0003);
      main_W_com_data(0x07,0x0233);
      main_W_com_data(0x0B,0x0000);
      main_W_com_data(0x0F,0x0000);
      main_W_com_data(0x41,0x0000);
      main_W_com_data(0x42,0x0000);
      main_W_com_data(0x48,0x0000);
      main_W_com_data(0x49,0x013F);
      main_W_com_data(0x4A,0x0000);
      main_W_com_data(0x4B,0x0000);
      main_W_com_data(0x44,0xEF00);
      main_W_com_data(0x45,0x0000);
      main_W_com_data(0x46,0x013F);
      main_W_com_data(0x30,0x0707);
      main_W_com_data(0x31,0x0204);
      main_W_com_data(0x32,0x0204);
      main_W_com_data(0x33,0x0502);
      main_W_com_data(0x34,0x0507);
      main_W_com_data(0x35,0x0204);
      main_W_com_data(0x36,0x0204);
      main_W_com_data(0x37,0x0502);
      main_W_com_data(0x3A,0x0302);
      main_W_com_data(0x3B,0x0302);
      main_W_com_data(0x23,0x0000);
      main_W_com_data(0x24,0x0000);
      main_W_com_data(0x25,0x8000);
      main_W_com_data(0x4f,0x0000);
      main_W_com_data(0x4e,0x0000);
      LCD_Write_COM(0x22);   
      break;
   case TFT01_24:
      main_W_com_data(0x01, 0x0100); // set Driver Output Control 
      main_W_com_data(0x02, 0x0200); // set 1 line inversion 
      main_W_com_data(0x03, 0x1030); // set GRAM write direction and BGR=1. 
      main_W_com_data(0x04, 0x0000); // Resize register 
      main_W_com_data(0x08, 0x0207); // set the back porch and front porch 
      main_W_com_data(0x09, 0x0000); // set non-display area refresh cycle ISC[3:0] 
      main_W_com_data(0x0A, 0x0000); // FMARK function 
      main_W_com_data(0x0C, 0x0000); // RGB interface setting 
      main_W_com_data(0x0D, 0x0000); // Frame marker Position 
      main_W_com_data(0x0F, 0x0000); // RGB interface polarity 
      //*************Power On sequence ****************// 
      main_W_com_data(0x10, 0x0000); // SAP, BT[3:0], AP, DSTB, SLP, STB 
      main_W_com_data(0x11, 0x0007); // DC1[2:0], DC0[2:0], VC[2:0] 
      main_W_com_data(0x12, 0x0000); // VREG1OUT voltage 
      main_W_com_data(0x13, 0x0000); // VDV[4:0] for VCOM amplitude 
      main_W_com_data(0x07, 0x0001); 
      delay(200); // Dis-charge capacitor power voltage 
      main_W_com_data(0x10, 0x1690); // SAP, BT[3:0], AP, DSTB, SLP, STB 
      main_W_com_data(0x11, 0x0227); // Set DC1[2:0], DC0[2:0], VC[2:0] 
      delay(50); // Delay 50ms 
      main_W_com_data(0x12, 0x000D); // 0012 
      delay(50); // Delay 50ms 
      main_W_com_data(0x13, 0x1200); // VDV[4:0] for VCOM amplitude 
      main_W_com_data(0x29, 0x000A); // 04  VCM[5:0] for VCOMH 
      main_W_com_data(0x2B, 0x000D); // Set Frame Rate 
      delay(50); // Delay 50ms 
      main_W_com_data(0x20, 0x0000); // GRAM horizontal Address 
      main_W_com_data(0x21, 0x0000); // GRAM Vertical Address 
      // ----------- Adjust the Gamma Curve ----------// 
      main_W_com_data(0x30, 0x0000); 
      main_W_com_data(0x31, 0x0404); 
      main_W_com_data(0x32, 0x0003); 
      main_W_com_data(0x35, 0x0405); 
      main_W_com_data(0x36, 0x0808); 
      main_W_com_data(0x37, 0x0407); 
      main_W_com_data(0x38, 0x0303); 
      main_W_com_data(0x39, 0x0707); 
      main_W_com_data(0x3C, 0x0504); 
      main_W_com_data(0x3D, 0x0808); 
      //------------------ Set GRAM area ---------------// 
      main_W_com_data(0x50, 0x0000); // Horizontal GRAM Start Address 
      main_W_com_data(0x51, 0x00EF); // Horizontal GRAM End Address 
      main_W_com_data(0x52, 0x0000); // Vertical GRAM Start Address 
      main_W_com_data(0x53, 0x013F); // Vertical GRAM Start Address 
      main_W_com_data(0x60, 0xA700); // Gate Scan Line 
      main_W_com_data(0x61, 0x0001); // NDL,VLE, REV   
      main_W_com_data(0x6A, 0x0000); // set scrolling line 
      //-------------- Partial Display Control ---------// 
      main_W_com_data(0x80, 0x0000); 
      main_W_com_data(0x81, 0x0000); 
      main_W_com_data(0x82, 0x0000); 
      main_W_com_data(0x83, 0x0000); 
      main_W_com_data(0x84, 0x0000); 
      main_W_com_data(0x85, 0x0000); 
      //-------------- Panel Control -------------------// 
      main_W_com_data(0x90, 0x0010); 
      main_W_com_data(0x92, 0x0000); 
      main_W_com_data(0x07, 0x0133); // 262K color and display ON       
      break;
   }

   setColor(255, 255, 255);
   setBackColor(0, 0, 0);
   cfont.font=0;
}

void ITDB02::setXY(word x1, word y1, word x2, word y2)
{
   int tmp;

   if (orient==LANDSCAPE)
   {
      tmp=x1;
      x1=y1;
      y1=disp_y_size-tmp;
      tmp=x2;
      x2=y2;
      y2=disp_y_size-tmp;
      tmp=y1;
      y1=y2;
      y2=tmp;
   }

   switch(display_model)
   {
   case ITDB32:
      main_W_com_data(0x02,x1>>8);  // Column address start2
      main_W_com_data(0x03,x1);      // Column address start1
      main_W_com_data(0x04,x2>>8);  // Column address end2
      main_W_com_data(0x05,x2);      // Column address end1
      main_W_com_data(0x06,y1>>8);  // Row address start2
      main_W_com_data(0x07,y1);      // Row address start1
      main_W_com_data(0x08,y2>>8);  // Row address end2
      main_W_com_data(0x09,y2);      // Row address end1
      LCD_Write_COM(0x22);     
      break;
   case ITDB32WC:  // Also TFT01_32W
      LCD_Write_COM(0x2a);
        LCD_Write_DATA(0x00,x1>>8);
        LCD_Write_DATA(0x00,x1);
        LCD_Write_DATA(0x00,x2>>8);
        LCD_Write_DATA(0x00,x2);
        LCD_Write_COM(0x2b);
        LCD_Write_DATA(0x00,y1>>8);
        LCD_Write_DATA(0x00,y1);
        LCD_Write_DATA(0x00,y2>>8);
        LCD_Write_DATA(0x00,y2);
        LCD_Write_COM(0x2c);                      
      break;
   case ITDB32S:  // Also TFT01_32
      main_W_com_data(0x44,(x2<<8)+x1);
      main_W_com_data(0x45,y1);
      main_W_com_data(0x46,y2);
      main_W_com_data(0x4e,x1);
      main_W_com_data(0x4f,y1);
      LCD_Write_COM(0x22);
      break;
   case TFT01_24:
      main_W_com_data(0x20,x1);   //Setting X     
      main_W_com_data(0x21,y1);   //Setting Y     
      main_W_com_data(0x50,x1);   //start X     
      main_W_com_data(0x52,y1);   //start Y     
      main_W_com_data(0x51,x2);   //end X     
      main_W_com_data(0x53,y2);   //end Y     
      LCD_Write_COM(0x22);
      break;
   }
}

void ITDB02::drawRect(int x1, int y1, int x2, int y2)
{
   int tmp;

   if (x1>x2)
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
   }
   if (y1>y2)
   {
      tmp=y1;
      y1=y2;
      y2=tmp;
   }

   drawHLine(x1, y1, x2-x1);
   drawHLine(x1, y2, x2-x1);
   drawVLine(x1, y1, y2-y1);
   drawVLine(x2, y1, y2-y1);
}

void ITDB02::drawRoundRect(int x1, int y1, int x2, int y2)
{
   int tmp;

   if (x1>x2)
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
   }
   if (y1>y2)
   {
      tmp=y1;
      y1=y2;
      y2=tmp;
   }
   if ((x2-x1)>4 && (y2-y1)>4)
   {
      drawPixel(x1+1,y1+1);
      drawPixel(x2-1,y1+1);
      drawPixel(x1+1,y2-1);
      drawPixel(x2-1,y2-1);
      drawHLine(x1+2, y1, x2-x1-4);
      drawHLine(x1+2, y2, x2-x1-4);
      drawVLine(x1, y1+2, y2-y1-4);
      drawVLine(x2, y1+2, y2-y1-4);
   }
}

void ITDB02::fillRect(int x1, int y1, int x2, int y2)
{
   int tmp;

   if (x1>x2)
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
   }
   if (y1>y2)
   {
      tmp=y1;
      y1=y2;
      y2=tmp;
   }

   if (orient==PORTRAIT)
   {
      for (int i=0; i<((y2-y1)/2)+1; i++)
      {
         drawHLine(x1, y1+i, x2-x1);
         drawHLine(x1, y2-i, x2-x1);
      }
   }
   else
   {
      for (int i=0; i<((x2-x1)/2)+1; i++)
      {
         drawVLine(x1+i, y1, y2-y1);
         drawVLine(x2-i, y1, y2-y1);
      }
   }
}

void ITDB02::fillRoundRect(int x1, int y1, int x2, int y2)
{
   int tmp;

   if (x1>x2)
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
   }
   if (y1>y2)
   {
      tmp=y1;
      y1=y2;
      y2=tmp;
   }

   if ((x2-x1)>4 && (y2-y1)>4)
   {
      for (int i=0; i<((y2-y1)/2)+1; i++)
      {
         switch(i)
         {
         case 0:
            drawHLine(x1+2, y1+i, x2-x1-4);
            drawHLine(x1+2, y2-i, x2-x1-4);
            break;
         case 1:
            drawHLine(x1+1, y1+i, x2-x1-2);
            drawHLine(x1+1, y2-i, x2-x1-2);
            break;
         default:
            drawHLine(x1, y1+i, x2-x1);
            drawHLine(x1, y2-i, x2-x1);
         }
      }
   }
}

void ITDB02::drawCircle(int x, int y, int radius)
{
   int f = 1 - radius;
   int ddF_x = 1;
   int ddF_y = -2 * radius;
   int x1 = 0;
   int y1 = radius;
   char ch, cl;
   
   ch=((fcolorr&248)|fcolorg>>5);
   cl=((fcolorg&28)<<3|fcolorb>>3);
 
   *P_CS &= ~B_CS;
   setXY(x, y + radius, x, y + radius);
   LCD_Write_DATA(ch,cl);
   setXY(x, y - radius, x, y - radius);
   LCD_Write_DATA(ch,cl);
   setXY(x + radius, y, x + radius, y);
   LCD_Write_DATA(ch,cl);
   setXY(x - radius, y, x - radius, y);
   LCD_Write_DATA(ch,cl);
 
   while(x1 < y1)
   {
      if(f >= 0)
      {
         y1--;
         ddF_y += 2;
         f += ddF_y;
      }
      x1++;
      ddF_x += 2;
      f += ddF_x;   
      setXY(x + x1, y + y1, x + x1, y + y1);
      LCD_Write_DATA(ch,cl);
      setXY(x - x1, y + y1, x - x1, y + y1);
      LCD_Write_DATA(ch,cl);
      setXY(x + x1, y - y1, x + x1, y - y1);
      LCD_Write_DATA(ch,cl);
      setXY(x - x1, y - y1, x - x1, y - y1);
      LCD_Write_DATA(ch,cl);
      setXY(x + y1, y + x1, x + y1, y + x1);
      LCD_Write_DATA(ch,cl);
      setXY(x - y1, y + x1, x - y1, y + x1);
      LCD_Write_DATA(ch,cl);
      setXY(x + y1, y - x1, x + y1, y - x1);
      LCD_Write_DATA(ch,cl);
      setXY(x - y1, y - x1, x - y1, y - x1);
      LCD_Write_DATA(ch,cl);
   }
   *P_CS |= B_CS;
   if (orient==PORTRAIT)
      setXY(0,0,239,disp_y_size);
   else
      setXY(0,0,disp_y_size,239);
}

void ITDB02::fillCircle(int x, int y, int radius)
{
   *P_CS &= ~B_CS;
   for(int y1=-radius; y1<=radius; y1++)
      for(int x1=-radius; x1<=radius; x1++)
         if(x1*x1+y1*y1 <= radius*radius)
         {
            setXY(x+x1, y+y1, x+x1, y+y1);
            LCD_Write_DATA(((fcolorr&248)|fcolorg>>5),((fcolorg&28)<<3|fcolorb>>3));
         }
   *P_CS |= B_CS;
   if (orient==PORTRAIT)
      setXY(0,0,239,disp_y_size);
   else
      setXY(0,0,disp_y_size,239);
}

void ITDB02::clrScr()
{
   long i;
   
   *P_CS &= ~B_CS;
   if (orient==PORTRAIT)
      setXY(0,0,239,disp_y_size);
   else
      setXY(0,0,disp_y_size,239);
   *P_RS |= B_RS;
   for (i=0; i<(240*(disp_y_size+1)); i++)
   {
      LCD_Writ_Bus(0,0);
   }
   *P_CS |= B_CS;
}

void ITDB02::fillScr(byte r, byte g, byte b)
{
   long i;
   char ch, cl;
   
   ch=((r&248)|g>>5);
   cl=((g&28)<<3|b>>3);

   *P_CS &= ~B_CS;
   if (orient==PORTRAIT)
      setXY(0,0,239,disp_y_size);
   else
      setXY(0,0,disp_y_size,239);
   *P_RS |= B_RS;
   for (i=0; i<(240*(disp_y_size+1)); i++)
   {
      LCD_Writ_Bus(ch,cl);
   }
   *P_CS |= B_CS;
}

void ITDB02::setColor(byte r, byte g, byte b)
{
   fcolorr=r;
   fcolorg=g;
   fcolorb=b;
}

void ITDB02::setBackColor(byte r, byte g, byte b)
{
   bcolorr=r;
   bcolorg=g;
   bcolorb=b;
}

void ITDB02::setPixel(byte r,byte g,byte b)
{
   LCD_Write_DATA(((r&248)|g>>5),((g&28)<<3|b>>3));
}

void ITDB02::drawPixel(int x, int y)
{
   *P_CS &= ~B_CS;
   setXY(x, y, x, y);
   setPixel(fcolorr, fcolorg, fcolorb);
   *P_CS |= B_CS;
   if (orient==PORTRAIT)
      setXY(0,0,239,disp_y_size);
   else
      setXY(0,0,disp_y_size,239);
}

void ITDB02::drawLine(int x1, int y1, int x2, int y2)
{
   int tmp;
   double delta, tx, ty;
   double m, b, dx, dy;
   char ch, cl;
   
   ch=((fcolorr&248)|fcolorg>>5);
   cl=((fcolorg&28)<<3|fcolorb>>3);

   if (((x2-x1)<0))
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
      tmp=y1;
      y1=y2;
      y2=tmp;
   }
    if (((y2-y1)<0))
   {
      tmp=x1;
      x1=x2;
      x2=tmp;
      tmp=y1;
      y1=y2;
      y2=tmp;
   }

   if (y1==y2)
   {
      if (x1>x2)
      {
         tmp=x1;
         x1=x2;
         x2=tmp;
      }
      drawHLine(x1, y1, x2-x1);
   }
   else if (x1==x2)
   {
      if (y1>y2)
      {
         tmp=y1;
         y1=y2;
         y2=tmp;
      }
      drawVLine(x1, y1, y2-y1);
   }
   else if (abs(x2-x1)>abs(y2-y1))
   {
      *P_CS &= ~B_CS;
      delta=(double(y2-y1)/double(x2-x1));
      ty=double(y1);
      if (x1>x2)
      {
         for (int i=x1; i>=x2; i--)
         {
            setXY(i, int(ty+0.5), i, int(ty+0.5));
            LCD_Write_DATA(ch, cl);
              ty=ty-delta;
         }
      }
      else
      {
         for (int i=x1; i<=x2; i++)
         {
            setXY(i, int(ty+0.5), i, int(ty+0.5));
            LCD_Write_DATA(ch, cl);
              ty=ty+delta;
         }
      }
      *P_CS |= B_CS;
   }
   else
   {
      *P_CS &= ~B_CS;
      delta=(float(x2-x1)/float(y2-y1));
      tx=float(x1);
        if (y1>y2)
        {
         for (int i=y2+1; i>y1; i--)
         {
             setXY(int(tx+0.5), i, int(tx+0.5), i);
            LCD_Write_DATA(ch, cl);
              tx=tx+delta;
         }
        }
        else
        {
         for (int i=y1; i<y2+1; i++)
         {
             setXY(int(tx+0.5), i, int(tx+0.5), i);
            LCD_Write_DATA(ch, cl);
              tx=tx+delta;
         }
        }
      *P_CS |= B_CS;
   }

   if (orient==PORTRAIT)
      setXY(0,0,239,disp_y_size);
   else
      setXY(0,0,disp_y_size,239);
}

void ITDB02::drawHLine(int x, int y, int l)
{
   char ch, cl;
   
   ch=((fcolorr&248)|fcolorg>>5);
   cl=((fcolorg&28)<<3|fcolorb>>3);

   *P_CS &= ~B_CS;
   setXY(x, y, x+l, y);
   for (int i=0; i<l+1; i++)
   {
      LCD_Write_DATA(ch, cl);
   }
   *P_CS |= B_CS;
}

void ITDB02::drawVLine(int x, int y, int l)
{
   char ch, cl;
   
   ch=((fcolorr&248)|fcolorg>>5);
   cl=((fcolorg&28)<<3|fcolorb>>3);

   *P_CS &= ~B_CS;
   setXY(x, y, x, y+l);
   for (int i=0; i<l; i++)
   {
      LCD_Write_DATA(ch, cl);
   }
   *P_CS |= B_CS;
}

void ITDB02::printChar(byte c, int x, int y)
{
   byte i,ch;
   word j;
   word temp;

   *P_CS &= ~B_CS;
 
   if (orient==PORTRAIT)
   {
      setXY(x,y,x+cfont.x_size-1,y+cfont.y_size-1);
    
      temp=((c-cfont.offset)*((cfont.x_size/8)*cfont.y_size))+4;
      for(j=0;j<((cfont.x_size/8)*cfont.y_size);j++)
      {
         ch=pgm_read_byte(&cfont.font[temp]);
         for(i=0;i<8;i++)
         {   
            if((ch&(1<<(7-i)))!=0)   
            {
               setPixel(fcolorr, fcolorg, fcolorb);
            }
            else
            {
               setPixel(bcolorr, bcolorg, bcolorb);
            }   
         }
         temp++;
      }
   }
   else
   {
      temp=((c-cfont.offset)*((cfont.x_size/8)*cfont.y_size))+4;

      for(j=0;j<((cfont.x_size/8)*cfont.y_size);j+=(cfont.x_size/8))
      {
         setXY(x,y+(j/(cfont.x_size/8)),x+cfont.x_size-1,y+(j/(cfont.x_size/8)));
         for (int zz=(cfont.x_size/8)-1; zz>=0; zz--)
         {
            ch=pgm_read_byte(&cfont.font[temp+zz]);
            for(i=0;i<8;i++)
            {   
               if((ch&(1<<i))!=0)   
               {
                  setPixel(fcolorr, fcolorg, fcolorb);
               }
               else
               {
                  setPixel(bcolorr, bcolorg, bcolorb);
               }   
            }
         }
         temp+=(cfont.x_size/8);
      }
   }
   *P_CS |= B_CS;
}

void ITDB02::rotateChar(byte c, int x, int y, int pos, int deg)
{
   byte i,j,ch;
   word temp;
   int newx,newy;
   double radian;
   radian=deg*0.0175; 

   *P_CS &= ~B_CS;

   temp=((c-cfont.offset)*((cfont.x_size/8)*cfont.y_size))+4;
   for(j=0;j<cfont.y_size;j++)
   {
      for (int zz=0; zz<(cfont.x_size/8); zz++)
      {
         ch=pgm_read_byte(&cfont.font[temp+zz]);
         for(i=0;i<8;i++)
         {   
            newx=x+(((i+(zz*8)+(pos*cfont.x_size))*cos(radian))-((j)*sin(radian)));
            newy=y+(((j)*cos(radian))+((i+(zz*8)+(pos*cfont.x_size))*sin(radian)));

            setXY(newx,newy,newx+1,newy+1);
            
            if((ch&(1<<(7-i)))!=0)   
            {
               setPixel(fcolorr, fcolorg, fcolorb);
            }
            else 
            {
               setPixel(bcolorr, bcolorg, bcolorb);
            }   
         }
      }
      temp+=(cfont.x_size/8);
   }
   *P_CS |= B_CS;
}

void ITDB02::print(char *st, int x, int y, int deg)
{
   int stl, i;

   stl = strlen(st);

   if (orient==PORTRAIT)
   {
   if (x==RIGHT)
      x=240-(stl*cfont.x_size);
   if (x==CENTER)
      x=(240-(stl*cfont.x_size))/2;
   }
   else
   {
   if (x==RIGHT)
      x=(disp_y_size+1)-(stl*cfont.x_size);
   if (x==CENTER)
      x=((disp_y_size+1)-(stl*cfont.x_size))/2;
   }

   for (i=0; i<stl; i++)
      if (deg==0)
         printChar(*st++, x + (i*(cfont.x_size)), y);
      else
         rotateChar(*st++, x, y, i, deg);
}

void ITDB02::printNumI(long num, int x, int y)
{
  char buf[25];
  char st[27];
  boolean neg=false;
  int c=0;
 
  if (num==0)
  {
     st[0]=48;
     st[1]=0;
  }
  else
  {
     if (num<0)
     {
      neg=true;
      num=-num;
     }
    
     while (num>0)
     {
      buf[c]=48+(num % 10);
      c++;
      num=(num-(num % 10))/10;
     }
     buf[c]=0;
    
     if (neg)
     {
      st[0]=45;
     }
    
     for (int i=0; i<c; i++)
     {
      st[i+neg]=buf[c-i-1];
     }
     st[c+neg]=0;
  }

  print(st,x,y);
}

void ITDB02::printNumF(double num, byte dec, int x, int y)
{
  char buf[25];
  char st[27];
  boolean neg=false;
  int c=0;
  int c2;
  unsigned long inum;
 
  if (num==0)
  {
     st[0]=48;
     st[1]=46;
     for (int i=0; i<dec; i++)
        st[2+i]=48;
     st[2+dec]=0;
  }
  else
  {
     if (num<0)
     {
      neg=true;
      num=-num;
     }
    
     if (dec<1)
      dec=1;
     if (dec>5)
      dec=5;
    
     inum=long(num*pow(10,dec));
    
     while (inum>0)
     {
      buf[c]=48+(inum % 10);
      c++;
      inum=(inum-(inum % 10))/10;
     }
     if ((num<1) and (num>0))
     {
        buf[c]=48;
        c++;
     }
     buf[c]=0;
    
     if (neg)
     {
      st[0]=45;
     }
    
     c2=neg;
     for (int i=0; i<c; i++)
     {
      st[c2]=buf[c-i-1];
      c2++;
      if ((c-(c2-neg))==dec)
      {
        st[c2]=46;
        c2++;
      }
     }
     st[c2]=0;
  }

  print(st,x,y);
}

void ITDB02::setFont(uint8_t* font)
{
   cfont.font=font;
   cfont.x_size=pgm_read_byte(&cfont.font[0]);
   cfont.y_size=pgm_read_byte(&cfont.font[1]);
   cfont.offset=pgm_read_byte(&cfont.font[2]);
   cfont.numchars=pgm_read_byte(&cfont.font[3]);
}

void ITDB02::drawBitmap(int x, int y, int sx, int sy, unsigned int* data, int scale)
{
   unsigned int col;
   int tx, ty, tc, tsx, tsy;
   byte r, g, b;

   if (scale==1)
   {
      if (orient==PORTRAIT)
      {
         *P_CS &= ~B_CS;
         setXY(x, y, x+sx-1, y+sy-1);
         for (tc=0; tc<(sx*sy); tc++)
         {
            col=pgm_read_word(&data[tc]);
            LCD_Write_DATA(col>>8,col & 0xff);
         }
         *P_CS |= B_CS;
      }
      else
      {
         *P_CS &= ~B_CS;
         for (ty=0; ty<sy; ty++)
         {
            setXY(x, y+ty, x+sx-1, y+ty);
            for (tx=sx; tx>=0; tx--)
            {
               col=pgm_read_word(&data[(ty*sx)+tx]);
               LCD_Write_DATA(col>>8,col & 0xff);
            }
         }
         *P_CS |= B_CS;
      }
   }
   else
   {
      if (orient==PORTRAIT)
      {
         *P_CS &= ~B_CS;
         for (ty=0; ty<sy; ty++)
         {
            setXY(x, y+(ty*scale), x+((sx*scale)-1), y+(ty*scale)+scale);
            for (tsy=0; tsy<scale; tsy++)
               for (tx=0; tx<sx; tx++)
               {
                  col=pgm_read_word(&data[(ty*sx)+tx]);
                  for (tsx=0; tsx<scale; tsx++)
                     LCD_Write_DATA(col>>8,col & 0xff);
               }
         }
         *P_CS |= B_CS;
      }
      else
      {
         *P_CS &= ~B_CS;
         for (ty=0; ty<sy; ty++)
         {
            for (tsy=0; tsy<scale; tsy++)
            {
               setXY(x, y+(ty*scale)+tsy, x+((sx*scale)-1), y+(ty*scale)+tsy);
               for (tx=sx; tx>=0; tx--)
               {
                  col=pgm_read_word(&data[(ty*sx)+tx]);
                  for (tsx=0; tsx<scale; tsx++)
                     LCD_Write_DATA(col>>8,col & 0xff);
               }
            }
         }
         *P_CS |= B_CS;
      }
   }
}

void ITDB02::drawBitmap(int x, int y, int sx, int sy, unsigned int* data, int deg, int rox, int roy)
{
   unsigned int col;
   int tx, ty, newx, newy;
   byte r, g, b;
   double radian;
   radian=deg*0.0175; 

   if (deg==0)
      drawBitmap(x, y, sx, sy, data);
   else
   {
      *P_CS &= ~B_CS;
      for (ty=0; ty<sy; ty++)
         for (tx=0; tx<sx; tx++)
         {
            col=pgm_read_word(&data[(ty*sx)+tx]);

            newx=x+rox+(((tx-rox)*cos(radian))-((ty-roy)*sin(radian)));
            newy=y+roy+(((ty-roy)*cos(radian))+((tx-rox)*sin(radian)));

            setXY(newx, newy, newx, newy);
            LCD_Write_DATA(col>>8,col & 0xff);
         }
      *P_CS |= B_CS;
   }
}

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 23, 2012, 11:09:15 PM
So if we can take everything referring to ITDB32S and copy the sketches from the new putting them in the original but keep the name as ITDB02 then it should be ok but not a 2 min job, I got an email from Henning saying we can hire him at 160 lol not bad for freeware software

Kev

I still think the best way will be to get on to electronics lee as hes sent you the incorrect one its not the screen thats listed in his auction failing that you will only know for cert if you get a screen from these

 
http://www.ebay.co.uk/itm/170758835235?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: LiquidArts on January 23, 2012, 11:41:43 PM
The Jarduino code worked for me when we first starting playing with the EEPROM error we were getting for the other channels. I got both the shield and display from iTead at the same time. One thing I don't do is go through Ebay for any electronics parts as i've had mishaps using "generic" versions. Even now i'm not having any issues with the display or RTC at all. After I go mine up and running I haven't been back to Hennings site to dl any new updates to the libraries for the graph_16 or touch. Hmmmmm...... :41:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 24, 2012, 12:10:37 AM
I shall try it again with mine tom, but his scrren code still needs amending you busy Martin ? lol

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 24, 2012, 11:52:14 AM
Got arduino 0021 software downloaded all the new sketches from hennings code

http://www.henningkarlsen.com/electronics/p_itdb02_analog_clock.php

analogue clock
graph16
touch
rtc1307

cleaned my library of all old files

Uploads the clock sketch fine, added the jarduino to the library folder and got these errors

Not to sure how to copy and paste them
Error class itdb02 has no named font size
font_large not declared in scope
font small not declared in scope
rtc was not declared in scope
ds1307_sec was not declared
           _min
           _hr
           _date
          _month
          _yr

Martin if you compare the old Graph16 to the new graph 16 theres two extra files in the old library called small font and big font.

Not to sure how you got yours uploading with the revised sketches

kev






Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 24, 2012, 12:01:09 PM
So this time i copy the old rtc1307 file to the 0021 software and overwrite

then the errors point to just the small and big fonts sketches we know are missing

Kev



Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 24, 2012, 01:42:06 PM
 :c002: Looks like the thread has been translated into geek speak  :85: I'll probably order the screen from iteadstudio tonight, depending on what I read later in this thread. I just hope it's in stock and I order the right one.

I'm sure the screen I have will be useful for dabbling with on other projects, I have an arduino board and an itdb board, so could use it with them perhaps.

All this and I haven't considered what led's and drivers yet  :confuse:

Appreciate the help guys, and if you've any spare Tramadol I might find it useful  ???
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 24, 2012, 01:56:44 PM
buy a new screen but shove up it must be the hx8347-a ( just double check )

i bill buy your old screen could put some use to it,

I have noticed the physical address between the screens are different the itdb032
Old sketch for hx8347-a
   //240x320 window setting
      main_W_com_data(0x0002,0x0000); // Column address start2
      main_W_com_data(0x0003,0x0000); // Column address start1
      main_W_com_data(0x0004,0x0000); // Column address end2
      main_W_com_data(0x0005,0x00ef); // Column address end1
      main_W_com_data(0x0006,0x0000); // Row address start2
      main_W_com_data(0x0007,0x0000); // Row address start1
      main_W_com_data(0x0008,0x0001); // Row address end2
      main_W_com_data(0x0009,0x003f); // Row address end1

new sketch for itdb0232 screen

   //240x320 window setting
      main_W_com_data(0x02,0x0000); // Column address start2
      main_W_com_data(0x03,0x0000); // Column address start1
      main_W_com_data(0x04,0x0000); // Column address end2
      main_W_com_data(0x05,0x00ef); // Column address end1
      main_W_com_data(0x06,0x0000); // Row address start2
      main_W_com_data(0x07,0x0000); // Row address start1
      main_W_com_data(0x08,0x0001); // Row address end2
      main_W_com_data(0x09,0x003f); // Row address end1


If its just a matter of changing all them values found in ITDB02_Graph16 "cpp" and "h" sketches its not to bad

Kev


Title: Re: Arduino 3.2 tft colour touch screen build
Post by: LiquidArts on January 24, 2012, 03:06:35 PM
ugh....oh yeah..i forgot about those two changes....lol..hmmmmm....i can always zip the files needed n post em here i guess.....i do know there are diff rtc librariees out there...

Correct Screen:::

http://iteadstudio.com/store/index.php?main_page=product_info&cPath=57_58&products_id=54
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 24, 2012, 10:46:20 PM
ugh....oh yeah..i forgot about those two changes....lol..hmmmmm....i can always zip the files needed n post em here i guess.....i do know there are diff rtc librariees out there...

Correct Screen:::

http://iteadstudio.com/store/index.php?main_page=product_info&cPath=57_58&products_id=54

I decided to order the screen tonight, 17 (with discount voucher), another wait for international delivery  :'(

At least I will be able to get it running using current jarduino code, and have a tweak/play to try and understand the coding techniques, with the safety factor that I can return to basics and it will work.

Thanks guys for all your help, anyone want a fleabay screen at cost  :93: or should I keep it and use it with my arduino basic board, itdb02 (non mega and the 3.2 screen, also have a nokia screen, still protected film, could do with a de clutter  :whoo:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 24, 2012, 10:54:42 PM
depending how much you want i will buy it lol

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 24, 2012, 11:18:41 PM
depending how much you want i will buy it lol

kev
Drop me an email Kev, let me know what you are after
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 25, 2012, 08:56:39 PM
Just been sent a link to this controller might be worth a look

http://www.marinedepot.com/Neptune_Systems_Apex_Variable_Speed_Dimming_Module_%28VDM%29_Monitor_Controller_Accessories-Neptune_Systems-NS3339-FITEMOAC-vi.html

Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on January 25, 2012, 08:59:52 PM
Just been sent a link to this controller might be worth a look

http://www.marinedepot.com/Neptune_Systems_Apex_Variable_Speed_Dimming_Module_%28VDM%29_Monitor_Controller_Accessories-Neptune_Systems-NS3339-FITEMOAC-vi.html

Kev
I prefer the DIY route, with the potential to modify to suit individual requirements.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 25, 2012, 11:21:53 PM
Me to budd and get to know how they work
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 08, 2012, 05:31:48 AM
Gidday again all  :29:
Today My Mega, the mega shield and the 3.2 touch screen arrived  :whoo:
BUT when a went to load stilo or Jarduino i'm told the code is too big? what could it be?

Kiwikid
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 08, 2012, 08:57:44 AM
now my head really hurts
This is what I got from unzipping Jarduino into 1.0

it's long

In file included from Jarduino_1.cpp:33:
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:76:22: error: WProgram.h: No such file or directory
In file included from Jarduino_1.cpp:39:
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\DS1307/DS1307.h:12:24: error: WConstants.h: No such file or directory
In file included from Jarduino_1.cpp:33:
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:84: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:85: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:89: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:89: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:89: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:96: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:96: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:96: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:97: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:97: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:97: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:100: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:101: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:109: error: 'byte' does not name a type
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:110: error: 'byte' does not name a type
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:111: error: 'byte' does not name a type
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:112: error: 'byte' does not name a type
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:120: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:120: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:120: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:123: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:124: error: 'word' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:124: error: 'word' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:124: error: 'word' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:124: error: 'word' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Graph16/ITDB02_Graph16.h:125: error: 'byte' has not been declared
In file included from Jarduino_1.cpp:35:
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Touch/ITDB02_Touch.h:55: error: 'word' does not name a type
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Touch/ITDB02_Touch.h:57: error: expected `)' before 'tclk'
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Touch/ITDB02_Touch.h:59: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Touch/ITDB02_Touch.h:64: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Touch/ITDB02_Touch.h:67: error: 'byte' does not name a type
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Touch/ITDB02_Touch.h:68: error: 'byte' does not name a type
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Touch/ITDB02_Touch.h:69: error: 'byte' does not name a type
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Touch/ITDB02_Touch.h:71: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Touch/ITDB02_Touch.h:72: error: 'word' does not name a type
In file included from Jarduino_1.cpp:38:
/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'
In file included from Jarduino_1.cpp:39:
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\DS1307/DS1307.h: At global scope:
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\DS1307/DS1307.h:51: error: 'boolean' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\DS1307/DS1307.h:52: error: 'boolean' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\DS1307/DS1307.h:53: error: 'boolean' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\DS1307/DS1307.h:57: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\DS1307/DS1307.h:58: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\DS1307/DS1307.h:59: error: 'byte' does not name a type
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\DS1307/DS1307.h:60: error: 'byte' has not been declared
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\DS1307/DS1307.h:63: error: 'byte' does not name a type
Jarduino_1.pde:-1: error: no matching function for call to 'ITDB02_Touch::ITDB02_Touch(int, int, int, int, int)'
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Touch/ITDB02_Touch.h:53: note: candidates are: ITDB02_Touch::ITDB02_Touch()
C:\Users\Robert\Desktop\Downloads\arduino-1.0-windows\arduino-1.0\libraries\ITDB02_Touch/ITDB02_Touch.h:53: note:                 ITDB02_Touch::ITDB02_Touch(const ITDB02_Touch&)
Jarduino_1.cpp: In function 'void mainScreen(boolean)':
Jarduino_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_1.pde:-1: error: initializing argument 1 of 'String& String::operator=(const char*)'
Jarduino_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_1.pde:-1: error: initializing argument 1 of 'String& String::operator=(const char*)'
Jarduino_1.cpp: In function 'void testScreen(boolean)':
Jarduino_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_1.pde:-1: error: initializing argument 1 of 'String& String::operator=(const char*)'
Jarduino_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_1.pde:-1: error: initializing argument 1 of 'String& String::operator=(const char*)'
Jarduino_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_1.pde:-1: error: initializing argument 1 of 'String& String::operator=(const char*)'
Jarduino_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_1.pde:-1: error: initializing argument 1 of 'String& String::operator=(const char*)'
Jarduino_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_1.pde:-1: error: initializing argument 1 of 'String& String::operator=(const char*)'
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 08, 2012, 11:53:10 AM
Will not work in 1 read the threads budd

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 09, 2012, 05:38:12 AM
Will not work in 1 read the threads budd

I've already had a go at 018 and 022 but this morning I did try 021 and yes It did compile and yes it did up load and NO I see nothing but white screen...now, yes i did try ITDB02        myGLCD(38,39,40,41,ITDB32S);   // Remember to add ASPECT_16x9 if you are using an ITDB02-3.2WC!
and no It didnt work, all the boards have come from Istore. its go me buggered
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 09, 2012, 08:19:05 AM
I suspect the one you have has got the same controller in as Ian had the ssd1289 just check as the one you need is the HX8347-A

Put a link to to the screen you got budd and i will check a little later on, Sorry i am not on much had a bereavement in the family a few days ago

Just check the start of your sketch says

// Change pins for screen and touch panel if needed
ITDB02        myGLCD(38,39,40,41);     // Remember to add ASPECT_16x9 if you are using an ITDB02-3.2WC!
ITDB02_Touch  myTouch(6,5,4,3,2);

If that does not work try to down load the analogue clock sketch using hennings code the links a few few pages back and use the lcd code

arduino 0021 software downloaded all the new sketches from hennings code

http://www.henningkarlsen.com/electronics/p_itdb02_analog_clock.php

analogue clock
graph16
touch
rtc1307

clean library of all old files 

Instead of
ITDB02        myGLCD(38,39,40,41);

Use this one to check
ITDB02        myGLCD(38,39,40,41,ITDB32S);   // Remember to add ASPECT_16x9 if you are using an ITDB02-3.2WC!



kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 09, 2012, 05:04:14 PM
No worries mate
this is the screen i bought....http://iteadstudio.com/store/index.php?main_page=product_info&cPath=57_58&products_id=54 (http://iteadstudio.com/store/index.php?main_page=product_info&cPath=57_58&products_id=54)

Cheers for that...looks like I have the ssd1289 controller as with those changes the clock started good as gold

even managed to calibrate the screen

so if nothing else I have a clock with 54 digital pins on it lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 09, 2012, 06:42:17 PM
The program is written for the HX8347-A screen not the ssd1289 and will take quite a bit of modifying to get the sketch to work with that screen Will be far easier searching in google for "HX8347-A" controller screen then send them a message before you pay for it stating it has to be that controller no other one will be compatible


kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 10, 2012, 03:57:31 AM
so tell me if i don't use the touch side of the screen....it must be do able to bring the screen into an existing code. yes? no?

I'm thinking I might just use this screen as read only and get a new one for inputs
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 10, 2012, 04:16:26 PM
Not quite sure i understand for the screen to work it has to be an HX8347-A or it will just light up white nothing else, should you get the right screen then the touch part will work also i have just ordered one of these ones so will you know if its the right type

Kev

http://www.ebay.co.uk/itm/170758835235?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: LiquidArts on February 10, 2012, 04:50:10 PM
The Itead 3.2" TFT is what I have and it works for me......i'll email you the sketch I have Robert.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 10, 2012, 05:26:05 PM
the itead onw now is an ssd1289 and will not work
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 11, 2012, 03:33:17 AM
Sorry kev, what I was tryin to get at was if the analog clock can work...why can't i use the coding (with changes) to display my controller
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 11, 2012, 02:28:11 PM
you can but the main code will need to be changed to match all the graph16 fonts not a 2 min job budd
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 11, 2012, 11:42:41 PM
you can but the main code will need to be changed to match all the graph16 fonts not a 2 min job budd
Which is why I ordered a replacement screen, still not here yet  :34: but I didn't fancy diving in at the deep end trying to work out the coding and resolve issues at the same time. :41:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 12, 2012, 02:25:09 AM
Looked over it for a couple of hours yesterday..not just fonts etc but RTC as well

Something will have to be done..Talked to a supplier of mine in China, The HX8347-A is no longer being used so once these few on flea bay and the likes are gone that well be it
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 14, 2012, 12:45:01 PM
My iteastudio screen arrived .... chip has XPT2046 on it ...

is this good news or bad news.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 15, 2012, 01:08:13 PM
I'm guessing bad then  :41:   

I bought it from iteastudio link in this thread, guess they are using a different controller now.

Looks like i'm going to have to try and understand the coding then, this should be interesting.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 15, 2012, 07:04:17 PM
haven't had 2 mins to scratch my own ass budd

where did you get it from again ? and did you state to send the hx8149-a or what ever it was

Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 15, 2012, 09:09:39 PM
Got it from iteastudio using the link in the thread. Didn't realise I needed to specify the controller chip  ???

Guess i'll have to persevere with this one and see what I can do, I downloaded UTFT library files, changed the sketch to include and tried a few things, next hurdle is the fonts issue, not sure what I need to work out there.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 15, 2012, 09:42:21 PM
Just had a look at them and they have only just changes their screens to the ssd1289 controller BUGGA !

will see what i can do for you when i have a sec now i have the same one as you
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 15, 2012, 11:39:04 PM
I dropped Henning an email, as there is a UTFT library available, heres his reply.

*******************************
This display module, in combination with the ITDB02 Arduino MEGA Shield
v1.1 and an Arduino Mega (of any kind) is indeed compatible with the UTFT library.

The module does use the XPT2046 chip, but that is the controller for the touch screen. The main display controller is a SSD1289.
The model name you will need in UTFT is ITDB32S.
*******************************

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 16, 2012, 05:17:10 AM
 :c029: I down loaded the said file myself and thats the most I've got out of this screen since I got it. :c017:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 16, 2012, 10:45:27 AM
:c029: I down loaded the said file myself and thats the most I've got out of this screen since I got it. :c017:
I have run a few of the example sketches and they work fine, but it will be  a steep learning curve to try and modify the jarduino code to work, esp as i'm starting at the bottom  :93: I've a few things to do then i'll set aside some time to have a go.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 16, 2012, 04:45:56 PM
think the code ITDB32S referees to the ssd1289 controller and the hx one is ITDB32

Kev

His code on his site has support for 4 types of screen which is fine and worked as we found out but then we need to amend the jarduino code to make it accept hennings new tft library need fonts sketches putting in etc, it may be easier to re write the tft sketch rather then the jarduino sketch
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 16, 2012, 08:14:38 PM
think the code ITDB32S referees to the ssd1289 controller and the hx one is ITDB32

Kev

His code on his site has support for 4 types of screen which is fine and worked as we found out but then we need to amend the jarduino code to make it accept hennings new tft library need fonts sketches putting in etc, it may be easier to re write the tft sketch rather then the jarduino sketch

All Greek to me at the minute  :34:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 16, 2012, 11:28:19 PM
Will try to explain it easier lol

The std jarduino code that we was working with before we found out your screen was the wrong type was written for an lcd with an HX8347-A controller

Now the screens we are using the 3.2" touch have started using more controllers so hennings rewritten the lcd sketch to include HX8347-A
ILI9325D ILI9327 SSD1289 types, now doing this has moved the fonts and renamed other sketches needed for jarduino to work.

Hennings now written the UTFT sketch to replace the graph_16 one so keep a copy of the graph_16 handy

Kev
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 17, 2012, 11:39:52 AM
Thought this wasn't a two minte job, looks like I got it working  :c029: well theres the main screen showing anyway.
actualy took me 10 minutes, not being cheeky as I know there will be more to do i'm sure.

Using Arduino v0021 and UTFT library

Well after some time trying to get the touch calibration working .... I couldn't !!!!! but I did transfer the previously achieved settings to the currently running arduino area, and visually the jarduino appears to be working fine. Now I can have a go at trying to understand it  :57:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 17, 2012, 07:17:14 PM
Show us what you have done  :03:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 17, 2012, 08:17:21 PM
Well Well Well....I've got it going as well  :bravo_2:

even touch sort of works.....will have to re set it again me thinks.

But hell thats cool
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 17, 2012, 09:18:19 PM
Well Well Well....I've got it going as well  :bravo_2:

even touch sort of works.....will have to re set it again me thinks.

But hell thats cool
My touch works fine, but I had to use previous calibration settings, couldn't get the calibration to work this time.

Good to see you got it going too, I was out and about so didn't get a chance to post what I did.

What version of Arduino are you using.

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 17, 2012, 09:28:47 PM
I used 022

had to comment out a few bits and change fonts etc but yeah it all seems to be working
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 17, 2012, 09:33:44 PM
Pretty much same changes here

Don't know if theres any benefit using 022 but i'll see if it works ok for me, at least then theres two of us on the same level, to help work any issues that may arise.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 17, 2012, 09:41:02 PM
True that...My only problem is Wife threw away the settings for calibration  :confuse:

so I'll see if i can reload it all on my other laptop
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 17, 2012, 10:03:55 PM
I've just set it up with 0023. maybe theres a benefit for running the latest (non v1) version, I would try v1 if I was a bit more experienced, but have no confidence in touch version being compatible. Versions seems to be a real PIA, never understand this  :confuse:

I'll have a play with the calibration again to see if I can get it working - did before with Kevs help.

Your missus the same then, throws away anything useful and keeps crap  >:D
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 17, 2012, 10:10:28 PM
Now with some progress i'm thinking of the practicalities of implementing the display.

Are people using this on the led array or inside a cabinet, if it's inside the cabinet is it a standard ide type ribbin that is used to connect the tft to the shield, with an alternative connector.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 17, 2012, 10:23:22 PM
got it to calibrate alright but now another prob....went to reload jarduino...and now i get " RTC was not declared in this scope"   wtf???
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 17, 2012, 11:01:13 PM
got it to calibrate alright but now another prob....went to reload jarduino...and now i get " RTC was not declared in this scope"   wtf???
This is not an educated response  :57: have you copied all the relevant libraries into the arduino area.

Interested in how you got it to calibrate

Just playing with changng to 24hr clock and then looking at temp conversion to deg C
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 17, 2012, 11:06:06 PM
I reloaded 021 in a new folder and brought across the Lib's needed and followed what Kev told u to do back on page 3 or 4 or where ever it was.

Got the code to work again...somewhere i changed the rtc lib so loaded a new one and away it went.
something is still wrong tho with the calibration as it miles out even after redoing it
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 17, 2012, 11:09:41 PM
I reloaded 021 in a new folder and brought across the Lib's needed and followed what Kev told u to do back on page 3 or 4 or where ever it was.

Got the code to work again...somewhere i changed the rtc lib so loaded a new one and away it went.
something is still wrong tho with the calibration as it miles out even after redoing it
I noted the changes I had made in the ITDB02_Touch.cpp file and transferred these to the new version. I made NO changes to RTC lib files that I am aware of.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 17, 2012, 11:22:57 PM
I've changed the time format to 24 hour and the date to dd mmm yyyy - personal preferences.

Nothing compared to the quality coding the originators have done, the fact that I have been able to make these changes is credit to the originators commenting - with a bit of my I.T. savvy.  :whoo:

It will surely be fun when I try to actually connect something to the device, I have a couple of DS1307's to play with, if someone can steer me how to physically connect one it would be helpful, saves me trawling the threads as I have seen it somewhere.

Also, the info I saw showed it housed in a small test tube type cylinder for water immersion, I plan to use this for display tank and sump temp monitoring.

Really starting to enjoy this at last - daunting at first  :86:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 17, 2012, 11:29:09 PM
I'm a dumb ****   :s_laugh:
I forgot to put the - before the first lot of numbers lmao

now it all seems to work good.
I'll also have a look at changing from F to C
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 17, 2012, 11:31:36 PM
I'm a dumb ****   :s_laugh:
I forgot to put the - before the first lot of numbers lmao

now it all seems to work good.
I'll also have a look at changing from F to C
Done - change a CELSIUS variable from false to true



Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 17, 2012, 11:34:31 PM
I'm well pleased .......

Just need to suss the temp monitoring next to keep my appetite going before I get on to the actual led's

An 1100 quid freelander clutch replacement has put a hurdle my way  :41:

Good to see you progressing well too, a good night for us both  :whoo:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 18, 2012, 12:59:11 AM

Done - change a CELSIUS variable from false to true
[/quote]

sweet  :bravo_2:

might be a good nite for you...it was 8am saturday for me lol

don't you just love clutches    :c023:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 18, 2012, 01:18:32 AM
8 am I assume is your start time, i'll be  :34:

A clutch on most motors ok, mine  :41: was going to do it myself, then I read the manual and it mentioned engine support, sub frame support, power steering draining, special tools .... only draining is my wallet  >:(
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: reefermad on February 18, 2012, 08:30:19 AM
Hi its not so much the clutch thats expensive its the dual mass flywheel which cost the money, i had a quote for an X type Jaguar and they quoted 700 just for the flywheel which is ridiculous. You can have it done with an ordinary flywheel which is a lot cheaper but not as smooth on gear changing it just depends on how you drive. eric :86:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 18, 2012, 04:56:53 PM
Hi its not so much the clutch thats expensive its the dual mass flywheel which cost the money, i had a quote for an X type Jaguar and they quoted 700 just for the flywheel which is ridiculous. You can have it done with an ordinary flywheel which is a lot cheaper but not as smooth on gear changing it just depends on how you drive. eric :86:

The garage have quoted me to include the DMF, if it's not fitted then they won't charge - not holding my breath  :34:

I've a few wee jobs to do then i'd like to connect up one of the DS1307 (IIRC) to see if the software is reading it, anyone point me to info on how it's connected, which wire etc.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: kiwikid_1 on February 18, 2012, 06:26:22 PM


I've a few wee jobs to do then i'd like to connect up one of the DS1307 (IIRC) to see if the software is reading it, anyone point me to info on how it's connected, which wire etc.

I found this..I just cut and pasted it

DS1307
p4 - gnd
p5 - A4
p6 - A5
p8 - 5V

have tried it with and without 2.2k pull-up resistors between p5-p8 and p4-p8.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 18, 2012, 07:24:25 PM
Sorry guys had the funeral yesterday were all still in the dumps will take a long time to be back to normal, look at the stilo manual for the temp controller wiring

Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 18, 2012, 10:45:25 PM
Sorry guys had the funeral yesterday were all still in the dumps will take a long time to be back to normal, look at the stilo manual for the temp controller wiring

Kev
Thoughts are with you all Kev, all too recent in mine too although it was last Februrary.

I quoted DS1307 it's actually the temp sensor DS18B20  i'm looking to connect  :c023:

Looking at the mega/shield/screen mounting, where the heck do I physically connect the wires  ??? do I need another shield !!!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 19, 2012, 10:43:48 AM
I just soldered mine straight on to the mega 1.1 shield budd

and thank you
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 19, 2012, 11:28:33 AM
I just soldered mine straight on to the mega 1.1 shield budd

and thank you
Didn't fancy soldering direct to the board, will have a wee think about it.

Had a think - and soldered on to the board  :57:

Couple of observations when connecting the DS18B20 sensor.

The commented text in Jarduino sketch referring to the sensors, says pins 47 to 49 but the definitions are for 48 - 50 (just mentioning in case it confuses someone else  :a102:)

When I "touched" the sensor to each pin the temp registered on the display fine, but after disconnecting the sensor, the values are still indicating 5 (ish) deg C and still have not returned to the default zero - UPDATE the first digit resets back to zero, the rest of the digits remain on screen eg 25.6 changes to 05.6. Not a problem if the sensor is always connected of course  :86:.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 19, 2012, 08:18:52 PM
You are in front of me at the min, To be honest after whats happened in the last few weeks some one could take the tank and led build and keep them just lost all interest cant concentrate on nothing at all, Need a size 10 boot up my ass lol

Sure it will pass and i will get on with it, feel sorry for my fish as i forgot to feed them for 2 days ! heads all over 
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 19, 2012, 09:47:10 PM
You are in front of me at the min, To be honest after whats happened in the last few weeks some one could take the tank and led build and keep them just lost all interest cant concentrate on nothing at all, Need a size 10 boot up my ass lol

Sure it will pass and i will get on with it, feel sorry for my fish as i forgot to feed them for 2 days ! heads all over

Been there too, I couldn't see my fish through the glass, that was the thing that actually picked me up.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 19, 2012, 10:16:55 PM
Just shoved some top up water in mine as the pump was sucking in air so threw some more food in, the substrate is green over at the min think i will get some algae-x to help me a little until i get back on top of things



Title: Re: Arduino 3.2 tft colour touch screen build
Post by: unrealworld on February 21, 2012, 07:56:25 PM

Thanks for the reply, I had a PM with Saltydog but he was under the impression that you could only get two channels to store in the EEPROM if there was a power failure??



Just wondering if anyone has any update with this? I've been working on mine for a while now and have been stuck trying to sort out the eeprom for additional channels for about 5 months now...

A quick snap of my controller, apologies for the poor quality, it's only off my phone.
(http://i294.photobucket.com/albums/mm101/briocheboy/IMG-20120221-00067.jpg)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 21, 2012, 08:06:03 PM
Have you tried the jarduino code that Jamie has done thats got 5 channels bud

Kev

4th post down budd first page

http://ukreefs.com/index.php?topic=258.msg1413#msg1413

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: unrealworld on February 21, 2012, 08:24:06 PM
Looks incomplete to me???
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 21, 2012, 08:30:46 PM
Whats incomplete ?

its a working sketch

(http://a4.sphotos.ak.fbcdn.net/hphotos-ak-ash4/425372_10150580406558097_670163096_9167595_730174732_n.jpg)

unless you was talking about been able to adjust the leds individual by the controller this is the only thing that can not be done only whites and blues can be changed

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: unrealworld on February 21, 2012, 08:33:03 PM
Yes, changing the leds from the controller is what I was talking about :( Mine is complete other than that. Do we know why we can't save more than two channels in the eeprom? There is obviously plenty of memory to do it.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 21, 2012, 08:35:18 PM
You can the sketch just needs amending

(http://a3.sphotos.ak.fbcdn.net/hphotos-ak-ash4/425240_10150580407338097_670163096_9167601_1228904443_n.jpg)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: unrealworld on February 21, 2012, 08:36:47 PM
And the set values (of all channels) save after a power out? You're getting my hopes up here lol.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 21, 2012, 08:51:52 PM
Yep fully running and saves all info got two controllers on the 1280 with that sketch on and just ordered a 2560 for better icons

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: unrealworld on February 21, 2012, 08:54:19 PM
Oooh, any chance you could send the code over so I can study it please?

Been so frustrated with this eeprom stuff :(
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 21, 2012, 08:58:01 PM
Some screen shots of his controller

(http://i1232.photobucket.com/albums/ff370/TheDOdblG1/LED%20Project%20Pics%20for%20RC/67.png)

(http://i1232.photobucket.com/albums/ff370/TheDOdblG1/LED%20Project%20Pics%20for%20RC/68.png)

(http://i1232.photobucket.com/albums/ff370/TheDOdblG1/LED%20Project%20Pics%20for%20RC/69.png)

(http://i1232.photobucket.com/albums/ff370/TheDOdblG1/LED%20Project%20Pics%20for%20RC/70.png)

(http://i1232.photobucket.com/albums/ff370/TheDOdblG1/LED%20Project%20Pics%20for%20RC/71.png)

(http://i1232.photobucket.com/albums/ff370/TheDOdblG1/LED%20Project%20Pics%20for%20RC/72.png)

(http://i1232.photobucket.com/albums/ff370/TheDOdblG1/LED%20Project%20Pics%20for%20RC/73.png)

(http://i1232.photobucket.com/albums/ff370/TheDOdblG1/LED%20Project%20Pics%20for%20RC/74.png)


Will let you know how it runs my finished led rig lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 21, 2012, 09:02:56 PM
Would love to but respecting the wishes of the genius who sorted it out

this is the lad though

http://ukreefs.com/index.php?action=profile;u=75

and the start of the code

************************************************************************************/
// Jarduino Aquarium Controller v.1.0 - release date: December 2011
//   Written and Debugged by Jamie Jardin
//     http://ukreefs.com/index.php?action=profile;u=75
//************************************************************************************/
//
// Main code based on Stilo
//   http://code.google.com/p/stilo/
//
// LED controlling algorithm is based on Krusduino by Hugh Dangerfield
//   http://code.google.com/p/dangerduino/
//
// Moon Phase algorithm is based in part on a Moon Phase function by NightAtTheOpera
//   http://www.-------------forums/index.php?showtopic=217305&st=0&
//
// Special Thanks:
//    Dave Rosser & Hugh Dangerfield - (aka Lewis & Clark?) - Krusduino's their baby
//      http://www.----------------/forums/showthread.php?t=363432
//    Mark Chester aka "Koyaanisqatsi" - Knows everything there's to know about LEDs
//      http://www.chestersgarage.com/
//    Kev Tench aka "Tangtastic" - Alias says it all: DIY Reef Wizard!
//     http://ukreefs.com/index.php?action=profile;u=1
//    Ned Simpson aka "Surff" - Another DIY Reef Guy
//      http://www.-------------/forums/showthread.php?t=400993
//    Neil Williams aka "neildotwilliams" - Yet another DIY Reefer
//      http://www.----------------/forums/member.php?u=37721
//    Albert aka "selfonlypath" - Arduino genius
//      http://arduino.cc/forum/index.php?action=profile;u=12410
//
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: unrealworld on February 21, 2012, 09:21:26 PM
Would you be able to just post the eeprom bit by itself? I have pmed Jamie, but it may be a little time before he replies and I'm eager to sort out my controller - Spent far too long on it already.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 21, 2012, 09:50:34 PM
Did that once before and he got upset so i will email him as well to ask first but without his say so not posting anything up
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: unrealworld on February 21, 2012, 09:56:46 PM
Ok, thanks. If he doesn't want it in the public domain, I think you have my email address :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 21, 2012, 10:06:45 PM
no worries budd i think he put a disclaimer on the sketch as he kind of got stung on one of his sketches, when i found out i kind of understood why

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 22, 2012, 01:19:49 PM
Nice to see some variations of coding, what are the main differences between this latest one and the Jarduino code.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 22, 2012, 06:38:18 PM
Powerhead control, feeding button and can change all the led values buy the touch screen, Also theres a clock screen saver

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 22, 2012, 10:11:35 PM
Powerhead control, feeding button and can change all the led values buy the touch screen, Also theres a clock screen saver

kev

Some useful additions there, I had been thinking of trying to add a screensaver at some stage to reduce burn in on the screen over time.

I'm waiting on a couple of waterproof sensors, then when I can recover from car repair costs, will start looking properly at the led selection and mounting.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on February 23, 2012, 08:18:59 AM
unless you was talking about been able to adjust the leds individual by the controller this is the only thing that can not be done only whites and blues can be changed

Not true! ALL 6 channels / colors including the moon lights' maximum luminosity can easily be adjusted, changed, tested, and saved right on the screen. Feeding times, wave maker / powerhead timings, and even your preferences are also able to be saved. I will eventually post a video demonstrating...

In addition to some of the changes Kev mentioned, some more user-friendly features I added was the ability to change time and date formats as well as temperature scale format, also directly from the screen. Also, if you use pwm fans like I do, I changed the frequency to 25MHz, which is outside our hearing range. And the hotter the leds get, the faster the fans run. Because of the frequency change, they are whisper quiet.  In fact, I can't hear them running at all!

And to clear up some Arduino MEGA stuff, the eeprom of the 1280 can hold 2048 values, and the 2560 can hold 4096 values.  UNO and deuliminove each hold 512.  My controller uses less than 20% of what's available on the 2560. You can play around with the eeprom examples to verify the entered values are indeed being saved.  Make sure you change the 512 to 4096 in the sketch example(s). Try using the "eeprom read" sketch.

And finally to all who wish to get a copy of my code, please be patient. I will make it available shortly to anyone who wants it for personal use only.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 23, 2012, 01:14:42 PM
Now were cooking on gas  :c029: sounds like the mutts nuts  >:D

Any plans to incorporate ph and orp probe readings, i've been nosying around and found some small interface boards "stamps" that can be used.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on February 23, 2012, 02:59:56 PM
I did consider it, and implementing these features would be trivial, however I feel these particular sensors would prove to be unreliable at best, especially in long haul. They are not made to be continuously submerged, and doing so without constant maintenance will eventually lead to their failure. I just can't justify the cost, and considering the high maintenance, it would involve far less effort to simply take manual readings. Save your money.

Maybe I can interest you in purchasing my new calcium, magnesium, nitrate, nitrite, ammonia, kh, and iodine sensor shield?  :s_laugh:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 23, 2012, 03:32:27 PM
Top bloke Jamie get the pics of the sensor ones posted up you never know, got 2 spare 328, 2 spare 1280 an a 2560 now lol


Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on February 23, 2012, 08:32:31 PM
Top bloke Jamie get the pics of the sensor ones posted up you never know, got 2 spare 328, 2 spare 1280 an a 2560 now lol
Kev
Top bloke for sure ... quality advice too.

Are you on a mission with the arduino collection  :29:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on February 23, 2012, 10:44:50 PM
 :c017: this thread is great been trying to follow this is there no uk supplier of the screens ? and the ITDB02 Arduino MEGA Shield v1.1 ?
thanks again
Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 23, 2012, 11:12:56 PM
No budd delivery is usually 5 -10 days from them so not to bad
Title: Arduino 3.2 tft colour touch screen build
Post by: loneranger on March 02, 2012, 07:28:10 AM
Now watching eagerly got some code for a remote temp sensor with relays


---
I am here: http://tapatalk.com/map.php?iecfdw
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 02, 2012, 09:44:42 AM
Just Orded mine today lets see how long :)
Title: Arduino 3.2 tft colour touch screen build
Post by: loneranger on March 02, 2012, 11:08:00 AM
Took nearly 2 weeks for me to get mine can you confirm the libraries and IDE version used


---
I am here: http://tapatalk.com/map.php?4djpmb
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on March 02, 2012, 12:22:28 PM
Hi Kev,

Can you confirm the link on page 1 for the TFT is the correct one (with a SSD1289 Controller) ?  and if so will the sketch work as is ?

Thanks
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 02, 2012, 12:45:18 PM
No the ssd1289 is the wrong type i used although others on here got it working after some messing about

mine was the hx 8349 or something like that
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 02, 2012, 02:43:23 PM
so this one
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=57_58&products_id=54

is no good ?
I hope so just orded it
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on March 02, 2012, 03:27:24 PM
so this one
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=57_58&products_id=54

is no good ?
I hope so just orded it

I think at least two people from this thread got that tft to work (although they lost me in how they did it) !  as per Tangtastics thread :-

"The std jarduino code that we was working with before we found out your screen was the wrong type was written for an lcd with an HX8347-A controller"

That's why I double checked !

If you want to save yourself some work you could try ordering one of these :-

http://www.ebay.co.uk/itm/170758835235?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

It states in the description that it has the correct HX8347-A Controller - BUT as that controller is actually discontinued it's anyone's guess  what we'll get - I've just ordered one, I'll let you know in a couple of weeks what turns up !
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on March 02, 2012, 03:29:47 PM
Not that I'm superstitious but having just posted the 1st post of page 13 does make me nervous   :))
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on March 02, 2012, 03:31:30 PM
No the ssd1289 is the wrong type i used although others on here got it working after some messing about

mine was the hx 8349 or something like that

Thanks Kev, 

That was how I read it - Was the TFT you ordered from flee bay Ok ? (I've just ordered one)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 02, 2012, 03:36:38 PM
Well its orded best try and get it working will need 2 screens anyway one for each tank
So might order the other
But as I am just starting out with this it will be a long journey :)
Cannot even get my real-time clock to work and I have 2 other screens
I  got with the kit and the one with the 5 buttons lol
But plan to use that on the 3rd tank
Long Journey ahead but as I can not afford everything yet gives me some time to learn it.
Anybody point me in the direction on how to get different screens working would be great
Even if its just displaying the clock and time and date.
 :c017:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on March 02, 2012, 04:04:36 PM
WOW 3 tanks and 3 different(ish) controllers - Rather you than me lol

Sorry can't help with your screens but looks like we may be trying to get these working at the same time, so I'm sure we can bounce things of each other.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 02, 2012, 04:09:25 PM
yea only plan to have 1 tank but hey lol

Sounds like a plan ...

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 02, 2012, 06:57:55 PM
The one thats ordered from itlead now has the wrong controller type the ssd1289

there is one seller on ebay which i posted up selling the correct one but just make sure you read through

this is the guy i used for the most recent one

http://www.ebay.co.uk/itm/170758835235?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2648

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on March 03, 2012, 12:20:31 AM
Hi all,
I like many others faced with the fact that my screen has a controller SSD1289
is actually quite easy to modify the one sketch that in 4 Posts, an attached file below has been modified for the screen SSD1289
The library to unpack and copy to \ librarius Arduino ide i used a version of the Arduino-0022


Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 03, 2012, 12:21:43 AM
 8) :c017: :You_Rock_Emoticon:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on March 03, 2012, 05:38:40 AM
I want to say that you may experience errors when compiling
I think that it is possible to blame java script to use when compiling
on a home computer compile without errors, with errors on the job associated with the library dallas temperature, although the run with the same flash card.

Sorry for bad English, I taught French in school and Google maps are not very
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 03, 2012, 07:24:30 AM
Nice one fella that will make a lot of folk pleased I think it was Ian aka compfranon who worked it out i just never had the time to sort it had a lot on these last few weeks

I have now ended up with a 2560 mega with 3.2" touch and 2 x 1280 megas with touch also 2 x atmega 328 with the nokia 3310 shields all working not quite sure how i ended up with all of them pmsl
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 03, 2012, 09:01:26 AM
Lol as bad as me but i collect tanks lol
Mind you starting to get a collection myself and managed to get my lcd sheild with buttons
To display the time last night yippee lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on March 03, 2012, 02:24:54 PM
I had a collection of arduino and screen bits, but I managed to find someone to buy the spares  :29:

Mine appears to be working fine, waiting on a couple of waterproof temp sensors.

Then all I need is some money so that I can start a thread and find out what I need to buy. It will be a 4ft x 1ft unit, so a few led's to get.



Title: Re: Arduino 3.2 tft colour touch screen build
Post by: dono on March 03, 2012, 06:19:14 PM
 :bravo_2:  .. to all the guys who work so tirelessly.. thanks for letting the rest of us know what you guys did to make things work... Goes a long way to helping us understand
@tangtastic - thanks for always trying to resolve issues dude.. you are one dedicated reefer... thanks for helping the other dudes out... just by reading your post, I am up to speed.
 
@svyaz ... Dude... thank you for your .PDE for the modified Jarduino sketch.. I've actually got a working sketch on my arduino mega... Just a note though... this doesn't seem to have all the features that Jamie lists in his Sketch description... like power head control/ Feed mode etc...

Anyone has any advice on how to update to most current sketch using the SSD screen?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 03, 2012, 09:19:22 PM
Your welcome were here to help each other, the jarduino code thats uploaded is the v1 Jamie has completed the v2 and he said he will upload it later on when hes made sure its running spot on, Cant thank that guy enough from all of us cheers Jamie

Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on March 04, 2012, 10:41:02 PM
Your welcome were here to help each other, the jarduino code thats uploaded is the v1 Jamie has completed the v2 and he said he will upload it later on when hes made sure its running spot on, Cant thank that guy enough from all of us cheers Jamie

Kev

Seconded, And thanks also goes to you Kev, I know you've given me a good few pointers on LED builds generally and suspect you may have the chance to help me again when I c**k my controller up !
Title: Arduino 3.2 tft colour touch screen build
Post by: dono on March 08, 2012, 12:50:05 PM

Just a warning though... I bought from this seller...

http://www.ebay.co.uk/itm/170758835235?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2648

Both screens arrived cracked as they didn't bother with packaging correctly. I had to send the screens back at my cost ..$5.. In the hope that I get refunded. The chipset was a SSD as well..
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 08, 2012, 02:29:32 PM
Must be the dodgy post men lol, Just ordered the second one around 2 weeks ago from lisa i find her very helpful, ask for her is you have any trouble

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on March 08, 2012, 06:43:32 PM

Just a warning though... I bought from this seller...

http://www.ebay.co.uk/itm/170758835235?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2648

Both screens arrived cracked as they didn't bother with packaging correctly. I had to send the screens back at my cost ..$5.. In the hope that I get refunded. The chipset was a SSD as well..

Bugger - That's who I've ordered off  :03: :a102: Hope they've learned their lesson
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 08, 2012, 11:51:53 PM
so have i lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on March 09, 2012, 01:09:30 AM

a guy from Brazil is the other controller based on the stylo 2.1 but they screens 400x240 pixels  http://www.reefcorner.org/forum/topic.asp?TOPIC_ID=135383&whichpage=2
I moved the code from the graphs in jarduino Now do not get nice back button in the menu

Title: Arduino 3.2 tft colour touch screen build
Post by: dono on March 09, 2012, 06:21:44 AM
Must be the dodgy post men lol, Just ordered the second one around 2 weeks ago from lisa i find her very helpful, ask for her is you have any trouble

kev

They sent those screens in thin flimsy envelope. That was the most ridiculous thing I've seen in ages. No bubble wrap on the inside or anything.. And when I informed Lisa about the damage she wanted to refund me $10 .. And that was after I spent $40 on 2 screen with expedited shipping.

I now have a case open with eBay for this... and hope that I get my money back or the screens replaced... Personally I will never buy from this seller again..
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on March 09, 2012, 08:06:37 PM

a guy from Brazil is the other controller based on the stylo 2.1 but they screens 400x240 pixels  http://www.reefcorner.org/forum/topic.asp?TOPIC_ID=135383&whichpage=2
I moved the code from the graphs in jarduino Now do not get nice back button in the menu

That guy from Brazil is Fernando Garcia.  His controller is in Portuguese.  I've helped him out quite a bit, but he doesn't speak English (and I don't speak Portuguese).  Google translate isn't always spot on, and when you start talking technical, it can really get iffy.   I've helped him with several functions, but my patience is running thin.  If anyone would like to take over for me and help the guy out with some SD card functions and drawing graphs, let me know and I'll give you his contact info.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 09, 2012, 08:30:20 PM
Not surprised Budd you have done way more than enough and the time you have put in  is second to none, You need to draw a line under it at some point as we will just hound you making you not enjoy it as you should. I think i can speak to the majority of the people by saying a huge thank you for all your hard work 

Kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 27, 2012, 09:26:28 PM
Yippe Screen arrived Saturday But been busy until Tonight Got every thing out and started 3 hours later :)
I have a Working Clock
http://www.henningkarlsen.com/electronics/p_itdb02_analog_clock.php
 
And calibrated the screen :) Looks like mine is the newer type from http://iteadstudio.com

So Small Steps I also am using arduino-0021 code
Couple of Questions Please
Do I carry on using this or try
arduino-0023
or even
arduino-1.0-windows

Also were can I get the latest version of this code to play with that works with The Newer Screen .

Thanks again to Kev and every body on Her starting to make progress
While I am saving for Parts and waiting for other bits I have some thing to play with :)

Next get some Temp controllers build and then once all my parts arrive the LEDs :)

Thanks Again every body Great Thread :)
Simon  :bravo_2:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on March 27, 2012, 09:34:55 PM
Wohoo - I'm still waiting for my screen to arrive  :03: When did you order  your's ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 27, 2012, 09:41:18 PM
2nd march

also got another screen on order from flee bay as I will build another for my other tank :)

Have a couple of screens but want to learn with this one before I try a new sketch
at this rate that will be in a few years lol
Just trying Jamie v1 code but got a error on sketch :(
Jarduino_1.cpp: In function 'void SaveRTC()':
Jarduino_1:957: error: 'RTC' was not declared in this scope
Jarduino_1:958: error: 'DS1307_SEC' was not declared in this scope
Jarduino_1:959: error: 'DS1307_MIN' was not declared in this scope
Jarduino_1:960: error: 'DS1307_HR' was not declared in this scope
Jarduino_1:962: error: 'DS1307_DATE' was not declared in this scope
Jarduino_1:963: error: 'DS1307_MTH' was not declared in this scope
Jarduino_1:964: error: 'DS1307_YR' was not declared in this scope
Jarduino_1.cpp: In function 'void setup()':
Jarduino_1:1554: error: 'RTC' was not declared in this scope
Jarduino_1.cpp: In function 'void loop()':
Jarduino_1:1572: error: 'RTC' was not declared in this scope

looks like some googling
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 27, 2012, 10:02:09 PM
Them errors are because the screen is the hx8479 and you have the 1289 Just have a quick glance back a few pages a few sorted it for that screen budd

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 27, 2012, 10:05:01 PM
thanks kev I was following it up to page 5 when I got the touch screen calibrated and the clock working :)

just noted that svyaz is using arduino-0022 i am running 21
so could be that :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on March 27, 2012, 10:11:32 PM
'2nd march '

Me too !  Hopefully it will arrive tomorrow or the next day !    You do all the hard work getting them running and I'll copy you lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 27, 2012, 10:13:12 PM
lol  :whoo: :welcome:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 27, 2012, 10:34:11 PM
well pleased to report Arduino 0022 is working :)

but touch screen not doing any thing :(
recalibrated but  stuck on choose options screen

making slow progress :)

long night i reckon lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on March 28, 2012, 12:07:01 AM
Uploaded Arduino 0021 and tried to compile a sketch, was a mistake and then downloaded the 0022 compile without errors
bigguy  after calibration, you will see the numbers on the screen, make the calibration of your screen to the library ITDB02_Touch.cpp  There are settings for my screen resistive screen and I have a long wire

#define PixSizeX   -15.35
#define PixOffsX   186
#define PixSizeY   10.99
#define PixOffsY   333
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 28, 2012, 12:31:36 AM
still playing

i know have 3 folders 21 22 and 23

have the sketchbook in the same place just sub folders for each version
happy to report just got Stilo 2.1 working  had to recalibrate the screen
might have to do this for each one
working with 22 at the moment frustrating when you try examples and get errors that make no sence

one sketch had to change the font code  but got it working :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on March 28, 2012, 12:47:14 AM
I started adding simulation of clouds and thunderstorms there are examples of the sketch  http://www.reefcentral.com/forums/showthread.php?t=1831741
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 28, 2012, 12:49:59 AM
wow that looks cool

update got Jarduino V1 to display ok but touch screen no response :( lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on March 28, 2012, 01:03:48 AM
you have a sketch stilo 2.1 touch screen work?
need to be calibrated only once, and make the value of libraries ITDB02_Touch.cpp Then copy the folder libraries  Arduino IDE   0021, 0022, 0023
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 28, 2012, 01:08:43 AM
only using Arduino IDE 0022 at the moment but will copy the code across
thanks

seem hit and miss as well just tried the stilo and touch screen not working

just recalibrating lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 28, 2012, 01:16:43 AM
yes result

the ittdb02_Touch  had different vales to mine :)
touch screen working
yippee
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 28, 2012, 02:20:14 PM
Nice one fellas just been on with mine and blew 2 x 5w drivers up god dam, found a little bit of solder bridging on of the blue leds !

But heres a few pics for you

(http://a5.sphotos.ak.fbcdn.net/hphotos-ak-ash3/557887_10150646985368097_670163096_9401452_1042494038_n.jpg)

(http://a2.sphotos.ak.fbcdn.net/hphotos-ak-ash3/543526_10150646985693097_670163096_9401454_1584510014_n.jpg)

And what happens when the leds get to near to the table you may ask ?

(http://a3.sphotos.ak.fbcdn.net/hphotos-ak-ash3/524751_10150646985513097_670163096_9401453_1277680548_n.jpg)

Just short of a 5w driver now for the other bank of three blue leds
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 28, 2012, 02:35:47 PM
Very Nice Dude
Got some more bit delivered today not sure what yet Hope its my Relays :)
Can start work on my Power bar then
But looking good how did you blow the drivers can they be repaired ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 28, 2012, 02:40:48 PM
Na blew then sky high one of then had a small flame coming out of the ic chip lol For the price of them will just get new ones, just thinking is i should get another 6 blues cant quite decide yet will see when its above the tank in a few weeks

kev

And svyaz nice work fella If jamie allows me i will upload the sketch for you all but its down to that bloke
Title: Arduino 3.2 tft colour touch screen build
Post by: dono on March 28, 2012, 07:44:50 PM
@Tangtastic .. Sorry to hear bought the blown hardware.. I hate to see things blow up and extra cash being forked out.. But thank you for pioneering some cool builds.. I had 6 royal blue 3watt LEDs blow on me... Having all that hard work go down the drain is heart wrenching.

Insofar as the updated code: Take one for the team here bud and beg beg beg on our behalf to have the updated code... Jamie's stuff borders on brilliant... So am eagerly waiting his release.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 28, 2012, 07:59:24 PM
Its not to bad only a few quid but worth getting spares as well, the lights on now and whites are on around 10% and the side of the house is fully light up pmsl, I remember Jamie saying he was doing a v2 then he would upload it but i shall ask now, he would hate to see if all his hard work gets sold on in controller builds and its totally against what were trying to do, on the new code there is a disclaimer that it is not to make profit off but will contact him tonight budd

kev
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 28, 2012, 08:49:04 PM
cool
this is for the use on our tanks not intending selling on as i think you would agree every tank is diffrent so harder to sort out thinks i have been playing with v1 and changing stuff around more to learn

and see how spacing works

all good fun but not when you spend 2 hours and all it was the first line of code was different lol

The programming side is great though as its something to learn and play with until bits arrive for the leds

I have orded all3w for the first build as they are going in red sea max
the reef beam clone is not totaly wasted as i will use on my frag tank

:) were as i just need on and off control so simple timer will do :)

Thanks again dude look forward to v2 :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 28, 2012, 08:54:35 PM
just a thought what version of the code are people using ?

i have Arduino 0021,0022,0023  have down loaded 1 but not unpacked

only using 0022 at the moment
thanks
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 28, 2012, 09:22:53 PM
0021 for me budd oh and 0022 for some other things lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on March 28, 2012, 09:58:40 PM
in need of Arduino IDE 1.0 libraries using "WProgram.h" replaced by "Arduino.h" otherwise it will error: WProgram.h: No such file or directory
also changed the extension of the sketches .pde in .ino is incompatible with earlier versions of the Arduino IDE
If I I find skits with the extension. ino I open them and try to edit the Arduino 1.0
that those with the extension .pde almost always compiled into the normal Arduino IDE 0022
I still have Arduino 0023 he also compiles well, but I have a 0021 compiles with errors


Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 28, 2012, 10:57:33 PM
svyaz was you the one who saw my thread on the saltybox ? i seem to recall your name budd
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on March 28, 2012, 11:05:31 PM
svyaz was you the one who saw my thread on the saltybox ? i seem to recall your name budd
I'm sorry, I don `t know where it was probably a different user
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 28, 2012, 11:22:27 PM
in need of Arduino IDE 1.0 libraries using "WProgram.h" replaced by "Arduino.h" otherwise it will error: WProgram.h: No such file or directory
also changed the extension of the sketches .pde in .ino is incompatible with earlier versions of the Arduino IDE
If I I find skits with the extension. ino I open them and try to edit the Arduino 1.0
that those with the extension .pde almost always compiled into the normal Arduino IDE 0022
I still have Arduino 0023 he also compiles well, but I have a 0021 compiles with errors

so what the main one you use svyaz ?
1.0 or 22 ?
Thanks Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 28, 2012, 11:25:33 PM
ah lol sorry just looked and doesnt even look the same god knows why i thought that budd lol

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on March 28, 2012, 11:32:03 PM
main one 0022 I have several copies as the same library has different versions and some sketches using DS1307 memory
Arduino 0023 but works fine
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on March 28, 2012, 11:46:50 PM
tangtastic I realized that you had in mind perhaps you've seen the controller Brazilian guy I took him some part of the code http://pastebin.com/2xhcEs6j



Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 29, 2012, 12:30:05 PM
tangtastic I realized that you had in mind perhaps you've seen the controller Brazilian guy I took him some part of the code http://pastebin.com/2xhcEs6j





Many Thanks will give it a go tonight :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 29, 2012, 09:42:41 PM
Ah bugga come across a problem had a glitch in the time and lights went haywire now when i upload any sketches to the 1280 or 2560 boards i get this on the time any ideas ?

(http://a7.sphotos.ak.fbcdn.net/hphotos-ak-ash3/549895_10150649473723097_670163096_9408941_1453444754_n.jpg)

tried other screens and mega shields even boards some times it comes up some times it doesnt and the time goes to 45:45 and year goes to 2121 humm odd
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on March 29, 2012, 11:20:24 PM
Ah sorted it Jamie mentioned to wipe the eeprom but change the 512 to 4096

Jamie also mentioned his sketch will become LIVE very soon folks !  :whoo: :bravo_2:

The EEPROM wipe sketch

/*
 * EEPROM Clear
 *
 * Sets all of the bytes of the EEPROM to 0.
 * This example code is in the public domain.

 */

#include <EEPROM.h>

void setup()
{
  // write a 0 to all 512 bytes of the EEPROM
  for (int i = 0; i < 4096; i++)
    EEPROM.write(i, 0);
   
  // turn the LED on when we're done
  digitalWrite(13, HIGH);
}

void loop()
{
}
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on March 30, 2012, 12:02:25 AM
great news on code :)
thanks Kev
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 02, 2012, 06:23:02 PM
tangtastic I realized that you had in mind perhaps you've seen the controller Brazilian guy I took him some part of the code http://pastebin.com/2xhcEs6j





Hello!
I'm Happy to somehow be helping other people.
Svyaz, your code is available?

Hug.
Fernando Garcia
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 02, 2012, 07:44:42 PM
Hello Fernando welcome to the forum !
Thank you posted your code to me it helped to understand some of the details, for example, I knew how to make colored buttons and get to work lunar program
Now I'm hooked up with a library of SD CARD ITDB02_tinyFAT16 and now all the icons will be on the sd card you can make a menu similar to iPhone
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 02, 2012, 08:22:51 PM
I abandoned tinyfat therefore forced me to work with large strings.
Your project is posted on some forum?
How did you find my code?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 02, 2012, 09:18:02 PM
hi svyaz
were did you get code from interested in to have a look if possible ?
thanks i am trying to understand the different parts and simple things like how to get the clock date and time at the bottom
simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 02, 2012, 09:19:56 PM
The code is based on the code posted here Jamie Jardin aka "TheDOdblG" but there are some features not working lunar program and other
Most recently, I don `t know what the Arduino, but I began to make LED lighting  for his reef aquarium http://picasaweb.google.com/116500402970285062877/1000 #
and I needed a controller LEDs of all that I saw Jamie is the best controller
I became interested in programming and some began to look for examples of sketches on the Internet
Your code, I found a google. I still unfinished code but if someone asks I can send
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 02, 2012, 09:26:07 PM
Hi  bigguy I have a lot of excess and sorry commentary in Russian
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 02, 2012, 09:36:32 PM
no problem lots of googling will be going on then lol
thank you very much ;)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: denisluc on April 02, 2012, 09:58:46 PM
hello

would it be possible to have the pictures ?
"PIC301.RAW", "PIC302.RAW", "PIC303.RAW", "PIC304.RAW", "PIC305.RAW", "PIC306.RAW", "PIC307.RAW", "PIC308.RAW", "PIC309.RAW", "PIC310.RAW"

Thank you, denis
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 02, 2012, 10:10:48 PM
hello
would it be possible to have the pictures,
"PIC301.RAW", "PIC302.RAW", "PIC303.RAW", "PIC304.RAW", "PIC305.RAW", "PIC306.RAW", "PIC307.RAW", "PIC308.RAW", "PIC309.RAW", "PIC310.RAW"
Thank you, denis

is the standard picture of the \library\libraries\ITDB02_tinyFAT16\Image-files they should be on the SD card I run slideshow when you press the menu "SD card"
I am still studying the possibility of library ITDB02_tinyFAT16
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: denisluc on April 02, 2012, 10:12:59 PM
OK I just understand   :93:

Denis
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 02, 2012, 10:20:37 PM
icons in the code commented out uncomment the Moon

  // myGLCD.drawBitmap(205, 30, 70, 71, New_Moon, 1.5);     
  //  myGLCD.drawBitmap(240, 30, 71, 71, New_Crescent, 1.5); 
  //  myGLCD.drawBitmap(240, 30, 71, 71, First_Quarter, 1.5); 
  //  myGLCD.drawBitmap(240, 30, 71, 71, Waxing_Gibbous, 1.5);   
  //  myGLCD.drawBitmap(240, 30, 71, 71, Full_Moon, 1.5); 
//    myGLCD.drawBitmap(240, 30, 71, 71, Waning_Gibbous, 1.5); 
  //  myGLCD.drawBitmap(240, 30, 71, 71, Last_Quarter, 1.5); 
  //  myGLCD.drawBitmap(240, 30, 70, 71, Old_Crescent, 1.5);   
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 02, 2012, 10:38:57 PM
is the sd card formated fat :)
and any directory structure required or all files in root is it just the pictures
just going threw the code and translating ;)
thanks again
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 02, 2012, 10:46:02 PM
there are sketch and videos of other TFT screen http://vizictechnologies.com/#/videos/4555425504
but the basic idea is that all skins and the big picture are stored on SD Card
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 02, 2012, 10:47:54 PM
I've formatted my minisd card through the phone in Fat. Сard is connected to the display via SD adapter
all images are located in the root
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 02, 2012, 11:13:53 PM
many thanks
will give it a try :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 03, 2012, 12:49:17 AM
there are sketch and videos of other TFT screen http://vizictechnologies.com/#/videos/4555425504
but the basic idea is that all skins and the big picture are stored on SD Card

Now I have to replace the LCD.
 :whoo:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 03, 2012, 12:51:41 AM
The code is based on the code posted here Jamie Jardin aka "TheDOdblG" but there are some features not working lunar program and other
Most recently, I don `t know what the Arduino, but I began to make LED lighting  for his reef aquarium http://picasaweb.google.com/116500402970285062877/1000 #
and I needed a controller LEDs of all that I saw Jamie is the best controller
I became interested in programming and some began to look for examples of sketches on the Internet
Your code, I found a google. I still unfinished code but if someone asks I can send

Its reef is very beautiful.
I installed your code.

Hug.
Fernando Garcia
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 03, 2012, 01:10:05 AM
for example, I made ​​changes to the sketch ITDB02_Analog_Clock
Watch now use skin oldclk.raw  This file must be copied to SD Card
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 03, 2012, 11:20:15 AM
So more correctly
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 03, 2012, 05:23:54 PM
Hello!

Svyaz, what ethernet shield are you using?

Hug.
Fernando Garcia
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 03, 2012, 06:11:03 PM
Hello!

Svyaz, what ethernet shield are you using?

Hug.
Fernando Garcia
Уet there is no any I liked the display of information via Twitter the controller yellowtang http://yellowtang-controller.googlecode.com/svn/trunk/
Here's the project page (in French), see  http://wismie.wordpress.com/2011/06/24/mon-arduino-en-wifi-avec-une-fonera-et-donnees-mises-a-jour-sur-pachube/
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 03, 2012, 07:34:58 PM
Hi getting errors any idea :(

ITDB02_Analog_Clock.cpp:26:21: error: tinyFAT.h: No such file or directory

this is with arduino-0022
Thanks
Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 03, 2012, 07:55:26 PM
Hi getting errors any idea :(

ITDB02_Analog_Clock.cpp:26:21: error: tinyFAT.h: No such file or directory

this is with arduino-0022
Thanks
Simon

http://www.henningkarlsen.com/electronics/library.php?id=37

Download this file and put in the libraries directory.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 03, 2012, 08:05:48 PM
i :You_Rock_Emoticon:Fernando Garcia  that got rid of the error but not showing the graphics :( how can you tell if its reading off the sd cards

mine is the one build on to the screen thanks again
Tried the examples but just get errors
So frustrating
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 03, 2012, 08:17:26 PM
i :You_Rock_Emoticon:Fernando Garcia  that got rid of the error but not showing the graphics :( how can you tell if its reading off the sd cards

mine is the one build on to the screen thanks again
Tried the examples but just get errors
So frustrating

Which LCD and Arduino are you using?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 03, 2012, 08:32:12 PM
HI

i am useing the 3.2" TFT LCD Screen Module: ITDB02-3.2S
with the    ITDB02 Arduino MEGA Shield v1.1

and its a Arduino Mega ATmega1280

Thanks
Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 03, 2012, 08:48:33 PM
HI

i am useing the 3.2" TFT LCD Screen Module: ITDB02-3.2S
with the    ITDB02 Arduino MEGA Shield v1.1

and its a Arduino Mega ATmega1280

Thanks
Simon

Change this:

ITDB02tf myGLCD(38,39,40,41,ITDB32S);
ITDB02_Touch  myTouch(46,45,44,43,42);

To do this:

ITDB02tf myGLCD(38,39,40,41,ITDB32S);
ITDB02_Touch  myTouch(6,5,4,3,2);

Hug.
Fernando Garcia
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 03, 2012, 08:53:21 PM
Hi Dude

all ready set that :(

it works just not picking the files up off the sd card
i am looking to try and figure if it is working
But still learning loads
Thanks again Simon

ITDB02tf myGLCD(38,39,40,41,ITDB32S);   // Remember to add ASPECT_16x9 if you are using an ITDB02-3.2WC!
ITDB02_Touch  myTouch(6,5,4,3,2);
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 03, 2012, 09:57:30 PM
bigguy, I downloaded the Arduino IDE to you with all the libraries in it the code works, Fernando and ITDB02_Analog_Clock but not the code works Jarduino
I previously wrote that there are differences in the libraries for various Projects summary sings that would not move the library to keep multiple copies of the Arduino ide
so I renamed the archive arduino-0022Stilo  https://rapidshare.com/files/3256772943/arduino-0022Stilo.rar
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 03, 2012, 10:02:06 PM
 :c017:svyaz  just getting it know
will report back :)
thanks again
all the different libraries you have to have and diffident versions so confusing and the errors do not always make sense lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 03, 2012, 10:07:02 PM
i am useing the 3.2" TFT LCD Screen Module: ITDB02-3.2S
with the    ITDB02 Arduino MEGA Shield v1.1

and its a Arduino Mega ATmega1280

Thanks
Simon
if you have the code working Jarduino_1_for_SSD1289 all that I upload to the site needs to be changed, and I have the same screens and all that works for me should work for you
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 03, 2012, 10:15:56 PM
it was working for Jarduino_1 but i am getting a error i had to reinstall the pc it was on but had backups of all the files
getting this error
Jarduino_1.cpp: In function 'void SaveRTC()':
Jarduino_1:957: error: 'RTC' was not declared in this scope
Jarduino_1:958: error: 'DS1307_SEC' was not declared in this scope
Jarduino_1:959: error: 'DS1307_MIN' was not declared in this scope
Jarduino_1:960: error: 'DS1307_HR' was not declared in this scope
Jarduino_1:962: error: 'DS1307_DATE' was not declared in this scope
Jarduino_1:963: error: 'DS1307_MTH' was not declared in this scope
Jarduino_1:964: error: 'DS1307_YR' was not declared in this scope
Jarduino_1.cpp: In function 'void setup()':
Jarduino_1:1554: error: 'RTC' was not declared in this scope
Jarduino_1.cpp: In function 'void loop()':
Jarduino_1:1572: error: 'RTC' was not declared in this scope

have 40 mins to wait for the down load :)
many thanks again
Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 03, 2012, 10:23:50 PM
I looked at the other screen and Fernando made ​​changes to the code, it now works but the screen is bigger and Fernando on the part of the information is not visible
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 03, 2012, 10:38:51 PM
it was working for Jarduino_1 but i am getting a error i had to reinstall the pc it was on but had backups of all the files
getting this error
OK, I uploaded to Arduino IDE for Jarduino download and do not change anything in the libraries  https://rapidshare.com/files/2695281396/arduino-0022_jarduino.zip
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 03, 2012, 11:46:21 PM
Once again svyaz  Many Thanks

Happy to report  after a bit of rapid share update
the following :)
arduino-0022_jarduino  runs the jarduino_1 spot on

and
arduino-0022Stilo  runs New_Stilo_2_3 ok
will not run the other versions in the folders but many thanks
will look at the New_Stilo_2_3 abd try and figure it out
thanks again
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 04, 2012, 12:23:31 AM
Now you need to replace the touch panel of the library ITDB02_Tuch your old or your touch-panel will not work correctly or calibrate

Example of an analog clock works?

Do not forget in all the examples and sketches to specify your screen and the pins to which it is connected

// Remember to change the next line if you are using as 16bit module!
#include <ITDB02_Graph16.h>
#include <ITDB02_Touch.h>

// Uncomment the next two lines for the ITDB02 Shield
ITDB02        myGLCD(38,39,40,41,ITDB32S);
ITDB02_Touch  myTouch(46,45,44,43,42);
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 01:00:54 AM
thanks will test again tomorrow
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 04, 2012, 08:45:48 AM
When you get the clock sketch loaded up post up the screen pin part of the sketch and let us know which one works budd

There either
ITDB02       myGLCD(38,39,40,41,ITDB32S);
ITDB02_Touch myTouch(6,5,4,3,2);

or

ITDB02       myGLCD(38,39,40,41);
ITDB02_Touch myTouch(6,5,4,3,2);
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 04, 2012, 11:33:41 AM
will not run the other versions in the folders but many thanks

In the original sketch Stilo 2.1 need to change fonts for new library ITDB02_Graph16
in the attached file I have already made
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 11:46:11 AM
Hi Kev
this makes no sense to me :(

I have the following

arduino-0022
arduino-0022 - Copy
arduino-0022_jarduino
arduino-0022Stilo
arduino-0022Stilo - Copy
arduino-0023
Sketch


here are the results


arduino-0022

ITDB02_Analog_Clock:44: error: no matching function for call to 'DS1307::DS1307(int, int)'
C:\Users\simon.SODIT\Desktop\Arduino\arduino-0022\libraries\DS1307/DS1307.h:50: note: candidates are: DS1307::DS1307()
C:\Users\simon.SODIT\Desktop\Arduino\arduino-0022\libraries\DS1307/DS1307.h:47: note:                 DS1307::DS1307(const DS1307&)
ITDB02_Analog_Clock:47: error: 'Time' does not name a type
ITDB02_Analog_Clock.cpp: In function 'void setup()':
ITDB02_Analog_Clock:72: error: 'class DS1307' has no member named 'halt'
ITDB02_A

same error with

ITDB02       myGLCD(38,39,40,41);
ITDB02_Touch myTouch(6,5,4,3,2);


arduino-0022 - Copy

loads the clock and up loads but no clock face or putton icon

same folder with

ITDB02       myGLCD(38,39,40,41);
ITDB02_Touch myTouch(6,5,4,3,2);

ITDB02_Analog_Clock.cpp: In function 'void drawDisplay()':
ITDB02_Analog_Clock:83: error: 'class ITDB02' has no member named 'loadBitmap'
ITDB02_Analog_Clock:123: error: 'class ITDB02' has no member named 'loadBitmap'


arduino-0022_jarduino


ITDB02_Analog_Clock:45: error: no matching function for call to 'DS1307::DS1307(int, int)'
C:\Users\simon.SODIT\Desktop\Arduino\arduino-0022_jarduino\libraries\DS1307/DS1307.h:50: note: candidates are: DS1307::DS1307()

and with



ITDB02       myGLCD(38,39,40,41);
ITDB02_Touch myTouch(6,5,4,3,2);




ITDB02_Analog_Clock:45: error: no matching function for call to 'DS1307::DS1307(int, int)'
C:\Users\simon.SODIT\Desktop\Arduino\arduino-0022_jarduino\libraries\DS1307/DS1307.h:50: note: candidates are: DS1307::DS1307()
C:\Users\simon.SODIT\Desktop\Arduino\arduino-0022_jarduino\libraries\DS1307/DS1307.h:47: note:                 DS1307::DS1307(const DS1307&)

but this folder works spot on with the
Jarduino_1  code


arduino-0022Stilo folder

loads spot on no grafics like before

and with

ITDB02       myGLCD(38,39,40,41);
ITDB02_Touch myTouch(6,5,4,3,2);



ITDB02_Analog_Clock.cpp: In function 'void drawDisplay()':
ITDB02_Analog_Clock:83: error: 'class ITDB02' has no member named 'loadBitmap'
ITDB02_Analog_Clock:123: error: 'class ITDB02' has no member named 'loadBitmap'

hope that helps lol

have found the i some times have to delete the temp files to get things to work
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 11:47:13 AM
will not run the other versions in the folders but many thanks

In the original sketch Stilo 2.1 need to change fonts for new library ITDB02_Graph16
in the attached file I have already made


Thanks svyaz

will try this know ;)

Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 12:01:43 PM
ok that works ok with the

arduino-0022_jarduino  folder but no touch screen funtion

and with

arduino-0022Stilo  folder

Stilo_2_1.cpp: In function 'void SaveRTC()':
Stilo_2_1:619: error: 'RTC' was not declared in this scope
Stilo_2_1:620: error: 'DS1307_SEC' was not declared in this scope
Stilo_2_1:621: error: 'DS1307_MIN' was not declared in this scope
Stilo_2_1:622: error: 'DS1307_HR' was not declared in this scope

any of this making sense to you guys ?

blooming Microsoft Problems are easer than this lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 04, 2012, 12:13:36 PM
bigguy, you have a screen on the controller, SSD1289 therefore, always and in all the sketches you have to specify the  (ITDB32S)  pins of the screen and touch panel correspond to the following code

ITDB02 myGLCD(38,39,40,41,ITDB32S);   
ITDB02_Touch  myTouch(46,45,44,43,42);

other options for your screen will not work

about what that compilation
Arduino-0022_jarduino - working sketch jarduino and original Stilo 2.1 not working ITDB02_Analog_Clock and New Stilo 2.3
Аrduino-0022Stilo - work ITDB02_Analog_Clock and New Stilo 2.3 not working jarduino and original Stilo 2.1
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 12:18:34 PM
hi yes i under stand i need this

ITDB02 myGLCD(38,39,40,41,ITDB32S);
ITDB02_Touch myTouch(6,5,4,3,2);

Kev asked me to try with out the codes and post the results

not sure i under stand your

about what that compilation
Arduino-0022_jarduino - working sketch jarduino and original Stilo 2.1 not working ITDB02_Analog_Clock and New Stilo 2.3
Аrduino-0022Stilo - work ITDB02_Analog_Clock and New Stilo 2.3 not working jarduino and original Stilo 2.1

you want me to test these ?

and post results

Thanks
Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 04, 2012, 12:33:28 PM
Quote
you want me to test these ?
  No, I have already checked
all these problems because there are differences in the libraries
such as sketch new Stilo v 2.3.2 indicated

#include <DS1307henning.h> //Note: To use the library to rename the original <DS1307.h>
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 12:36:01 PM
aghh i under stand

also figured out i need to copy my
ITDB02_Touch.cpp across as it has my settings in

will look at the libraries
thanks again
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 04, 2012, 08:40:15 PM
Hello!
At first I was having problem to upload the code for the Arduino because it took an eternity.
Then I discovered that the Arduino does not get along with special characters.
It was just make a simple change that consiguia install normally.
I made this change:

myGLCD.print ("ALARM!!", 185, 204);

to

myGLCD.print ("ALARM", 185, 204);

Sorry for English.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 04, 2012, 08:53:46 PM
Quote
you want me to test these ?
  No, I have already checked
all these problems because there are differences in the libraries
such as sketch new Stilo v 2.3.2 indicated

#include <DS1307henning.h> //Note: To use the library to rename the original <DS1307.h>


Hello!
I have two libraries as name and DS1307 so I had to make some changes in the library of Henning.
If you are using only the library Henning make this change #include <DS1307.h>.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 08:58:19 PM
just spent 5 hours going through all the sketches and putting in the right folders have 5 diffrent folders now boy this is fun lol

so different libraries in diffident folders
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 04, 2012, 09:06:07 PM
Hello!
If someone is using the same LCD (ITDB02-3.2WC - 400x240) that I can upload all my files to any server.

Hug.
Fernando Garcia
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 04, 2012, 09:09:09 PM
just spent 5 hours going through all the sketches and putting in the right folders have 5 diffrent folders now boy this is fun lol

so different libraries in diffident folders

I spent over 15 days to be able to complete the function that draws a graph of temperature.
I asked for help for many people, but just managing to solve alone.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 09:13:44 PM
Fernando Garcia
thing is i did not solve anything lol

i am going to try and see how i can get a non working sketch to work
after the kind helps on here
Also spending a few hours translation the notes in scripts
Some funny conversions from Russia to English

Its very helpfully when thing have notes for use learners
:)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 04, 2012, 09:15:31 PM
 Fernando  SD card was able to connect?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 04, 2012, 09:26:30 PM
Hello!
At first I was having problem to upload the code for the Arduino because it took an eternity.
Then I discovered that the Arduino does not get along with special characters.
It was just make a simple change that consiguia install normally.
I made this change:

myGLCD.print ("ALARM!!", 185, 204);

to

myGLCD.print ("ALARM", 185, 204);

Sorry for English.

I recall running into the same issue with the upload timing out while uploading the Stilo 2.1 sketch to the Arduino MEGA 2560 (this was almost a year ago). I remember it taking me quite a while to troubleshoot this one. This upload problem is due to a bug thats been reported in the MEGA 2560. The issue? Using a triple exclamation point !!! in a sketch will cause an upload to freeze due to the 2560's new bootloader ("new" compared to the MEGA 1280). Apparently !!! is a command that activates some kind of monitor function. Anyway, you're right Fernando, removing the !!! and replacing it with ! or no exclamation points at all will "solve" that problem.

And speaking of bugs, when I release Jarduino 1.1 either this weekend or next, I will be doing so along with a modified version of the Arduino Environment version 22 to overcome a MEGA 2560 issue surrounding large sketch sizes.  Don't even try using my sketch without this modified environment.  Of course, all the libraries that work for me will be included, but some of you will have to figure out which libraries you will need to switch out depending on your LCD controller.  So, lot's more fun to come!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 09:29:18 PM
lol yep lots of fun any news on te next release of the code  :c017:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 04, 2012, 09:30:32 PM
just spent 5 hours going through all the sketches and putting in the right folders have 5 diffrent folders now boy this is fun lol

so different libraries in diffident folders

I spent over 15 days to be able to complete the function that draws a graph of temperature.
I asked for help for many people, but just managing to solve alone.

So you decided not to use my millis function suggestion and stick with your non-functional long strings of boolean?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 04, 2012, 09:38:49 PM
Fernando  SD card was able to connect?

Yes!
(http://farm8.staticflickr.com/7205/6899872862_21a9d2040a_c.jpg)

For the library Henning this information is unnecessary.
  pinMode(53, OUTPUT);
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 09:41:54 PM
i do not get the nice pictures just a clock functioning
Just as if its not reading the sd card :(
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 04, 2012, 09:43:04 PM
just spent 5 hours going through all the sketches and putting in the right folders have 5 diffrent folders now boy this is fun lol

so different libraries in diffident folders

I spent over 15 days to be able to complete the function that draws a graph of temperature.
I asked for help for many people, but just managing to solve alone.


So you decided not to use my millis function suggestion and stick with your non-functional long strings of boolean?

Yes, thanks for the suggestion.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 04, 2012, 09:46:15 PM
lol yep lots of fun any news on te next release of the code  :c017:

Well, everthing seems to be running smoothly, as I've been testing it thoroughly through regular use over the past 4 months or so.  I managed to fix / patch the one major bug (wavemaker timing) without much effort, and I included a lot of helpful comments throughout the sketch for would-be modders.  I've also made it clear which lines in the sketch you can modify without causing any program problems.  I'm currently working on edditing a video of my setup.  I figured when I get the editing done and uploaded, I would upload the sketch along with the modified version of Arduino 0022 & Libraries.

I already have so many ideas for improvement that will go in Jarduino 1.2, but with our 1st baby on the way, finding time will not be easy.  The wife gives me grief almost daily over the amount of time I put in already!  I wish I could blame it on the pregnancy hormones, but she was nagging me about it even before she was pregnant LOL!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 04, 2012, 09:49:07 PM
Quote
I remember it taking me quite a while to troubleshoot this one

thank you Jamie, I made these changes to the original file is attached above the Stilo 2.1 and now it works fine
String oldvalue, twelveHR, hrs, HOURS, mins, Minutes;
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 09:50:53 PM
lol yep lots of fun any news on te next release of the code  :c017:

Well, everthing seems to be running smoothly, as I've been testing it thoroughly through regular use over the past 4 months or so.  I managed to fix / patch the one major bug (wavemaker timing) without much effort, and I included a lot of helpful comments throughout the sketch for would-be modders.  I've also made it clear which lines in the sketch you can modify without causing any program problems.  I'm currently working on edditing a video of my setup.  I figured when I get the editing done and uploaded, I would upload the sketch along with the modified version of Arduino 0022 & Libraries.

I already have so many ideas for improvement that will go in Jarduino 1.2, but with our 1st baby on the way, finding time will not be easy.  The wife gives me grief almost daily over the amount of time I put in already!  I wish I could blame it on the pregnancy hormones, but she was nagging me about it even before she was pregnant LOL!

ha good luck with the baby dude all mine grown up in fack i have a granddaughter who lives with us and she is 3 and a handfull
Yep not enough hours in the day and i work full time
Good job i am use to being up till 3 - 4 am lol
Look forward to it i have only just started so very new to this

thanks again
Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 04, 2012, 10:45:06 PM
Well I think my sd card is not working that's part of the issue with the simple clock sketch
i run the All_In_One_Demo in the tinyfat it runs ok and in serial monitor get


tinyFAT library ALL-In-One demo...
-----------------------
? or H:            This help
I:            Information about partition and filesystem
L:            List files on SD card
E <filename>:         Check if <filename> exists.
R <filename1> <filename1>:   Rename <filename1> to <filename2>.
D <filename>:         Delete <filename>.
C <filename>:         Create an empty file named <filename>.
B <filename>:         View contents of <filename> (Binary-mode)
T <filename>:         View contents of <filename> (Text-mode)
W <filename>:         Write a line of text to <filename> (Text-mode)

but nothing happens am i doing something wrong ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 04, 2012, 11:35:20 PM
let's first examine how your card is formatted, I checked the card 2Gb works
must:
file System: Fat (default)
the cluster size: 32kb
volume label: nothing should be (by default it's empty)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 05, 2012, 12:23:34 AM
Congrats to both of you on your first child, spend as much time as you can with the little ones as they soon grow up and give you cheek ! lol

On the sketch not to sure if i have seen it or will it be included but will it be a good idea to have an led shut off should the heatsink temp rise over the max desired temp just a safe to protect our leds in case anything happens budd


kev



lol yep lots of fun any news on te next release of the code  :c017:

Well, everthing seems to be running smoothly, as I've been testing it thoroughly through regular use over the past 4 months or so.  I managed to fix / patch the one major bug (wavemaker timing) without much effort, and I included a lot of helpful comments throughout the sketch for would-be modders.  I've also made it clear which lines in the sketch you can modify without causing any program problems.  I'm currently working on edditing a video of my setup.  I figured when I get the editing done and uploaded, I would upload the sketch along with the modified version of Arduino 0022 & Libraries.

I already have so many ideas for improvement that will go in Jarduino 1.2, but with our 1st baby on the way, finding time will not be easy.  The wife gives me grief almost daily over the amount of time I put in already!  I wish I could blame it on the pregnancy hormones, but she was nagging me about it even before she was pregnant LOL!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 05, 2012, 12:31:42 AM
let's first examine how your card is formatted, I checked the card 2Gb works
must:
file System: Fat (default)
the cluster size: 32kb
volume label: nothing should be (by default it's empty)

yes just formatted it and made sure cluster size was 32 system fat

still clock not picking up graphics and the same results on the test software :(
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 05, 2012, 05:39:38 AM
Congrats to both of you on your first child, spend as much time as you can with the little ones as they soon grow up and give you cheek ! lol

On the sketch not to sure if i have seen it or will it be included but will it be a good idea to have an led shut off should the heatsink temp rise over the max desired temp just a safe to protect our leds in case anything happens budd


kev


Thanks for the kind words Kev!  Wifey will be entering third trimester in 10 days.  For the controller, I never even considered a fail safe.  Should be easy to implement.  Something like:

  if (temp>=tooHighTempDefined)
    {digitalwrite(pin, LOW);}
  else
    {resume normal operation......

I'll go ahead and include that.  Any ideas on what the defined temp should be?  I'll of course allow the user to change it in the sketch, but without checking the specs on the LED datasheets, maybe you know of a value offhand?  Also, if there's anything else you think I should toss in, now would be the time to let me know.  Or just wait until Jarduino v1.2 comes out...
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 05, 2012, 11:19:04 AM
your welcome Jamie, what about 60-70 deg ?

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 05, 2012, 05:16:23 PM
Well I think my sd card is not working that's part of the issue with the simple clock sketch
i run the All_In_One_Demo in the tinyfat it runs ok and in serial monitor get


tinyFAT library ALL-In-One demo...
-----------------------
? or H:            This help
I:            Information about partition and filesystem
L:            List files on SD card
E <filename>:         Check if <filename> exists.
R <filename1> <filename1>:   Rename <filename1> to <filename2>.
D <filename>:         Delete <filename>.
C <filename>:         Create an empty file named <filename>.
B <filename>:         View contents of <filename> (Binary-mode)
T <filename>:         View contents of <filename> (Text-mode)
W <filename>:         Write a line of text to <filename> (Text-mode)

but nothing happens am i doing something wrong ?

Hello!

I once had problem with my sd card and thought it was faulty so I decided to format it using my camera.
And he went back to work again.

Test the examples in this library:

https://skydrive.live.com/redir.aspx?cid=004f0958c6a216ec&resid=4F0958C6A216EC!335&parid=4F0958C6A216EC!193

Remember to make this change.

if (!card.init(SPI_HALF_SPEED)) error("card.init failed");

To:

if (!card.init(SPI_QUARTER_SPEED,53)) error("card.init failed");

Hug.
Fernando Garcia
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 05, 2012, 07:20:51 PM
Thanks Dude
I received a second screen today and that one works
With all the same settings
Looks like a faulty Screen or SD card on the screen
But will test this first
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 05, 2012, 07:32:40 PM
yep falty

The New screen works with the clock and display the grafics
also the sdfat works

On the old screen from iteadstudio.com

i get


card.init failed
SD error
errorCode: 1
errorData: FF

type any character to start


hope that helps
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 05, 2012, 07:34:46 PM
your welcome Jamie, what about 60-70 deg ?

kev

I'm assuming you mean C.  I decided to check out some datasheets, and they say that the junction can stand up to 150 C or so.  But that would mean a very short life I'm sure.  Therefore, 60-70 C is definately in the safe / last a good long time range.  Running my setup over the past several months, I've never seen the temp go over 37 C, so my LEDs should last forever lol!  Are you getting temps closer to 60 C?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 05, 2012, 08:20:27 PM
Sorry Jamie internet has been a pain for the last week or so, think if we make it so you cannot get burned from the heatsinks just to be safe but i dont fancy shoving my hand on warmed up heatsinks to find out at what temp will cause injury lol

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 05, 2012, 08:35:45 PM
your welcome Jamie, what about 60-70 deg ?

kev

I'm assuming you mean C.  I decided to check out some datasheets, and they say that the junction can stand up to 150 C or so.  But that would mean a very short life I'm sure.  Therefore, 60-70 C is definately in the safe / last a good long time range.  Running my setup over the past several months, I've never seen the temp go over 37 C, so my LEDs should last forever lol!  Are you getting temps closer to 60 C?
on the Russian forum came to the conclusion that there is no sense to control fan controller,rather they are simply switched on and off with the lighting  with quality fans such as Noctua 140x140 NF-P14 FLX run very quietly and to deliver the full protection of bimetal switches I put my LED lamp ksd 301 response to temperature of 55 degrees.
(http://www.oursbiz.com/Products/b/19/Thermostat-KSD301-F1AC--511088.jpg)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 05, 2012, 08:50:03 PM
yep falty

The New screen works with the clock and display the grafics
also the sdfat works

On the old screen from iteadstudio.com

i get


card.init failed
SD error
errorCode: 1
errorData: FF

type any character to start


hope that helps

Simon, this problem occurs because the Arduino does not see your card.
There may be some problems in the welds.

http://code.google.com/p/sdfatlib/issues/detail?id=5

Please contact the vendor and ask to exchange it.

Try changing the speed to:

SPI_FULL_SPEED
or:
SPI_HALF_SPEED

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 05, 2012, 08:56:13 PM
hi Fernando Garcia
email sent to them :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 05, 2012, 09:36:04 PM
Sorry Jamie internet has been a pain for the last week or so, think if we make it so you cannot get burned from the heatsinks just to be safe but i dont fancy shoving my hand on warmed up heatsinks to find out at what temp will cause injury lol

kev

I hope your heatsinks aren't running that hot, lol!  Anyway, the point is to prolong the useful life of the LEDs, right?  My LED's run at or below human body temperature.  I guess my setup is very efficient.  But for others wishing to implement my program, they might not get such low temps.  I think your guestimate of ~60 or so C will suffice as a failsafe.  But if you can't keep your setup below this temp, then the failsafe will prevent them from staying on for your defined periods of time (only when they cool enough for the LEDs to turn back on, only to shut off when they go over the temp again, so on and so forth).  I suppose if this is the case, then there's a major design flaw in the system being utilized.  Do you think it would be better to change it so instead of just shutting them off, it dims them down to more efficient levels?  This of course would be quite a bit more complicated, and won't be realized until v1.2, if at all.  Maybe I'll just throw in the redundancy and let the end user work out the kinks for themselves...

on the Russian forum came to the conclusion that there is no sense to control fan controller,rather they are simply switched on and off with the lighting  with quality fans such as Noctua 140x140 NF-P14 FLX run very quietly and to deliver the full protection of bimetal switches I put my LED lamp ksd 301 response to temperature of 55 degrees.
(http://www.oursbiz.com/Products/b/19/Thermostat-KSD301-F1AC--511088.jpg)

Not sure if you read my earlier post on how the fans for the Jarduino operate, but they do so via PWM and at 25 kHz, so they operate outside of our audible range.  The only sound you hear is the air being moved, which is whisper quite.  Further, the higher the temp, the faster they go, and they are off when not needed, with the temperatures defined by the user.  This will help prevent the temp from ever getting so high, at least to temps according to the user.  IMHO, my solution is the superior one.  The fans I use (Arctic Cooling F12) are quite inexpensive (doesn't mean they aren't high quality), and I cannot hear them running at all, and they do move quite a bit of air.

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 05, 2012, 09:39:39 PM
Sorry Jamie my heatsinks only get a little warm not set the temp sensors up yet so dont know the exact temp, it was 99p for one 4.7k resistor or 100 of the for 1.98 so got 100 of them and came today thats the weekend job if i get around to it

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 05, 2012, 09:52:13 PM
Sorry Jamie my heatsinks only get a little warm not set the temp sensors up yet so dont know the exact temp, it was 99p for one 4.7k resistor or 100 of the for 1.98 so got 100 of them and came today thats the weekend job if i get around to it

100!  Woo hoo!  You can set up a temperature sensor factory now lol.  The way I have the code written, you use only one 4.7 kΩ resistor, no matter how many DS18B20 sensors you decide to use.  JUST ONE.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 05, 2012, 10:01:39 PM
well for the extra 0.99p thought sod it lol i have been trying to reply since you wrote that, that is how bad our internet speed is  :41:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 05, 2012, 10:18:50 PM
I just use my smartphone when my internet's slow.  4G LTE is pretty fast.  I get around 5 Mbps where I live using it.  My cable modem is much faster at 30 Mbps, but when it's slow or having issues, I just send out a WiFi signal with my Droid RAZR, and I'm up and going again.  Maybe you should consider switching Dial-Up providers lol!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 05, 2012, 10:31:40 PM
I have a better setup lol Bet this is not helping Kev though
I have 2 internet connections lol
Fixed IP for my Mail and Cable for surfing on
8 meg on one and 30 on the other lol
Also have 3 g on 2 phones if things get bad lol
Sorry kev that will not help but i need them for my Job lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 05, 2012, 10:52:00 PM
The way I have the code written, you use only one 4.7 kΩ resistor, no matter how many DS18B20 sensors you decide to use.  JUST ONE.
each sensor has its own serial number, How the controller determines which sensor is located in the sump as well as on the radiator?
reset every time they change places
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 05, 2012, 10:53:36 PM
recommend any good guides for building them just orded 10 from China

   
10PC DS18B20 18B20 Thermometer Temperature Sensor Dalla  :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 05, 2012, 10:56:07 PM
its the line thats faulty but where we live no spare lines to tap in to, i have been told that our 3 laptops and 2 pcs are all faulty and we have tried 4 modems as well each do the same even the phones will not connect to the net when the modems playing up as soon as the signal to noise ratio goes under 5 then broadband stops working then over 7 its fine but getting them to fork out for a new line more chance of me winning the lottery all they keep doing is resetting the line all the time when i complain which does naf all for the problem 1.5 years putting up with this now aint good

kev

Jamie 30mb !!!! jeez 3mb will be great for me as long as its constant one min ours is 5mb then 17kbps its mad
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 05, 2012, 11:00:57 PM
Its mad what you end up with, so far i have four 1280 boards 2 x 2560 boards 7 x 3.2" touch screens 6 x 1.1 mega shields 3 x atmega328 4 x nokia 3110 lcds

i use to use these but do not get the touch screens from them

http://www.nuelectronics.com/estore/

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 05, 2012, 11:02:58 PM
Hi Kev

How is it setup

ADSL Modem should be on the master socket in the house
Have you Tried a different ADSL filter
Also unplu all the phones and only the modem in the master socket in the house
Extensions not good and should have filters on the ends of them
I deal with this stuff all the time Use to work for a ISP and my Job is a feild support Enginner
So dealing with Customers ADSL as well as there servers
If its a line fault they should replace it
Hope That Helps
Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 05, 2012, 11:05:40 PM
have a mega 1280 clone
2 x touch screens One with a falty SD card
2 other screens and a collection of all sorts lol
Need to build min 2 possibly 3 controllers so will not all get wasted
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 05, 2012, 11:22:02 PM
Just orded these

http://arduino-direct.com/sunshop/index.php?l=product_detail&p=286

http://arduino-direct.com/sunshop/index.php?l=product_detail&p=201

Let you know when they arrive :)
Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 06, 2012, 12:05:41 AM
Nice one simon, heres the thread on the bt forum look through the modem stats,

http://community.bt.com/t5/BB-Speed-Connection-Issues/speed-problems/m-p/459025/highlight/false#M128054

got one main socked no extensions at all modem around 1ft from socket its a bt home hub 3 when it plays up the modem will not even let you look at its stats page on 192.168.1.254 just says page unable to be displayed this is on wired and wire less connections even on the phones, its like the modem gets stuck in a loop with the exchange nic card and unplugging the modem resets it for a while then it happens all over again.

Have you not thought of the solid state relays budd no moving parts

http://www.ebay.co.uk/itm/Solid-State-Relay-SSR-25A-Input-3-32VDC-Output-24-380VAC-NEW-High-Quality-/200723573860?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item2ebc0eac64

the screw shield i think is for the atmega 128/328 this ones for the megas

http://www.ebay.co.uk/itm/270941661171?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649


kev
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 06, 2012, 12:12:07 AM
could be a falty home hub you got another router to try ?

i have orded the relays dude but 30 days later still not turned up :(

they are suppose to be sending more

never noticed for wrong board dam :(

also got a couple of these to try

http://www.suntekstore.co.uk/product-14003021-aluminum_heatsink_for_5_x_3w_aquarium_led_light.html


Cheap and suppose to be ok
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 06, 2012, 01:32:34 AM
so far tried 2 home hub 2s 3 home hubs 3s a bt voyager 2110 and a dlink n adsl router all of them end up doing the same budd
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 06, 2012, 01:34:50 AM
I will get to bed lol

i use this seller for little heatsinks

http://www.ebay.co.uk/itm/180723793904?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

and this guy has some uk del leds

http://www.ebay.co.uk/itm/180796953333?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

just make sure you use 3w + no less

night all
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 06, 2012, 01:36:31 AM
Have you seen these as well

http://www.ebay.co.uk/itm/4pcs-6x1W-3W-High-Power-LED-Aluminum-Base-Plate-PCB-88mm-X-61mm-UK-Delivery-/180829563251?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item2a1a482973
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 06, 2012, 01:40:20 AM
Thanks Kev
Sound like a line issue then could be the line to the house what's the cable like that's BT responsibility
If they do not sort it threaten to change providers :)
Thanks For links as always :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 06, 2012, 01:48:34 AM
Also looking into Aluminium plate 12mm / 15mm thick and putting fans on top
See other forums were people have success
The reef beam clone as you have seen from mine is only thin aluminium plate and 3 fans
Worth looking into

I also have bought 3 off these

http://www.ebay.co.uk/itm/250987926517?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649#ht_2052wt_1139

I plane to try and see the best options without spending millions
commercial stuff still 2 expensive and diy we can repair and alter our own ;)

Have 2 meanwell drivers
Meanwell ELN 60-27P Dimmable LED Driver 20 for 2 so worth trying out with to start

Good Night Dude

Need to get my finger out now have all the bits

But holding off untill i am confident in building the stuff

Plus lots to learn on the Arduino :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 06, 2012, 02:21:18 AM
Hello!
If you are in need of a screw shield for the mega recommend this:

http://www.aqualed-light.com/?sec=home&id=1758

(http://farm8.staticflickr.com/7154/6749291469_e648238d05_z.jpg)

(http://farm8.staticflickr.com/7034/6749285349_1118bcbce8.jpg)

Hug.
Fernando Garcia
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 06, 2012, 02:36:29 AM
thanks Fernando
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 06, 2012, 03:26:00 AM
The way I have the code written, you use only one 4.7 kΩ resistor, no matter how many DS18B20 sensors you decide to use.  JUST ONE.
each sensor has its own serial number, How the controller determines which sensor is located in the sump as well as on the radiator?
reset every time they change places

No need to reset.  Once you determine the serial number (aka address), which you do using the DS18B20 example sketches, you put the addresses in the Jarduino code.  The program calls the address of each sensor.  For example, on the Jarduino Home Screen, you see three temp readouts (Sump, Heatsink, and H2O).  To get the Sump temp, the program calls the address of the Sump temp sensor.  Same goes for any other sensor hooked up to the 1-wire.   Here's what it looks like in the code for my three sensors:

// DS18B20 Temperature sensors plugged into pin 51 (Water, Hood, & Sump)
OneWire OneWireBus(51);     //Choose a digital pin
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&OneWireBus);   
// Assign the addresses of temperature sensors.  Add/Change addresses as needed.
DeviceAddress waterThermometer = { 0x28, 0x5C, 0x56, 0x59, 0x03, 0x00, 0x00, 0xEB };
DeviceAddress hoodThermometer = { 0x28, 0xC8, 0x4E, 0x59, 0x03, 0x00, 0x00, 0xC4 };
DeviceAddress sumpThermometer = { 0x28, 0x72, 0x22, 0x37, 0x03, 0x00, 0x00, 0xB9 };

So if I want to know the water temp, I simply call the "waterThermometer."

recommend any good guides for building them just orded 10 from China

   
10PC DS18B20 18B20 Thermometer Temperature Sensor Dalla  :)

I'm sure there's better ones out there, but I explain how I did mine in my thread: http://ukreefs.com/index.php?topic=117.msg3482#msg3482 (http://ukreefs.com/index.php?topic=117.msg3482#msg3482)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 06, 2012, 02:04:26 PM
Hi All,

Gettting desperate here, and left behind LOL, Been waiting nearly 2 months for my screen ( Original one didn't show up and still waiting for a replacement), Anyone in Manchester or the NW got a spare for sale ?


(It's especially Ironic, since the thread below this one in the 'Automated Systems' section is mine asking about an Audrino without a screen LOL)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 06, 2012, 02:55:22 PM
stevewild i have one but the sd card does not work

So happy to sell for the price i paid i will order another dude :)

Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 06, 2012, 02:56:27 PM
TheDOdblG  thanks for the link dude
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 06, 2012, 04:12:42 PM
stevewild i have one but the sd card does not work

So happy to sell for the price i paid i will order another dude :)

Simon

Hi simon, where are you and how much ?

Cheers
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 06, 2012, 08:27:02 PM
10 and i am in Keighley Can drop off one night next week dude if that helps

Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 09, 2012, 11:49:31 AM
10 and i am in Keighley Can drop off one night next week dude if that helps

Simon

Thanks Simon, That  would be good, tho I'm on nights next week, do you work over here ? Maybe I could collect during the day ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on April 09, 2012, 11:56:08 AM
Hello!
If you are in need of a screw shield for the mega recommend this:

http://www.aqualed-light.com/?sec=home&id=1758

(http://farm8.staticflickr.com/7154/6749291469_e648238d05_z.jpg)

(http://farm8.staticflickr.com/7034/6749285349_1118bcbce8.jpg)

Hug.
Fernando Garcia

This is just what I have been looking for, it will save me from a lot of soldering and desoldering  :c017:

I have sent an email to them for price to deliver and how to make payment, as they don't have an online shop yet.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 09, 2012, 03:57:16 PM
i would be interested in a couple as well dude :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on April 09, 2012, 05:19:05 PM
i would be interested in a couple as well dude :)
I have just received an email reply, delivery is 7 Euro to N.I.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 09, 2012, 06:30:42 PM
ok cool
thanks
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on April 09, 2012, 11:33:00 PM
They send an invoice via paypal, so i'm waiting to order kit version.

These guys were the only ones I could find that did the Mega version, all others were winglets for arduino only.  :c017: Fernando
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 10, 2012, 05:24:44 PM
They send an invoice via paypal, so i'm waiting to order kit version.

These guys were the only ones I could find that did the Mega version, all others were winglets for arduino only.  :c017: Fernando

Hello!
This shield was done through a group of shopping  forum portuguese , precisely because there are no products compatible with the lcds of ITEA STUDIO on the market.

http://www.reefforum.net/showthread.php?22568-Group-Buy-Build-Arduino-LEDS&p=186189&viewfull=1#post186189

Hug.
Fernando Garcia
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 10, 2012, 09:11:18 PM
thanks Fernando
need to translate site good old goole lol

Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on April 10, 2012, 10:47:42 PM
thanks Fernando
need to translate site good old goole lol

Simon

Send an email to info@aqualed-light.com with a list of what you want, he replies pretty quick, mine is ordered and shipped.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 11, 2012, 08:29:50 AM
10 and i am in Keighley Can drop off one night next week dude if that helps

Simon

Thanks Simon, That  would be good, tho I'm on nights next week, do you work over here ? Maybe I could collect during the day ?

Simon,

Don't know if you missed my reply, Have you the Screen still spare ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 11, 2012, 07:04:59 PM
yes dude pm me :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 16, 2012, 09:55:20 PM
Anyone seen the new mega shields are they still compatible same pins i am guessing 

http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=231


Kev


Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 16, 2012, 10:04:37 PM
wonder if they have a real time clock no battery on it ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 16, 2012, 11:07:09 PM
By the look of it no i am so glad i got four of the old ones lol

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 16, 2012, 11:50:34 PM
4 lol I know were to come when I want one lol if the others ever run out
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 17, 2012, 12:20:06 AM
They still sell the older version with the RTC but in kit form only: http://iteadstudio.com/store/index.php?main_page=product_info&cPath=17&products_id=236 (http://iteadstudio.com/store/index.php?main_page=product_info&cPath=17&products_id=236)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 17, 2012, 02:57:48 PM
Simon,

Thanks again for the TFT, was good to see your vast collection of tanks and bits and pieces you've got for the various builds, Can't say I envy you all that work.  :))

Only had time for an hour or so playing with the screen last night and got absolutley no where !  - Hopefully try again tonight!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 17, 2012, 03:06:17 PM
thanks Steve more bits came today
I have set my self a large task but had the day off today and the tank in front room is super clean glass
why pay lots of money for a fancy scraper a 1.99 B & Q works just as well :)
Nice to see you as well dude Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 17, 2012, 07:35:09 PM
Hello!
If you are in need of a screw shield for the mega recommend this:

http://www.aqualed-light.com/?sec=home&id=1758

(http://farm8.staticflickr.com/7154/6749291469_e648238d05_z.jpg)

(http://farm8.staticflickr.com/7034/6749285349_1118bcbce8.jpg)

Hug.
Fernando Garcia

This shield would save so much time for prototyping!  I had google translate the page.  Apparently you can only order them via email?  This seems sketchy.  Does anyone know of anything similar to this that works with the MEGA?  I found a bunch of differnet shields/extenders that work with the UNO/Due, but this is the first I've seen for the MEGA, and I can't order it!  Maybe you can help me get my hands on one of these Fernando.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 17, 2012, 07:55:19 PM
They emailed me back saying it's 25 EUR + 10.5 EUR shipping.  Very steep IMO for a protyping board.  DfRobot sells screw shields for the UNO  (http://www.dfrobot.com/index.php?route=product/product&path=35_39&product_id=71) for only 5.7 EUR.  I guess I'll just make one myself  :-)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 18, 2012, 12:28:56 AM
you can get the kit for 21 euro i have just orded one but agree expensive

http://www.ebay.co.uk/itm/Screw-Shield-Screwshield-Expansion-Board-Kit-Arduino-/230755622953?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item35ba1b6029

similar to yours :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 18, 2012, 02:11:02 AM
Yeah, I saw that one  too. I figure I can just make my own for around 8 EURO. Instead of screw terminals, I think I'll go with quick-connect spring terminals.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 18, 2012, 02:40:49 AM
could be interesting another thread maybe lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on April 18, 2012, 06:14:48 AM
Hello!
If you are in need of a screw shield for the mega recommend this:

http://www.aqualed-light.com/?sec=home&id=1758

(http://farm8.staticflickr.com/7154/6749291469_e648238d05_z.jpg)

(http://farm8.staticflickr.com/7034/6749285349_1118bcbce8.jpg)

Hug.
Fernando Garcia

This shield would save so much time for prototyping!  I had google translate the page.  Apparently you can only order them via email?  This seems sketchy.  Does anyone know of anything similar to this that works with the MEGA?  I found a bunch of differnet shields/extenders that work with the UNO/Due, but this is the first I've seen for the MEGA, and I can't order it!  Maybe you can help me get my hands on one of these Fernando.

Hello Jamie!
There is no shield in the market like this.
Was made only a small batch for a buy group as I mentioned earlier.
I think the ease of installation and future maintenance offset these 35.00 euros.
The purchase can only be done by email and payment is by Paypal.
The Baltasar is a great guy and honest, you can trust.

Hug.
Fernando Garcia
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 18, 2012, 10:39:08 PM
Now you need to replace the touch panel of the library ITDB02_Tuch your old or your touch-panel will not work correctly or calibrate

Example of an analog clock works?

Do not forget in all the examples and sketches to specify your screen and the pins to which it is connected

// Remember to change the next line if you are using as 16bit module!
#include <ITDB02_Graph16.h>
#include <ITDB02_Touch.h>

// Uncomment the next two lines for the ITDB02 Shield
ITDB02        myGLCD(38,39,40,41,ITDB32S);
ITDB02_Touch  myTouch(46,45,44,43,42);

Evening All,

If you don't mind stepping back a bit.....

I'm jst trying to get the Analogue Clock to run, Made the above changes (and also copied the 'ITDB02_Touch.cpp' That Bigguy sent me (I'm using his old TFT screen)

Getting Following errors :-

ITDB02_Analog_Clock.cpp.o: In function `__static_initialization_and_destruction_0':
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:51: undefined reference to `ITDB02_Touch::ITDB02_Touch(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
ITDB02_Analog_Clock.cpp.o: In function `waitForTouchRelease()':
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:294: undefined reference to `ITDB02_Touch::read()'
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:293: undefined reference to `ITDB02_Touch::dataAvailable()'
ITDB02_Analog_Clock.cpp.o: In function `setClock()':
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:564: undefined reference to `ITDB02_Touch::dataAvailable()'
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:566: undefined reference to `ITDB02_Touch::read()'
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:567: undefined reference to `ITDB02_Touch::getX()'
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:568: undefined reference to `ITDB02_Touch::getY()'
ITDB02_Analog_Clock.cpp.o: In function `loop':
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:941: undefined reference to `ITDB02_Touch::dataAvailable()'
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:943: undefined reference to `ITDB02_Touch::read()'
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:944: undefined reference to `ITDB02_Touch::getX()'
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:945: undefined reference to `ITDB02_Touch::getY()'
ITDB02_Analog_Clock.cpp.o: In function `setup':
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:68: undefined reference to `ITDB02_Touch::InitTouch(unsigned char)'
C:\Documents and Settings\6349ZU\LOCALS~1\Temp\build3375036352312457302.tmp/ITDB02_Analog_Clock.cpp:69: undefined reference to `ITDB02_Touch::setPrecision(unsigned char)'

Any Idea's ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 18, 2012, 11:06:30 PM
Steve

did you download the whole thing from Jamie as that works it will be your Library dude
i was having all sorts off issues
Like i showed you i have different versions of the same software
to get different things working
I am no expert but its all part of the fun :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 18, 2012, 11:26:31 PM
Looking at that i dont think the sketch can see the touch folder

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 18, 2012, 11:29:59 PM
Steve
If you are using an old screen then you have this piece of code would look like without  ITDB32S (this is for SSD1289)
ITDB02 myGLCD(38,39,40,41);
ITDB02_Touch MyTouch (46,45,44,43,42);

You'll also need another library DS1307 I have it attached  old library copy in another location, it is useful to you for jarduino and in its place, copy attached below

Now look you need to restart the Arduino IDE this can happen when you open multiple windows compiler
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 18, 2012, 11:40:42 PM
i just used Jamie's Down load it Worked
All the Library Included ?
Am i not missing something
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 18, 2012, 11:43:21 PM
Steve

did you download the whole thing from Jamie as that works it will be your Library dude
i was having all sorts off issues
Like i showed you i have different versions of the same software
to get different things working
I am no expert but its all part of the fun :)

Yes, tried Jamie's code first but was having no luck, thought I'd try something 'Simple' lol.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 18, 2012, 11:46:11 PM
what error was you getting with Jamie's Code dude
remember what i said I make sure i clear the temp files out every time

Post the error with Jamie's code
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 18, 2012, 11:50:11 PM
I have found as well from  experience that once you get the working code back it up i have 6 different version of 022  that run different things
it could be something as simple as the wrong Library version
I used Jamie's for his and tweaked it to get other peoples code working to see how it com-pairs
But so far Jamie's si the best one i have seen and with all the good ideas on here it will take a lot of beating
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 12:16:51 AM
Looking at that i dont think the sketch can see the touch folder

I put ITDB02_Touch, ITDB02_Graph16 and DS1307 folders inside a folder caller Libraries.

So I have a folder called 'Analogue Clock' that contains 2 sub folders :- ITDB02_Analog_Clock, and Libraries.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 12:21:27 AM
Steve
If you are using an old screen then you have this piece of code would look like without  ITDB32S (this is for SSD1289)
ITDB02 myGLCD(38,39,40,41);
ITDB02_Touch MyTouch (46,45,44,43,42);

You'll also need another library DS1307 I have it attached  old library copy in another location, it is useful to you for jarduino and in its place, copy attached below

Now look you need to restart the Arduino IDE this can happen when you open multiple windows compiler

Thanks, I already have the DS1307 library, The screen is the 3.2 (Old as in I got it of Bigguy).

Having just tried the Jarduino_v1_1 again I was just left with  the following error (Relating to the DS1307 :-

Jarduino_v1_1.cpp: In function 'void SaveRTC()':
Jarduino_v1_1:662: error: 'RTC' was not declared in this scope
Jarduino_v1_1:663: error: 'DS1307_SEC' was not declared in this scope
Jarduino_v1_1:664: error: 'DS1307_MIN' was not declared in this scope
Jarduino_v1_1:665: error: 'DS1307_HR' was not declared in this scope
Jarduino_v1_1:667: error: 'DS1307_DATE' was not declared in this scope
Jarduino_v1_1:668: error: 'DS1307_MTH' was not declared in this scope
Jarduino_v1_1:669: error: 'DS1307_YR' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void feedingTimeOutput()':
Jarduino_v1_1:3075: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3093: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3111: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3129: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void setup()':
Jarduino_v1_1:4463: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void loop()':
Jarduino_v1_1:4503: error: 'RTC' was not declared in this scope.

?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 12:23:04 AM
i just used Jamie's Down load it Worked
All the Library Included ?
Am i not missing something

Did you have to un-comment or comment anything or did it run as is ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 12:24:32 AM
what error was you getting with Jamie's Code dude
remember what i said I make sure i clear the temp files out every time

Post the error with Jamie's code

Here's the errors with Jamies code :-

Jarduino_v1_1.cpp: In function 'void SaveRTC()':
Jarduino_v1_1:662: error: 'RTC' was not declared in this scope
Jarduino_v1_1:663: error: 'DS1307_SEC' was not declared in this scope
Jarduino_v1_1:664: error: 'DS1307_MIN' was not declared in this scope
Jarduino_v1_1:665: error: 'DS1307_HR' was not declared in this scope
Jarduino_v1_1:667: error: 'DS1307_DATE' was not declared in this scope
Jarduino_v1_1:668: error: 'DS1307_MTH' was not declared in this scope
Jarduino_v1_1:669: error: 'DS1307_YR' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void feedingTimeOutput()':
Jarduino_v1_1:3075: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3093: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3111: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3129: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void setup()':
Jarduino_v1_1:4463: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void loop()':
Jarduino_v1_1:4503: error: 'RTC' was not declared in this scope
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 12:31:10 AM
Steve
If you are using an old screen then you have this piece of code would look like without  ITDB32S (this is for SSD1289)
ITDB02 myGLCD(38,39,40,41);
ITDB02_Touch MyTouch (46,45,44,43,42);

You'll also need another library DS1307 I have it attached  old library copy in another location, it is useful to you for jarduino and in its place, copy attached below

Now look you need to restart the Arduino IDE this can happen when you open multiple windows compiler

Thanks, I already have the DS1307 library, The screen is the 3.2 (Old as in I got it of Bigguy).

Having just tried the Jarduino_v1_1 again I was just left with  the following error (Relating to the DS1307 :-

Jarduino_v1_1.cpp: In function 'void SaveRTC()':
Jarduino_v1_1:662: error: 'RTC' was not declared in this scope
Jarduino_v1_1:663: error: 'DS1307_SEC' was not declared in this scope
Jarduino_v1_1:664: error: 'DS1307_MIN' was not declared in this scope
Jarduino_v1_1:665: error: 'DS1307_HR' was not declared in this scope
Jarduino_v1_1:667: error: 'DS1307_DATE' was not declared in this scope
Jarduino_v1_1:668: error: 'DS1307_MTH' was not declared in this scope
Jarduino_v1_1:669: error: 'DS1307_YR' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void feedingTimeOutput()':
Jarduino_v1_1:3075: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3093: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3111: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3129: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void setup()':
Jarduino_v1_1:4463: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void loop()':
Jarduino_v1_1:4503: error: 'RTC' was not declared in this scope.

?

Tried replacing the DS1307 library with the one you posted and resulted in the Following :-

Jarduino_v1_1.cpp: In function 'void SaveRTC()':
Jarduino_v1_1:662: error: 'RTC' was not declared in this scope
Jarduino_v1_1:663: error: 'DS1307_SEC' was not declared in this scope
Jarduino_v1_1:664: error: 'DS1307_MIN' was not declared in this scope
Jarduino_v1_1:665: error: 'DS1307_HR' was not declared in this scope
Jarduino_v1_1:667: error: 'DS1307_DATE' was not declared in this scope
Jarduino_v1_1:668: error: 'DS1307_MTH' was not declared in this scope
Jarduino_v1_1:669: error: 'DS1307_YR' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void feedingTimeOutput()':
Jarduino_v1_1:3075: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3093: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3111: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3129: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void setup()':
Jarduino_v1_1:4463: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void loop()':
Jarduino_v1_1:4503: error: 'RTC' was not declared in this scope

Which is exactly the same as previously
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 12:34:45 AM
I'm Only using the Arduino 022 from with in Jamies code, and I'm running that VB script you gave me to clear the Temp folder (By the way it is the temp folder on the C: drive isn't it ?)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 19, 2012, 12:35:30 AM
Thanks, I already have the DS1307 library, The screen is the 3.2 (Old as in I got it of Bigguy).
in libraries, there are some differences that you have a bug is because of the library DS1307 try that I'm stuck but do not delete the second
and all libraries should be located in the libraries Arduino IDE not in a folder with a sketch
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 19, 2012, 12:44:51 AM
Tried replacing the DS1307 library with the one you posted and resulted in the Following :-
is the library that I attached to ITDB02_Analog_Clock to sketch Jarduino_v1_1 Use the one that was with  arduino-0022-JarduinoPatch they are just slightly different
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 19, 2012, 12:55:11 AM
steve
that screen requires this dude

//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,ITDB32S);    //May need to add "ITDB32S" depending on LCD controller
ITDB02_Touch myTouch(6,5,4,3,2);

Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 01:24:03 AM
steve
that screen requires this dude

//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,ITDB32S);    //May need to add "ITDB32S" depending on LCD controller
ITDB02_Touch myTouch(6,5,4,3,2);

Simon

Thanks Simon,

Tried that and still the above RTC errors ! 
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 19, 2012, 01:31:03 AM
same issue i was having dude
read from here

http://ukreefs.com/index.php?topic=258.255

Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 01:46:30 AM
same issue i was having dude
read from here

http://ukreefs.com/index.php?topic=258.255

Simon

 :c017: Been reading and trying from there all night  :03:    That download refers to the SD card which doesn't work on this screen, I saw you had a similar problem but couldn't see the ultimate fix, Been trying every ones Suggestions so for to no avail...

Got an early start in morning so have to give up for tonight, Thanks for your and evvery one elses help so far.  Night All :-)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 19, 2012, 05:30:43 AM
Steve, make sure under the Arduino environment, your "preferences" are set to look for your sketch in the "arduino-0022-JarduinoPatch" folder (wherever you extracted it - in my case c:\arduino-0022-JarduinoPatch), and that under "Tools" you have the correct board and COM ports selected ("Board" and "Serial Port" respectively).  Once you do this, close the Arduino Environment, reopen it, and try again.

Also, you should clear the EEPROM prior to uploading the Jarduino sketch. Instructions on how to do this is located in my sketch right above the LED array values  (line 302).
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 19, 2012, 10:30:47 AM
Them errors are the incorrect versions of the rtc kind of remember getting them myself

Right did you get the clock sketch working, i think you need to start from scratch, get the arduino arduino-0022-JarduinoPatch then download a fresh set of hennings libraries

It does work there is something that your doing wrong budd
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 19, 2012, 10:34:13 AM
If you look at the bottom of the page of the link that Simon has put up he had the same trouble budd

Re: Arduino 3.2 tft colour touch screen build
Reply #269 on: April 03, 2012, 10:15:56 PM

http://ukreefs.com/index.php?topic=258.255

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 19, 2012, 10:53:41 AM
yea sorry should have said near bottom of page and next page
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 19, 2012, 04:16:58 PM
Them errors are the incorrect versions of the rtc kind of remember getting them myself

Right did you get the clock sketch working, i think you need to start from scratch, get the arduino arduino-0022-JarduinoPatch then download a fresh set of hennings libraries

It does work there is something that your doing wrong budd

But are those versions of Hennings libraries compatible with the Jarduino?  Keeping track of different versions of the same library can be a challenge, trying to remember which library works with which sketch and what not.  If you replace a library in the arduino folder that doesn't work with Jarduino, then you will get a lot of errors (if you forgot to put the old library back in) later when you try to get the Jarduino to work, which I believe is your goal.  Unless you are trying to build a clock, I would focus on trying to get the Jarduino to properly upload.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 19, 2012, 04:24:59 PM
that's why i have about 6 different folders and i also create a new one or copy one if i want to play with something :)
Thanks to Jamie and others took a while to figure this out but it sunk in , in the end lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 19, 2012, 04:43:18 PM
Steve
If you are using an old screen then you have this piece of code would look like without  ITDB32S (this is for SSD1289)
ITDB02 myGLCD(38,39,40,41);
ITDB02_Touch MyTouch (46,45,44,43,42);

You'll also need another library DS1307 I have it attached  old library copy in another location, it is useful to you for jarduino and in its place, copy attached below

Now look you need to restart the Arduino IDE this can happen when you open multiple windows compiler

Thanks, I already have the DS1307 library, The screen is the 3.2 (Old as in I got it of Bigguy).

Having just tried the Jarduino_v1_1 again I was just left with  the following error (Relating to the DS1307 :-

Jarduino_v1_1.cpp: In function 'void SaveRTC()':
Jarduino_v1_1:662: error: 'RTC' was not declared in this scope
Jarduino_v1_1:663: error: 'DS1307_SEC' was not declared in this scope
Jarduino_v1_1:664: error: 'DS1307_MIN' was not declared in this scope
Jarduino_v1_1:665: error: 'DS1307_HR' was not declared in this scope
Jarduino_v1_1:667: error: 'DS1307_DATE' was not declared in this scope
Jarduino_v1_1:668: error: 'DS1307_MTH' was not declared in this scope
Jarduino_v1_1:669: error: 'DS1307_YR' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void feedingTimeOutput()':
Jarduino_v1_1:3075: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3093: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3111: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3129: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void setup()':
Jarduino_v1_1:4463: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void loop()':
Jarduino_v1_1:4503: error: 'RTC' was not declared in this scope.

?

Since there's been several posts since Steve's last post, this will be me last post on this topic until he chimes back in letting us know about his progress...

Since this is my code, you guys could probably deduce that I'm using an "old" screen.  The condition the Jarduino sketch is in when you download it (http://code.google.com/p/jarduino-aquarium-controller/) is the way it was right before I uploaded it to my Arduino MEGA 2560.  Therefore, since in all likelihood Steve is using the same screen I'm using, NO changes should have to be made (to the libraries, pin settings, or otherwise).  My money would be on incorrect preference or tool settings or an EEPROM issue.  So to reiterate:

Steve, make sure under the Arduino environment, your "preferences" are set to look for your sketch in the "arduino-0022-JarduinoPatch" folder (wherever you extracted it - in my case c:\arduino-0022-JarduinoPatch), and that under "Tools" you have the correct board and COM ports selected ("Board" and "Serial Port" respectively).  Once you do this, close the Arduino Environment, reopen it, and try again.

Also, you should clear the EEPROM prior to uploading the Jarduino sketch. Instructions on how to do this is located in my sketch right above the LED array values (line 302).
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 05:45:50 PM
Steve
If you are using an old screen then you have this piece of code would look like without  ITDB32S (this is for SSD1289)
ITDB02 myGLCD(38,39,40,41);
ITDB02_Touch MyTouch (46,45,44,43,42);

You'll also need another library DS1307 I have it attached  old library copy in another location, it is useful to you for jarduino and in its place, copy attached below

Now look you need to restart the Arduino IDE this can happen when you open multiple windows compiler

Thanks, I already have the DS1307 library, The screen is the 3.2 (Old as in I got it of Bigguy).

Having just tried the Jarduino_v1_1 again I was just left with  the following error (Relating to the DS1307 :-

Jarduino_v1_1.cpp: In function 'void SaveRTC()':
Jarduino_v1_1:662: error: 'RTC' was not declared in this scope
Jarduino_v1_1:663: error: 'DS1307_SEC' was not declared in this scope
Jarduino_v1_1:664: error: 'DS1307_MIN' was not declared in this scope
Jarduino_v1_1:665: error: 'DS1307_HR' was not declared in this scope
Jarduino_v1_1:667: error: 'DS1307_DATE' was not declared in this scope
Jarduino_v1_1:668: error: 'DS1307_MTH' was not declared in this scope
Jarduino_v1_1:669: error: 'DS1307_YR' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void feedingTimeOutput()':
Jarduino_v1_1:3075: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3093: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3111: error: 'RTC' was not declared in this scope
Jarduino_v1_1:3129: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void setup()':
Jarduino_v1_1:4463: error: 'RTC' was not declared in this scope
Jarduino_v1_1.cpp: In function 'void loop()':
Jarduino_v1_1:4503: error: 'RTC' was not declared in this scope.

?

Since there's been several posts since Steve's last post, this will be me last post on this topic until he chimes back in letting us know about his progress...

Since this is my code, you guys could probably deduce that I'm using an "old" screen.  The condition the Jarduino sketch is in when you download it (http://code.google.com/p/jarduino-aquarium-controller/) is the way it was right before I uploaded it to my Arduino MEGA 2560.  Therefore, since in all likelihood Steve is using the same screen I'm using, NO changes should have to be made (to the libraries, pin settings, or otherwise).  My money would be on incorrect preference or tool settings or an EEPROM issue.  So to reiterate:

Steve, make sure under the Arduino environment, your "preferences" are set to look for your sketch in the "arduino-0022-JarduinoPatch" folder (wherever you extracted it - in my case c:\arduino-0022-JarduinoPatch), and that under "Tools" you have the correct board and COM ports selected ("Board" and "Serial Port" respectively).  Once you do this, close the Arduino Environment, reopen it, and try again.

Also, you should clear the EEPROM prior to uploading the Jarduino sketch. Instructions on how to do this is located in my sketch right above the LED array values (line 302).


Thanks for the update,
Hate it when work gets in the way of playing lol.

Embarrassingly, I think the issue was caused by the Battery I put in the Mega shield being flat ! I replaced it with a good one and the sketch compiled and Uploaded to the Auruino with out ant error's :whoo:

However the screen is still blank - I think because I've not calibrated the screen ?   I've not cleared the eproms so I''ll try that as well.

Thanks for the help.

Steve

Just to Clarify - This time I've used my work Laptop with a newly downloaded version of the  Jarduino Code, Libraries etc. So I may have been jumping the gun blaming the battery lol
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 19, 2012, 06:38:05 PM
is the screen black or grey ?

Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 09:01:45 PM
is the screen black or grey ?

Simon

Hi simon,

Grey (Can see it 'lit' from the connector end)
How do you calibrate it ?
Cheers
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 19, 2012, 09:56:53 PM
If there is nothing on the screen dont think theres much point in calibrating it until you get a sketch working, even an uncalibrated will work but the touch part will be out and the screens are more or less the same "x" and "y" readings

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 19, 2012, 10:21:11 PM
Try some example sketches found in the Arduino libriaries folder in the subfolders "ITDB02_Graph16" and "ITDB02_Touch."  Make sure you make any necessary changes to the sketch (change pin assignments, comment out the Regular arduino and uncomment the "Mega," etc.) prior to uploading.  If you can get these examples working, then getting the Jarduino to upload will be infinitely easier.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 10:38:27 PM
Try some example sketches found in the Arduino libriaries folder in the subfolders "ITDB02_Graph16" and "ITDB02_Touch."  Make sure you make any necessary changes to the sketch (change pin assignments, comment out the Regular arduino and uncomment the "Mega," etc.) prior to uploading.  If you can get these examples working, then getting the Jarduino to upload will be infinitely easier.

I've been trying the "ITDB02_Graph16" and "ITDB02_Touch." to no avail, However the latest UTFT from Henning's site works like a dream !   , Could you explain about 'change pin assignments' I thought the '38,39,40,41' was the pin assignment's (and that is what is used on the UTFT Sketch.  (I've been clearing the EEprom between uploading each sketch as you suggested.

One thing I noticed in the UTFT sketch is that the line :-

UTFT myGLCD(ITDB32S,38,39,40,41);   // Remember to change the model parameter to suit your display module!

Must have the 'ITDB32S' which isn't in the ITDB02_Touch sketch, Just adding it to the exsisting line doesn't work :-

ITDB02 myGLCD(ITDB32S,38,39,40,41);   // Remember to change the model parameter to suit your display module!

Does the 'ITDB32S' have to be defined somewhere ?

Thanks :41:

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 19, 2012, 10:56:10 PM
For the pins, I mean try different combinations:

ITDB02       myGLCD(38,39,40,41);
ITDB02_Touch myTouch(6,5,4,3,2);

or

ITDB02       myGLCD(38,39,40,41, ITDB32S);
ITDB02_Touch myTouch(6,5,4,3,2);

or

ITDB02       myGLCD(38,39,40,41);
ITDB02_Touch myTouch(46,45,44,43,42);

or

ITDB02       myGLCD(38,39,40,41, ITDB32S);
ITDB02_Touch myTouch(46,45,44,43,42);

Hopefully one of those will work out for you.  Let us know!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 19, 2012, 10:57:43 PM
Same as jamie

ITDB02       myGLCD(38,39,40,41, ITDB32S);
ITDB02_Touch myTouch(6,5,4,3,2);

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 19, 2012, 10:59:30 PM
Then the calibration is usually

#define PixSizeX   -15.34
#define PixOffsX   242
#define PixSizeY   11.08
#define PixOffsY   361

Kev
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 19, 2012, 11:03:05 PM
forgot to mention, make sure at the top of the sketch the library is:

#include <ITDB02_Graph16.h>

and NOT:

#include <ITDB02_Graph.h>
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 11:30:26 PM
For the pins, I mean try different combinations:

ITDB02       myGLCD(38,39,40,41);
ITDB02_Touch myTouch(6,5,4,3,2);

or

ITDB02       myGLCD(38,39,40,41, ITDB32S);
ITDB02_Touch myTouch(6,5,4,3,2);

or

ITDB02       myGLCD(38,39,40,41);
ITDB02_Touch myTouch(46,45,44,43,42);

or

ITDB02       myGLCD(38,39,40,41, ITDB32S);
ITDB02_Touch myTouch(46,45,44,43,42);

Hopefully one of those will work out for you.  Let us know!


Oh, OK I'll give all combinations a try and report back...
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 19, 2012, 11:32:30 PM
Have faith budd it will get sorted for you then you will be kicking yourself but when it is working save the software


Kev
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 19, 2012, 11:57:15 PM
 :bravo_2:

Fantastic Guy's, you did it...

The second combination (that I tried last !) worked :-

ITDB02       myGLCD(38,39,40,41, ITDB32S);
ITDB02_Touch myTouch(6,5,4,3,2);

(Although I'm sure I'd tried that previously) lol.

Noticed there's no display for 'hours' in the time/Date setting, hitting the + or - Buttons do nothing ?

Big thank you to all of you who offered help and Advice.

Times OK now - switching to 24hrs mode - setting the time and switching back to 12hr mode sorted it.

Everything saved and backed up. Phew

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 20, 2012, 12:05:36 AM
Yes!  Good job Steve!  The rest should all be downhill lol!

Maybe try clearing the EEPROM again.  Make sure you change the 512 to 4096 in the EEPROM Clear Sketch.  After you run that program, reupload the Jarduino.  If the clock's not there, play around with the clock settings a bit and save it anyway.  Then go back to the clock settings and try again.  My program can be a bit finickey at first...
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 20, 2012, 12:10:22 AM

Times OK now - switching to 24hrs mode - setting the time and switching back to 12hr mode sorted it.

Everything saved and backed up. Phew

Ah - you beat me to it.  Nice work!  Looks like you're progressing nicely in your Arduino Education.  Can't wait to see some pics of your completed build.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 20, 2012, 12:12:56 AM
Yes!  Good job Steve!  The rest should all be downhill lol!

Maybe try clearing the EEPROM again.  Make sure you change the 512 to 4096 in the EEPROM Clear Sketch.  After you run that program, reupload the Jarduino.  If the clock's not there, play around with the clock settings a bit and save it anyway.  Then go back to the clock settings and try again.  My program can be a bit finickey at first...

Sorted Jamie, see above, thanks.

Fantastic work on the code by the way, Just got to build the LED unit now...
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 20, 2012, 01:22:10 AM
:bravo_2:

Fantastic Guy's, you did it...

The second combination (that I tried last !) worked :-

ITDB02       myGLCD(38,39,40,41, ITDB32S);
ITDB02_Touch myTouch(6,5,4,3,2);

(Although I'm sure I'd tried that previously) lol.

Noticed there's no display for 'hours' in the time/Date setting, hitting the + or - Buttons do nothing ?

Big thank you to all of you who offered help and Advice.

Times OK now - switching to 24hrs mode - setting the time and switching back to 12hr mode sorted it.

Everything saved and backed up. Phew
just as i posted dude
but i have been in same boat as you dude
save that folder structure and copy it play with the copy
then you always have a know working structure ;)
great news dude is frustrating at times but once its working wow what a feeling
i spent 2 nights testing all teh downloads with difrent combinations
not as good at Kev and  jamie  with the code but the way jamie  has it commented it sort of makes sense


This was from page 26 about 3/4 of the way down
"
steve
that screen requires this dude

//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,ITDB32S);    //May need to add "ITDB32S" depending on LCD controller
ITDB02_Touch myTouch(6,5,4,3,2);
"

Good work dude
Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 20, 2012, 01:29:02 AM
Success tastes much sweeter when we know what failure tasted like
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on April 20, 2012, 01:47:53 AM
Success tastes much sweeter when we know what failure tasted like

nice quote dude :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on April 20, 2012, 08:33:51 AM
I like that quote Jamie, Nice work on getting it going budd, Once you have cleaned the eeprom just make sure the touch is functioning correctly

Kev


Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 20, 2012, 11:35:10 AM
:bravo_2:

Fantastic Guy's, you did it...

The second combination (that I tried last !) worked :-

ITDB02       myGLCD(38,39,40,41, ITDB32S);
ITDB02_Touch myTouch(6,5,4,3,2);

(Although I'm sure I'd tried that previously) lol.

Noticed there's no display for 'hours' in the time/Date setting, hitting the + or - Buttons do nothing ?

Big thank you to all of you who offered help and Advice.

Times OK now - switching to 24hrs mode - setting the time and switching back to 12hr mode sorted it.

Everything saved and backed up. Phew
just as i posted dude
but i have been in same boat as you dude
save that folder structure and copy it play with the copy
then you always have a know working structure ;)
great news dude is frustrating at times but once its working wow what a feeling
i spent 2 nights testing all teh downloads with difrent combinations
not as good at Kev and  jamie  with the code but the way jamie  has it commented it sort of makes sense


This was from page 26 about 3/4 of the way down
"
steve
that screen requires this dude

//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,ITDB32S);    //May need to add "ITDB32S" depending on LCD controller
ITDB02_Touch myTouch(6,5,4,3,2);
"

Good work dude
Simon


LOL - I'm sure I tried everything you guy's suggested the previous night - But that was before I discovered my Faux par with the dead Battery !

No excuses for putting off the LED build now, So what I wanted to ask was.........
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 20, 2012, 11:42:30 AM
Success tastes much sweeter when we know what failure tasted like

Good quote,
Confucius he say :- If at first you don't succeed - get onto theguy's at UKreefs.com

My personal favorite is :-

Before you judge a man, walk a mile in his shoes. After that, who cares? ...He's a mile away and you've got his shoes. :))
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: stevewild31 on April 20, 2012, 11:44:18 AM
I like that quote Jamie, Nice work on getting it going budd, Once you have cleaned the eeprom just make sure the touch is functioning correctly

Kev

Yep, Copied, backed up and tested - Not risking loosing the working settings now...

Tks
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 20, 2012, 07:31:13 PM
....  But that was before I discovered my Faux par with the dead Battery !

No excuses for putting off the LED build now, So what I wanted to ask was.........

I'm certain the battery was not the issue.  You can take the battery out and it will still work fine, it just won't remember the date and time if you lose power (it will default back to 1/1/2000 and 12:00 AM whenever you resume from a diconnection of power). 

Your "no excuses" statement reminds me of one of my favorite quotes (well maybe not my favorite, but it characterizes me well):  "I was going to procrastinate today, but decided to wait until tomorrow."  :))
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 20, 2012, 07:35:46 PM
I should also mention that the battery is ONLY used for storing the date and time.  ALL of your other settings - LED values, preferences, WaveMaker and Feeding times, etc. DO NOT require the battery, as these values are stored in the Arduino's memory (aka EEPROM).  You can disconnect the battery, and years later plug it in and it will pick up right where it left off (minus the RTC settings).
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: svyaz on April 22, 2012, 01:34:43 AM
I want to ask Jamie
Is it possible to control LEDs as in the example written in Processing RGB Mixer ? http://lab.guilhermemartins.net/2010/07/22/processing-to-arduino/
I have here is what happened,tried the code jarduino prescribe the serialCommands get a response after 3 seconds set the port speed 115200
in the attached file for the project Processing (Jarduino.zip) and compiled exe file for windows
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: chrisb on April 23, 2012, 03:43:32 PM
 Hi,  great thread  ;D
Never played with programming prior to this, so thanks for the inspiration.

svyaz, this is my attempt so far at creating slide control, needs some work to make smooth. Outputs a 0-255 value to serial.

Code: [Select]
#include <UTFT.h>
#include <ITDB02_Touch.h>

UTFT myGLCD(ITDB32S,38,39,40,41);   
ITDB02_Touch  myTouch(6,5,4,3,2);


int x, y;


void setup()
{
  myGLCD.InitLCD();
  myGLCD.clrScr();

  myTouch.InitTouch(LANDSCAPE);
  myTouch.setPrecision(PREC_MEDIUM);
  Serial.begin(9600);
   myGLCD.setColor(255, 255, 0);
     myGLCD.drawRect(28, 28, 92, 202);
}

void loop()
{
   
    while (myTouch.dataAvailable() == true)
    {
      myTouch.read();
      x = myTouch.getX();
      y = myTouch.getY();
      if((x>=30) && (x<=90) && (y>=30) && (y<=200))
      {
        y = map(y, 200, 30, 0, 255);
      }else{
        y = 0;
      }
     
      Serial.println(y);
      screen();
    } 
    delay(50);
}   
void screen()
{
   y = map(y, 0, 255, 200, 30);
    if(y >= y)
    {
    myGLCD.setColor(255, 255, 0);
     myGLCD.fillRect(30, y, 90, 200);
    if(y <= y)
      myGLCD.setColor(0, 0, 0);
     myGLCD.fillRect(30, 30, 90, y);
    }
     
}



Chris
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on April 24, 2012, 09:08:49 AM
I want to ask Jamie
Is it possible to control LEDs as in the example written in Processing RGB Mixer ? http://lab.guilhermemartins.net/2010/07/22/processing-to-arduino/ (http://lab.guilhermemartins.net/2010/07/22/processing-to-arduino/) I have here is what happened,tried the code jarduino prescribe the serialCommands get a response after 3 seconds set the port speed 115200
in the attached file for the project Processing (Jarduino.zip) and compiled exe file for windows

Sorry it's been so long for me to respond.  I ran into a fairly large issue (http://ukreefs.com/index.php?topic=733.0).  This is the worst case scenario IMO for a fish tank owner.

Back to your question, I never attempted to control the LEDs via processing, but I'm sure it's possible, as the link you provided clearly demonstrates.  Your modification of his RGB mixer is very cool!  The sliders closely resemble what I'm currently working on, but for the Touch Screen LCD.  What did you use to create/modify that? I'm not familiar with programing in java, but am a quick learner.  Maybe I'll have a look, as it may be a big help when I get the wifi up and going.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: wgraham on April 26, 2012, 01:50:28 AM
Hello, new to this site and just started my 135g and a 90g tank using LED's and an arduino type controller.  Right now I have the 90g up and running with a mega and 16, 4 LCD and was thinking about this 3.2 touch.  I downloaded the code and put the libraries in the library folder and when I tried to comply the sketch it give me a lot of error.  Any help would be appreciated.  I have a background in electronics but not in writing code.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: wgraham on April 26, 2012, 03:03:31 AM
Hello again,  I was reading thru some of the post and install the old library for the ITDB02_Graph16 and DS1307 and got it to verify, now I will order the touchscreen and hopefully it will work. 
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bemenaker on May 14, 2012, 06:05:36 PM
Will this run on an Uno or does the size of the program, or pin  requirements, dictate a 2560?  I've read this whole thread, and grabbed the Jarduino1.1 and it compiles ok.  I'm still planning on what I want to do, but I like this setup so much better than anything I've seen.  This is some incredible work.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on May 14, 2012, 06:10:33 PM
No budd a 2560 but the moon images can be compressed to get it on a 1280

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on May 14, 2012, 06:16:23 PM
Also a warm welcome to both of you to ukreefs

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on May 14, 2012, 08:08:47 PM
No budd a 2560 but the moon images can be compressed to get it on a 1280

In an upcoming release, I took several measures to cut the size of the program down, but with all the additions I've since added, it is now over 160kB's.  With each subsequent release, the Jarduino will continue to grow in size.  Therefore, further compression of the moon images will eventually leave them far too pixelated.  If you absolutely have to use a 1280, with some minor modification to the sketch you could move the larger image files over to an SD card.  Unless you already have a 1280, it seems pointless in buying one as the 1280 and the 2560 virtually costs the same. 

Will this run on an Uno or does the size of the program, or pin  requirements, dictate a 2560?  I've read this whole thread, and grabbed the Jarduino1.1 and it compiles ok.  I'm still planning on what I want to do, but I like this setup so much better than anything I've seen.  This is some incredible work.

Welcome aboard!

Assuming you could reduce the size of the Jarduino to fit in and work on an UNO (good luck!), size wouldn't be the only issue.  The LCD touch screen alone would occupy ALL the pins of the UNO except digital pins 8 & 9, and 4 analog pins.  And since digital pin 8 isn't PWM, you would only be able to control LEDs on 1 channel (using pin 9).  You would also lose the ability to control any fans, or any other peripherials for that matter (with the exception of 1 digital non-PWM device controlled by pin eight).  You would also have to use an analog temperature sensor such as the LM35 (instead of DS18B20), since only a few analog channels would be available.  And, you also wouldn't have any room for a RTC (Real Time Clock), which is vital in controlling pretty much everything...
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bemenaker on May 14, 2012, 09:35:13 PM
Thanks for the reply, I figured that was what the answer was.  I ordered a started kit to start learning with and it's an uno.  I figured I would be getting a 2560 for my actual project. 

So am I correct in understanding that the moon.c files are the images themselves of the moon?  Looking at the code, that was all that made sense to me.  Hmm, I guess if read through the jarduino.pde more it would probably answer that.  :)

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on May 14, 2012, 09:48:52 PM
So am I correct in understanding that the moon.c files are the images themselves of the moon?

Yes.  You can "make" image files the Arduino IDE can understand by using the image conversion tool(s) included in the Arduino Library folder: ...arduino-0022-JarduinoPatch\libraries\ITDB02_Graph16\Tools

This can come in handy if you want to reduce the picture/file sizes, or if you want to add any other images...
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Majeric on May 17, 2012, 12:47:01 PM
Hello

I've been watching this thread for quite a while now.

I've decided to take the plunge and get myself the correct hardware:
arduino mega 2560
mega shield pre assembled
3.2 tft touch screen.

hopefully the kit should arrive soon.

i've never actually done anything with an ardunio so i'm completing new to this.

i want to be able to control 2 strings - one for white and one for blues.
thats the initial plan at least. both connected to independent eln 60 48p's

i'm actually part way through building the lighting until for my Roma 125. should be completed in the coming weeks.

wanted to know if there is one consolidate package i can use to run my controller?

i've been reading about various links, but cant seem to find out.

any help would be greatly appreciated!

thanks

Rajiv
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bemenaker on May 17, 2012, 04:40:40 PM
One more simple question. The beginning of this thread talks about needing to merge the stilo code into the jarduino code to be complete.  I am assuming that is no longer correct.  That the Jarduino1.1 from the code.google site is complete as is.

The work you have done is incredible.  I found your 44 gallon tank build thread and read it in it's entirety and I was just blown away.  Nice work.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on May 17, 2012, 06:14:51 PM
For that the stilo sketch will be fine budd, just need to convert the arduinos pwm output from 0-5v to 0-10v for use with the meanwells, think theres a diagram a few pages back budd

Hello

I've been watching this thread for quite a while now.

I've decided to take the plunge and get myself the correct hardware:
arduino mega 2560
mega shield pre assembled
3.2 tft touch screen.

hopefully the kit should arrive soon.

i've never actually done anything with an ardunio so i'm completing new to this.

i want to be able to control 2 strings - one for white and one for blues.
thats the initial plan at least. both connected to independent eln 60 48p's

i'm actually part way through building the lighting until for my Roma 125. should be completed in the coming weeks.

wanted to know if there is one consolidate package i can use to run my controller?

i've been reading about various links, but cant seem to find out.

any help would be greatly appreciated!

thanks

Rajiv
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on May 17, 2012, 06:15:37 PM
Just use the jarduino now and the new libraries buddy



One more simple question. The beginning of this thread talks about needing to merge the stilo code into the jarduino code to be complete.  I am assuming that is no longer correct.  That the Jarduino1.1 from the code.google site is complete as is.

The work you have done is incredible.  I found your 44 gallon tank build thread and read it in it's entirety and I was just blown away.  Nice work.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on May 17, 2012, 11:07:18 PM
One more simple question. The beginning of this thread talks about needing to merge the stilo code into the jarduino code to be complete.  I am assuming that is no longer correct.  That the Jarduino1.1 from the code.google site is complete as is.

The work you have done is incredible.  I found your 44 gallon tank build thread and read it in it's entirety and I was just blown away.  Nice work.

Hi Brian, the download (http://code.google.com/p/jarduino-aquarium-controller/) is complete with all the Libraries you will need included.  I also included a lot of comments/instructions on what to change in the the Jarduino program sketch given your hardware.  Let me know if you need any help with it.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Majeric on June 06, 2012, 02:22:09 PM
So i connected everything up and uploaded the sketch from TheDOdblG, but now i get a white screen.

parts i've used are:

Arduino-Compatible Mega 2560
3.2 inch tft lcd
* LCD Module is with SSD1289 Controller
* ADS7843 compatible touch panel controller
ITDB02 Arduino MEGA Shield v2.0 (SHD014)

Any help would be appreciated.

I tried the Stilo sketch but got errors compiling it.

For that the stilo sketch will be fine budd, just need to convert the arduinos pwm output from 0-5v to 0-10v for use with the meanwells, think theres a diagram a few pages back budd

Hello

I've been watching this thread for quite a while now.

I've decided to take the plunge and get myself the correct hardware:
arduino mega 2560
mega shield pre assembled
3.2 tft touch screen.

hopefully the kit should arrive soon.

i've never actually done anything with an ardunio so i'm completing new to this.

i want to be able to control 2 strings - one for white and one for blues.
thats the initial plan at least. both connected to independent eln 60 48p's

i'm actually part way through building the lighting until for my Roma 125. should be completed in the coming weeks.

wanted to know if there is one consolidate package i can use to run my controller?

i've been reading about various links, but cant seem to find out.

any help would be greatly appreciated!

thanks

Rajiv
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: wgraham on June 06, 2012, 02:46:57 PM
I had the same problem and check the pin out make sure they are going to the right place
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Majeric on June 06, 2012, 02:49:16 PM
"pin out"?

:-(

I had the same problem and check the pin out make sure they are going to the right place
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: wgraham on June 06, 2012, 04:18:15 PM
pin outs of the lcd to the shield to the arduino
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on June 06, 2012, 06:45:16 PM
So i connected everything up and uploaded the sketch from TheDOdblG, but now i get a white screen.

parts i've used are:

Arduino-Compatible Mega 2560
3.2 inch tft lcd
* LCD Module is with SSD1289 Controller
* ADS7843 compatible touch panel controller
ITDB02 Arduino MEGA Shield v2.0 (SHD014)

Any help would be appreciated.

A white screen usually indicates that you have selected the wrong controller in the program sketch.  I assume you are trying to use Jarduino v1.1.  On line 92 of that sketch, change it so it reads this:

ITDB02 myGLCD(38,39,40,41, ITDB32S);

the extra "ITDB32S" tells the program you are using the SSD1289
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: wgraham on June 07, 2012, 02:52:26 AM
Just hook up my temp sensors and I'm not getting a reading still showing error :'(
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on June 07, 2012, 02:54:34 AM
Post up some pics of how you hooked them up.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: chrisb on June 09, 2012, 02:00:33 PM
Also double check that your using the correct temp probe address.

Chris
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: wgraham on June 11, 2012, 02:49:04 PM
I have it hook up right, how do you assign the correct address to the temp probe. I have the 4.7k going from the center pin and to 5 volts and the ground to ground and 5 volt pin to 5 volt.  I will send pictures later
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: wgraham on June 11, 2012, 09:00:19 PM
Went back to Jarduino_1_for_SSD1289 and the temp sensor that I tested worked just won't work with the new code.  I notice in the new code that the one wire is not define is that ok.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on June 11, 2012, 09:27:23 PM
I notice in the new code that the one wire is not define is that ok.

That's weird.  It should be.  I checked mine, and it is the same for all versions.  The code(s) i've posted are all in the exact same condition I use to upload to my board.  If one works, then the others should work as well.  Make sure when swithcing from one code to another you clear the eeprom each time in between uploads.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: wgraham on June 11, 2012, 09:49:47 PM
Here is the code for the temp sensor

// DS18B20 Temperature sensors plugged into pin 51 (Water, Hood, & Sump)
OneWire OneWireBus(51);     //Choose a digital pin
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&OneWireBus);   
// Assign the addresses of temperature sensors.  Add/Change addresses as needed.
DeviceAddress waterThermometer = { 0x28, 0x5C, 0x56, 0x59, 0x03, 0x00, 0x00, 0xEB };
DeviceAddress hoodThermometer = { 0x28, 0xC8, 0x4E, 0x59, 0x03, 0x00, 0x00, 0xC4 };
DeviceAddress sumpThermometer = { 0x28, 0x72, 0x22, 0x37, 0x03, 0x00, 0x00, 0xB9 };


I notice in the old Jarduino_1_for_SSD1289 that ever sensor is define

// Water sensor plugged into pin 47, hood/heatsink sensor plugged into pin 48, sump sensor in pin 49
#define ONE_WIRE_BUS_W 48     
#define ONE_WIRE_BUS_H 49
#define ONE_WIRE_BUS_S 50
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWireW(ONE_WIRE_BUS_W);
OneWire oneWireH(ONE_WIRE_BUS_H);
OneWire oneWireS(ONE_WIRE_BUS_S);
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensorW(&oneWireW);       // water sensor
DallasTemperature sensorH(&oneWireH);       // hood/heatsink sensor
DallasTemperature sensorS(&oneWireS);       // sump sensor

should I put the define in front of it.  I'm not a software guy
Thanks
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: wgraham on June 12, 2012, 12:41:06 AM
Just clear eeprom and uploaded V2 and still reads error on all three temp
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on June 12, 2012, 02:14:36 AM
Oh. I didn't realize you were talking about that version of my code. That one was never meant to be released... If you are getting an error, it is because you don't have the correct temp sensor addresses. The ones you have listed will work with MY sensors and MY sensors alone. You need to use one of the "Dallas temperature sensor" sketches to determine the unique addresses of YOUR sensors. Use the sketch called "tester" and do one sensor at a time. Use the serial monitor and it will spit back the addresses. Write/copy them and be sure to label what sensor it is you just got the address for. It will be in a different format then what you get from the serial monitor; just group the letters/numbers in two's, making sure to put a "0x"in front of each group. The length of the addresses will be the same as mine and you need to put it in that same format.

For example, this is what I got for my Water Temperature Sensor:
     285C5659030000EB
And this is the way it needs to look in the code:
     0x28, 0x5C, 0x56, 0x59, 0x03, 0x00, 0x00, 0xEB

Notice how I added "0x" in front of each group of two alphanumerics.  You will need to do the same.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: wgraham on June 12, 2012, 02:38:11 AM
Thanks for the help  :bravo_2: working now
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on June 12, 2012, 03:13:44 PM
Glad to help. Good luck with the rest of your build; I would like to see some pics of it running your tank when completed. 
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: wgraham on June 12, 2012, 09:13:04 PM
Will do  :c017:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: OdessaDan on July 14, 2012, 05:55:14 PM
Hello everyone,

My name is Daniel and I am from the United States. I was searching on the internet for some information on a DIY reef controller and stumbled on to your website. I love the website. I just got finished reading this entire thread and just have to say that your work on the controller is amazing.

I am thinking about starting my own controller, I have never worked with Arduino and am kinda nervous. What would be the best place to start? Also, is it possible to get a copy of the code you use so that I can take a look at it.

I understand that I am going to have to do a ton of research, I am hoping that I can slowly pick everything up and eventually be able to build my own controller.

Thanks Everyone,

Dan
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on July 14, 2012, 05:57:53 PM
Hi Dan
Welcome to the site and enjoy the stay dude ;)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: OdessaDan on July 14, 2012, 06:38:01 PM
Thanks Bigguy,

This controller is overwhelming. I am rereading the thread, and am still lost.. LOL


Thanks,

Dan
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on July 14, 2012, 07:46:50 PM
a warm welcome to you matey

any questions just ask away

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on July 14, 2012, 07:54:30 PM
Thanks Bigguy,

This controller is overwhelming. I am rereading the thread, and am still lost.. LOL


Thanks,

Dan

Hi Dan

Yep This is a Great Place For tHe answers and I am Like You Still learning
Great Bunch Of People on here :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: OdessaDan on July 14, 2012, 07:59:30 PM
Thanks for the warm welcome.

Are there any diagrams to look at for connecting all of the main components.

Also, I just ordered the Arduino Mega and the RTC to start the build, I am looking for a screen to purchase. Any recomendations on where to order from? I also, emailed TheDOdblG to see if I could get a copy of the newest code to begin looking at the language it is written in.

Thanks Again,

Dan
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on July 14, 2012, 10:00:03 PM
Are there any diagrams to look at for connecting all of the main components.

Welcome aboard Dan. I made a diagram for it, but is specific to my setup. Check out my build thread, it's somewhere in there:  http://ukreefs.com/index.php?topic=117.0 (http://ukreefs.com/index.php?topic=117.0)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: OdessaDan on July 14, 2012, 10:19:11 PM
Thanks TheDOdblG,

I will try and dissect the diagram to help fit my application. I tried to download the code from your site and it asks for a password. What will I need to do to be able to access the code.

Thanks, for everything I can't wait until the boards get here. Lol
Dan
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on July 15, 2012, 04:42:59 AM
All the information you need is available on the Jarduino's download page (http://code.google.com/p/jarduino-aquarium-controller/).
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: OdessaDan on July 15, 2012, 03:48:42 PM
Thanks for the reply,


I will check everything out and get working on the controller.


Thanks,

Dan
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: GothBoy on July 23, 2012, 02:58:20 PM
Okay, I feel like a tool. My Shield 2.0 arrived so I've plugged it in and loaded the sketch. After changing the parameters to get the display to work I now have the initial display. But, that's it, nothing happens when I touch the screen and I obviously don't have a clock chip because the Shield 2.0 doesn't include one. Am I missing something simple?

I have the Shield 1.0 kit but my hands are knackered and I can't solder the tiny clock IC :(

 :confuse:

EDIT - Oh for the love of God, swapped out to another LCD and it works. So, next query is, how to I access all the PWM and other pins now covered by the shield?  :))
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on July 23, 2012, 11:51:45 PM
Okay, I feel like a tool. My Shield 2.0 arrived so I've plugged it in and loaded the sketch. After changing the parameters to get the display to work I now have the initial display. But, that's it, nothing happens when I touch the screen and I obviously don't have a clock chip because the Shield 2.0 doesn't include one. Am I missing something simple?

I have the Shield 1.0 kit but my hands are knackered and I can't solder the tiny clock IC :(

 :confuse:

EDIT - Oh for the love of God, swapped out to another LCD and it works. So, next query is, how to I access all the PWM and other pins now covered by the shield?  :))

Don't know what arduino you are using, I have a Mega and bought a screw shield, See #63 here

http://ukreefs.com/index.php?topic=605.60

It gives screw type connector access to all pins, was the biz for me on my build.

Hope that helps.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: GothBoy on July 24, 2012, 10:31:17 AM
That sounds exactly what I need for my Mega, thanks!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on July 24, 2012, 04:30:41 PM
That sounds exactly what I need for my Mega, thanks!
I bought mine as a kit, but I think there is an option to buy it pre made, certainly proved useful for me.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on July 24, 2012, 07:40:30 PM
If its The Mega then This is the link to the Site
http://www.aqualed-light.com/?sec=home&id=1758

i bought the built up one
Not Cheap but I am a novice when it comes to soldering
In fact i need to Buy a good soldering iron if anybody can recommend for a beginner :)

Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on July 24, 2012, 08:16:34 PM
Weller or Hakko is what I recommend. I have a Hakko FX-888. You need a good one to solder the wires to the LEDs, as the heatsink will try its best to suck all the heat from the iron. A cheap one will never get it done properly. When soldering, you don't want the heat from the iron to be in contact (or in close proximity) to your delicate electronics any longer than the amount of time that's needed. Any more and you're risking damage.  BTW, my hakko imo is the absolute best you can get for the money. By far.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on July 24, 2012, 08:24:26 PM
 :c017: dude but Hakko FX-888 only in us as far as i can see ;(
will have to do some digging
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Rebs on July 29, 2012, 02:13:14 PM
Hi Everyone
Another new guy on the forum. I'm in the process of building my controller and have all the bits assembled and working individually, but no surprise I'm struggling to get the code working. I've just discovered the Jarduino and would love to pick the experts brains as I can't get my code to compile. Lots of error messages to do with my 3.2" tft and also my DS1307. I get paid Tuesday so will be donating to get some good advice and hopefully sort oout my problems. Until then...
Rebs
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on July 29, 2012, 02:15:39 PM
Hi Andy
What errors are you getting dude and what version of the code are you using ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Rebs on July 29, 2012, 03:50:00 PM
Hi bigguy

I have been having error messages relating to my 3.2" screen using UTFT and also error messages relating to my DS1307. Basically saying the RTC is not recognised. I've tried to load earlier versions of the RTC library but can't clear them. Finally in desparation I've tried to load the v1.1 under Arduino 0022. Even this will not complie and I'm getting the following:

C:\...\Jarduino_v1_1.cpp.elf section .text will not fit in region text

C:\...region text overflowed by 18912 bytes

I'm assuming the sketch length is too long by 18912 bytes. But I don't know what to do about it, so I'm going outside now to bang my head against a wall!
Rebs
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on July 29, 2012, 04:35:08 PM
now then budd, you need the arduino 2560 have you got that one or the 1280 ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Rebs on July 29, 2012, 06:01:33 PM
Hi Tangtastic,

Thanks for the reply. I've had success, well partial success anyway. I've managed to get v1.1 up and running with some slimmed down code, when I say slimmed I really mean anerexic. But hey it's working, so I have a starting point. But you are right I'm running it on a 1280 rather than a 2560. I take it that a 2560 will allow larger sketches.

I don't really need the led parts of the code, as I'm planning to use a Metal Halide and T5 actinics. So I can cut down on a huge chunk of code there. That is unless you persuade me to go with leds rather than MH. But hopefully now that I have a break through I can keep progressing. It's only taken me two weeks to get to this point! Just one question though, the last time I built one of these for my tropical tank, the Arduino IDE was 0022. I thought with Arduino 1.0 things would be easier. Its only been a few years since I played with code last, but things seem to have got more difficult since then.

Thanks

Andy
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on July 29, 2012, 06:04:45 PM
hi reb

when you donate you get the cut down version with all the features dude i have it and works spot on on my 1280 dude just a bit of reading for you to do dude
You will get there in the end . And its worth Donating as TheDOdblG is a great guy and helped us all on here dude :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Rebs on July 29, 2012, 06:18:08 PM
Hi bigguy
Thanks for that, just out of interest. What is considered to be a suitable donation?

Cheers
Andy
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on July 29, 2012, 06:25:52 PM
what every you think dude there is no obligation dude just he has put hours and hours of work into his code ;)
also he is working on a wifi bit now :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on July 29, 2012, 09:20:34 PM
Sorry budd, if you just want a 2 ch one why not look at the stilo code although jamies is far more advanced, How do you plan on dimming the halides ?

kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Rebs on July 30, 2012, 06:49:47 AM
Hi Kev

I've looked at both Jamie's and the Stilo code. You're right Jamie's is very advanced. I figured that should I update my lighting in the future, then Jamie's code would give me an easier time of it then. But for the time being I have a Marine Lux electronic ballast for my MH lighting which has a dimmer control on it (albeit a manual knob). I was hoping to convert the dimmer to a digital potentiometer so I could PWM it from the Arduino. But that is for later when I have it all up and running.

Andy
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Rebs on July 30, 2012, 05:09:14 PM
Hi Everyone,

OK here goes, my first serious question for all you Arduino gurus out there. I plan to include a pH sensor into my controller, so I bought the Sparkfun pH Stamp. If any of you have used this piece of kit, you will know that you have to send the stamp commands in order to receive a pH reading. The example sketch uses the serial.xxx series of commands to allow you to communicate via the PC to the stamp and display the results on the PC monitor. I know you have to use the software serial library, but I'm having a really hard time working out the code to allow my Arduino to communicate with the pH stamp. Have any of you out there used this stamp with your arduino and come up with a viable code? I'd appreciate any help with this one, as it really has me stumped.

Cheers
Andy
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on July 30, 2012, 06:48:08 PM
Jamies future updates for the arduino

// Other Possible Future Developments
//    Improved User Interfaces (Main Screen Panels & Shortcuts)
//    Replace the ITDB02_Touch.h Library with the latest release (when available)
//    Random Weather (Clouds, Storms, etc. along with Increased Wave Action)
//    Real Weather (Mirror the real weather conditions from user-selected locations)
//    Modification of Wave Maker to include Tidal Forces with Lunar Cycle
//    Automatic Water Changer & Top Off
//    Inclusion of Other Sensors:
//       1. pH
//       2. Salinity
//       3. Calcium
//       4. Orp
//    Automatic Dosing
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on July 30, 2012, 07:42:38 PM
good call on these Kev

//    Improved User Interfaces (Main Screen Panels & Shortcuts)
//    Replace the ITDB02_Touch.h Library with the latest release (when available)
//    Random Weather (Clouds, Storms, etc. along with Increased Wave Action)
//    Real Weather (Mirror the real weather conditions from user-selected locations)
//    Modification of Wave Maker to include Tidal Forces with Lunar Cycle
//    Automatic Water Changer & Top Off
//    Inclusion of Other Sensors:


Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: markaswift on July 31, 2012, 09:24:59 AM
1st post, couldn't resist registering!

Off the bat, let me start by saying that this is probably the most interesting thread I've ever read since purchasing my RSM 130 a few months ago (Still in the starting phase)...

So, I was already planning on retro fitting LEDS into the RSM hood and was wondering about controller options... This sounds perfect, and a challenge!!

Now, does anyone know the best / fastest / cheapest place to get all the required parts in the UK, or is iteadstudio the only option?

Many thanks in advance,

Mark
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on July 31, 2012, 09:35:51 AM
First of all a very warm welcome to you, the screen and mega shield is best from iteadstudio to many variations on ebay for the lcd pinouts, the arduino 2560 can be found for 20 uk sellers on ebay

Then you just have to first work out how many leds you require for the tank then we can start looking at driver options which must have pwm control


kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: markaswift on July 31, 2012, 10:47:58 AM
Hi,

Thanks for the welcome!

So, I already had this on order:

http://www.ebay.co.uk/itm/280931953825?ssPageName=STRK:MEBOFFX:IT&_trksid=p3984.m1432.l2649

Along with the V1.1 kit from iteadstudio.

I was wondering if it was possible to purchase this in the meanwhile:

http://www.ebay.co.uk/itm/Tiny-Arduino-I2C-RTC-DS1307-AT24C32-Real-Time-Clock-Module-Board-for-AVR-ARM-PIC-/290717888976?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item43b022f1d0#ht_3272wt_1185

and connect it directly to the 2560? I was thinking I just need to connect the SDA / SCL of the RTC board to pin 20 /21 on the 2560? Will this work until my V1.1 kit comes from iteadstudio?

Many thanks in advance.

Mark
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on July 31, 2012, 02:18:25 PM
Hi mark and welcome dude

Sent from my GT-N7000 using Tapatalk 2
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on July 31, 2012, 03:17:12 PM
the v1.1 kit comes with an rtc so no need to buy another, i have not looked on the pinouts of that lcd screen but you will need to check its the same pinouts that the sketch is written for

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: markaswift on July 31, 2012, 03:19:54 PM
Hi Kev,

I'm waiting for the v1.1 and hence wondered if I could rig up the RTC module in the post above until it arrives...

I lost you when you started talking about pin outs :-)

Mark
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on July 31, 2012, 03:51:31 PM
On some of the lcd screens the 40 pins do not all go to the same place on the lcd screens budd as i found out i bought an ebay screen with correct controller the screen when plugged in never even light up but when i used the screen demo sketches it did so was the wrong type

there is a post under diy where a lad has used an rtc shield to run his build budd
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on July 31, 2012, 03:55:15 PM
Read from here budd

http://ukreefs.com/index.php?topic=117.285

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on August 01, 2012, 07:52:59 PM
Hello!
I would like to share with you the new function that includes in my controller.
Now I can have all parameters online in real time.

See here: https://cosm.com/feeds/69337

All interested parties may obtain the sample code here: http://pastebin.com/Fp52NUNk

Hug.
Fernando Garcia

PS. sorry for the English.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on August 01, 2012, 10:27:31 PM
Well done nice build i like the web part
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Rebs on August 08, 2012, 08:43:13 AM
Hi everyone,

I've finall got my Mega 2560 and the Sainsmart 3.2" TFT LCD plus shield. I can compile and load both Jarduino version with UTFT and Graph_16. However, I cannot access any of the menu screens. When I touch the main screen it just refreshes and returns to the main screen. I believe it to be a touchscreen issue as I did have all sorts of problems calibrating the screen through the touch library.

Does anyone have any ideas or know why there is a particular problem with the Sainsmart kit?

Thanks
Andy
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on August 08, 2012, 09:00:50 AM
Hi Andy
When you Calibratee the Screen are you then Putting the values in the Appropriatee place
Sorry not got i in front of me ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Rebs on August 08, 2012, 09:12:38 AM
Hi bigguy,
Thanks for replying. Yes I put the calibration figures into the cpp file, and they looked sensible. Unusually when I did calibrate the screen the first time it was in Landscape and the crosshairs were not in the correct place. It looked to me like they were positioned for a 2.4" screen. I eventually found the Sainsmart website downloads and the amended graph_16 and touch libraries. I could then calibrate the touchscreen using their libraries, interestingly it calibrated in Portrait. But the crosshairs were in the correct place. I've since tried putting their libraries into the libraries folder, and running the Jarduino code. Still makes no difference, the menus will not appear.

Any thoughts?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on August 08, 2012, 02:53:50 PM
Sounds to me like you need to clear your EEPROM.  I included instructions on how to do this in the Jarduino sketch, directly below all the global variables, and above the LED arrays. Don't forget to change 512 to 4096 prior to uploading the "clear EEPROM" sketch, and make sure you wait until the light comes on the Arduino prior to uploading the Jarduino.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on August 08, 2012, 04:35:08 PM
LOL been out On site and just got back in was going to surjest that next :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Rebs on August 08, 2012, 05:13:24 PM
TheDOdblG

Hi Jamie, of course. I remember having to that now to get my 1280 working. Thanks hopefully that will do the trick. I was planning to email you tonight and plead for help, but that should sort it.

Cheers
Andy
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Rebs on August 08, 2012, 05:33:10 PM
Jamie you are a genius. Success, after much stratching of head, stroking of beard etc, etc. All I had to do was ask, oh well that's two days I won't get back. Lesson learn't, don't struggle...ask.

Thanks again for the help.

Cheers

Andy :You_Rock_Emoticon:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on August 08, 2012, 05:57:44 PM
NP, always glad to help!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: SteveT on August 09, 2012, 01:10:22 PM
Hi All

I have just finished building my own LED unit and driver board for my nano and am now looking to build the controller.  To be honest I found the LEDS and driver pretty easy, its the controller that I will struggle with as reading some of the build threads I get totally lost.

I have stumbled across this thread and hats off to you guys there is an incredible amount of work and knowledge gone into it.

I am really looking for a LED controller in the main, has to control at least 4 channels (6 would be better to allow for expansion) and be able to simulate sunrise / sunset / lunar as well as allowing me to tune the various channels to get the colour I like.

Do you think the controller on this thread would be overkill or could I simply remove the parts I dont need.

Thanks for any help / advice
Steve
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on August 09, 2012, 01:13:36 PM
Any Pics Steve with The build Details dude :)
Youdo not have to use all the features that are built In but there for future Use :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: SteveT on August 09, 2012, 01:59:15 PM
Do I need a photo bucket account to upload
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Rebs on August 09, 2012, 02:10:10 PM
Hi Guys

I'm having abit of code trouble. I'm trying to add a pH sensor into the project, and using the Atlas scientific pH stamp. I'm trying to communicate between the arduino and the stamp. Sending commands returns a pH value which I want to read and display. I've included the datasheet if anyone needs to see the commands. Could someone tell me where I'm going wrong with my code. Be kind, I'm very much a novice at this.

Code: [Select]
#include <UTFT.h>
#include <SoftwareSerial.h>
//#include <NewSoftSerial.h>               //this will let the software take advantage of the "newsoftserial" library.                   
 
SoftwareSerial mySerial(14, 15);          //setup and rename soft uart.
                                          //RX|TX 14,15
 UTFT myGLCD(ITDB32S, 38,39,40,41);       //Uncomment this line for the SSD1289
 extern uint8_t SmallFont[];
extern uint8_t BigFont[];
extern uint8_t SevenSegNumFontPlus[];
#define LARGE true
#define SMALL false


char stamp_data[15];          //this is where the data from the stamp is stored. The array is 15 char long because
                                                //if no pH probe is connected, the message "check probe" is transmitted.
                         //Having an array that is too small will cause data corruption and could cause the Arduino to crash.
 
byte holding;                       //used to tell us the number of bytes that have been received by the Arduino and are
              //holding in the buffer holding
byte i;                                  //counter
byte startup=0;                //used to control the start-up sequence
 
void setup(){
  myGLCD.InitLCD(LANDSCAPE);
  myGLCD.setFont(BigFont);
  mySerial.begin(38400);                     //set up the soft serial to run at 38400             
  Serial.begin(38400);                          //set up the hardware serial port to run at 38400
          }
           
           
         
void loop() {                                       //main loop
 
if(startup==0){                                  //if the start-up sequence has not been run
  for(i=1; i <= 2;i++){                        //we go through this for-loop twice, turning on/ off the stamp leds
      delay(1000);                               //wait 1 second
      mySerial.print("l0");                     //turn off the led
      //Serial.write("10");
     // mySerial.print(13,BYTE);                     //ALWAYS end a command with <CR> (which is simply the number 13) or
       Serial.write(13);                            // (print("/r")
      delay(1000);                                  //wait 1 second
      mySerial.print("l1");                        //turn on the led
      //Serial.write("11");
     // mySerial.print(13,BYTE);                  //ALWAYS end a command with <CR> (which is simply the number 13) or
      Serial.write(13);                          //(print("/r")
  }
  startup=1;                                    //stop the star-up loop from happening by setting the start-up var to 1
 
  delay(1000);                                  //after the stamp leds flashed twice, lets wait 1 second before we give the
         // stamp a new command
           
  mySerial.print("c");                          //the command "c" will tell the stamp to take continues readings
 // Serial.write("c");
  //mySerial.print(13,BYTE);                    //ALWAYS end a command with <CR> (which is simply the number 13) or
  Serial.write(13);                            //(print("/r")
 
   //to take a single reading
   //you would simple send the command
   //mySerial.print("r");   
   //mySerial.print(13,BYTE);
 
   //to take a temperature dependent reading
   //send the temperature in celsius, let's say
   //the temperature in celsius is 18.5
 
   //mySerial.print("18.5");   
   //mySerial.print(13,BYTE);
}
 
 
 
 
 if(mySerial.available() > 3) {              //if we see the more than three bytes have been received by the Arduino
    holding=mySerial.available();            //lets read how many bytes have been received
   
    for(i=1; i <= holding;i++){                     //we make a loop that will read each byte we received
        stamp_data[i]= mySerial.read();     //and load that byte into the stamp_data array
    }
   
    for(i=1; i <= holding;i++){                      //we now loop through the array       
       //Serial.print(stamp_data[i]);       //printing each byte we received  through the hardware UART
         myGLCD.clrScr();
         myGLCD.setFont(BigFont);
         myGLCD.print(stamp_data,3 ,CENTER,0);

       }
       Serial.println("");                               //once we finished, we print a null char with the <CR><LF> command.
  //     Serial.println(" DONE"); 
    }
//Serial.println(" NOTHING TO DO");
}
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: SteveT on August 09, 2012, 04:31:58 PM
Any Pics Steve with The build Details dude :)
Youdo not have to use all the features that are built In but there for future Use :)

I have started a build thread so as to not clutter this one :-)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on August 09, 2012, 05:45:43 PM
Sorted ;)
Photo Bucket Is free and its easy :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: brett027 on August 16, 2012, 02:44:06 AM
I am new to the arduino stuff... Was compiling all of my sketch and I have 5 errors. Can anyone please tell me how to fix them?

..................libraries\wire\utility\twi.c: In function 'twi_init'
                  libraries\wire\utility\twi.c:70: error: 'SDA' undeclared (first use inthis function)
                   libraries\wire\utility\twi.c: 70: error: (Each undeclared identifier is reported only once
                   libraries\wire\utility\twi.c: 70: error: (For each function it appears in.)
   "          "        "           "          \twi.c:71: error: 'SCL' undeclared (first use in this function)
 
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on August 16, 2012, 07:01:59 PM
I am new to the arduino stuff... Was compiling all of my sketch and I have 5 errors. Can anyone please tell me how to fix them?

..................libraries\wire\utility\twi.c: In function 'twi_init'
                  libraries\wire\utility\twi.c:70: error: 'SDA' undeclared (first use inthis function)
                   libraries\wire\utility\twi.c: 70: error: (Each undeclared identifier is reported only once
                   libraries\wire\utility\twi.c: 70: error: (For each function it appears in.)
   "          "        "           "          \twi.c:71: error: 'SCL' undeclared (first use in this function)

Welcome aboard Brett!  I just sent you an email with a possible fix.  I hope to get out a "Step-by-Step" user manual over the weekend.  Hopefully it will be of great use to you and many others.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on August 16, 2012, 07:05:19 PM
Sounds Interesting Dude :)

I have forgotten loads but now starting to move forward It all worked last time i powered it up lol
But need to clear part of my desk and start building
I read and read and buy bits
about time to get stuck in
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on August 17, 2012, 02:34:04 PM
I have forgotten loads but now starting to move forward It all worked last time i powered it up lol
But need to clear part of my desk and start building
I read and read and buy bits
about time to get stuck in

Yep it is about time, get the finger out big guy  >:D Mine is working so well the algae is almost taking over  ???

But thats what I get for going to Morocco for a week, it's not all I got either, only thing I didn't get is "weight gain"  :03:

Maybe Jamies step by step will give me the nudge I need to read and understand the sketch.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on August 17, 2012, 10:17:11 PM
Yea need to but Holiday for a few day set up new tank then the build will begin while it cycles :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on August 17, 2012, 10:48:45 PM
Yea need to but Holiday for a few day set up new tank then the build will begin while it cycles :)

Enjoy the holiday and i'll look forward to seeing the build start.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on August 17, 2012, 11:20:42 PM
so will i lol
only away for 3 days but tying it up with picking some fish bits up in Scotland :) he he wife happy a few days away I am happy some cheap bits
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: ladybugs on August 18, 2012, 05:42:03 AM
Dear All.

Finally my order arrived :D.

I try to download Jarduino V 1.1 and complied it but i got this error message.

sketch_aug18a.cpp.o: In function `moonPhase(int, int, int)':
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1077: undefined reference to `New_Moon'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1078: undefined reference to `New_Moon'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1080: undefined reference to `Waxing_Crescent'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1081: undefined reference to `Waxing_Crescent'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1083: undefined reference to `First_Quarter'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1084: undefined reference to `First_Quarter'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1086: undefined reference to `Waxing_Gibbous'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1087: undefined reference to `Waxing_Gibbous'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1089: undefined reference to `Full_Moon'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1090: undefined reference to `Full_Moon'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1092: undefined reference to `Waning_Gibbous'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1093: undefined reference to `Waning_Gibbous'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1095: undefined reference to `Last_Quarter'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1096: undefined reference to `Last_Quarter'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1098: undefined reference to `Waning_Crescent'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1099: undefined reference to `Waning_Crescent'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1101: undefined reference to `New_Moon'
C:\Users\User\AppData\Local\Temp\build2868648936289868913.tmp/sketch_aug18a.cpp:1102: undefined reference to `New_Moon'


Can somebody help me with this problem?

Other question We need to make forlder write Anything on libraries for writeAnything.h because when i complied the code with out that folder i got error message after i make it the error massage gone.

Thanks


Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on August 18, 2012, 10:06:42 PM
...I hope to get out a "Step-by-Step" user manual over the weekend.  Hopefully it will be of great use to you and many others.

So maybe NOT out by this weekend.  What's the holdup?

ANSWER: I ordered an LCD shield adapter from Hong Kong (http://www.ebay.com/itm/TFT-3-2-Mega-touch-LCD-expansion-board-shield-for-Arduino-3-3V-/110896871521?pt=LH_DefaultDomain_0&hash=item19d1f7f861) over THREE WEEKS AGO!  The reason why I ordered it was because several others had, and they can't seem to get it to work.  So once I get it, I will do what I can to make it compatible with the Jarduino, include the instructions on how you can too in my soon to be released USER MANUAL, and post it up on the Jarduino's dowload page (http://code.google.com/p/jarduino-aquarium-controller/).  Here's a picture:
(https://graph.facebook.com/676908365656431/picture)
As you can see, it has NO RTC...  I think many of you ordered it by mistake, thinking it would work as-is like the ITDB02 MEGA Shield v1.1 (http://imall.iteadstudio.com/im120717001.html).  I'm thinking I can get it to work just like I did with the ITDB02 MEGA shield v2.0 (which also lacks an RTC circuit) (http://ukreefs.com/index.php?topic=117.msg5465#msg5465):
(https://graph.facebook.com/676908305656437/picture)
So hold on to them if you were one of the ones who ordered that shield (or the ITDB02 v2.0).  Help is on the way...
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on August 23, 2012, 03:35:27 PM
Hello!
Recently added to my controller 4 stamps Atlas Scientific connected to a multiplexer.
I would appreciate suggestions for alternatives to the delays required for communication between the arduino and stamps.
This is bothering me because I have the arduino "stopped" for 4 seconds every minute.

Sorry for the english again.

The following code:

Code: [Select]
void check_parametros()
{
int i;
unsigned long millis_agora = millis();

if (millis_agora - millis_antes > 60000)
{
millis_antes = millis_agora;

do{
Open_channel(ph1);
Serial3.print(tempC);
Serial3.print('\r');
delay (1100);

if(Serial3.available() > 3)
{
holding = Serial3.available();
for(i=1; i <= holding; i++)
{
sensorstring[i]= Serial3.read();
}
if(holding ==5)
{
PHT = ((sensorstring[1]-48)*100 + (sensorstring[3]-48)*10 + (sensorstring[4]-48));
PHA = PHT/100;
}
else
{
PHT = ((sensorstring[1]-48)*1000 + (sensorstring[2]-48)*100 + (sensorstring[4]-48)*10 + (sensorstring[5]-48));
PHA = PHT/100;
}
PHT=0;
Serial3.flush();
break;
}
} while (done==1);
done=0;

do{
Open_channel(ph2);
Serial3.print(tempC);
Serial3.print('\r');
delay (1100);

if(Serial3.available() > 3)
{
holding = Serial3.available();
for(i=1; i <= holding; i++)
{
sensorstring[i]= Serial3.read();
}
if(holding ==5)
{
PHT = ((sensorstring[1]-48)*100 + (sensorstring[3]-48)*10 + (sensorstring[4]-48));
PHR = PHT/100;
}
else
{
PHT = ((sensorstring[1]-48)*1000 + (sensorstring[2]-48)*100 + (sensorstring[4]-48)*10 + (sensorstring[5]-48));
PHR = PHT/100;
}
PHT=0;
Serial3.flush();
break;
}

} while (done==1);
done=0;

do{
Open_channel(orp);
Serial3.print("r"),
Serial3.print('\r');
delay (1100);

if(Serial3.available() > 3)
{
holding = Serial3.available();
for(i=1; i <= holding; i++)
{
sensorstring[i]= Serial3.read();
}
ORPT = ((sensorstring[1]-48)*100 + (sensorstring[2]-48)*10 + (sensorstring[3]-48));
ORP = ORPT;
ORPT=0;
Serial3.flush();
break;
}
} while (done==1);
done=0;


}
}

Thank you.
Fernando Garcia
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on August 24, 2012, 01:18:34 PM
Hi There,

Iv'e been lurking as a guest for a while during the planning stages - but now things have moved to a "buying" stage, I have joined up, as im sure I'm going to need to pick your brains in the coming weeks  :57:

My first question, is can someone confirm that the parts list on the front page is correct please?
I would like to purchase the correct things the first time round, as id rather not play with more code than i need to! (I doubt my brain wuold cope)

Also, is the screw shield needed for this build, or does it just make testing other things easier? as with everyone these days, im on a budget - so spending money on things i dont really need isnt at the top of my list of things to do  :D

The led array this will be controlling will consist of 8 xt-e cool white, 4 xt-e warm white, 12 xte-Roayl Blue, 6 xp-e blue and 2 luxeon rebel cyan leds, coupled with the new meanwell LDD drivers (pwm). These things dim down to 0%, so none of that stopping at 10% malarky with the older meanwells  :D

Thanks in advance!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on August 25, 2012, 01:32:49 AM
Well, I got impatient  :c023:

I just ordered:
http://imall.iteadstudio.com/prototyping/kits/im120717001.html (http://imall.iteadstudio.com/prototyping/kits/im120717001.html)
and
http://www.ebay.co.uk/itm/170758835235?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649 (http://www.ebay.co.uk/itm/170758835235?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649)
and
http://www.ebay.co.uk/itm/110934453980?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649 (http://www.ebay.co.uk/itm/110934453980?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649)
and
http://www.ebay.co.uk/itm/230755622953?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649 (http://www.ebay.co.uk/itm/230755622953?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649)

I hope they are the right ones!

I have been thinking about the drivers, and the rest of the arduino kit's placement. Now what I'd like to do is mount everything out of the way - except for the touchscreen shield, which i would like mounted in the light fixture. this is mainly due to most of the things going on elswhere (temp sensors, replays, probes blah blah) and it not being practical to really keep it anywhere else that i can see it.

Is this ok to use to move the screen away from the rest of the unit?
http://www.ebay.co.uk/itm/Ribbon-Cable-50-way-Grey-50x0-09-0-93-AWG28-105C-1metre-/251088140193?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item3a7604f7a1 (http://www.ebay.co.uk/itm/Ribbon-Cable-50-way-Grey-50x0-09-0-93-AWG28-105C-1metre-/251088140193?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item3a7604f7a1)


I've also just ordered all of my leds, drivers, and associated random bits this evening. the other half might actually harm me when she sees the bank statement this month  ???

Hopefully i'll receive everything pretty quick, and i'll be able to start playing!, i'll be sure to start a thread for you all to see :)

Thanks in advance,

Promazine.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on August 25, 2012, 07:20:10 AM
That looks ok dude not sure on the screw sheild might be for the uno mot the mega i could be wrong
Were you getting leds from :)
Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on August 25, 2012, 11:01:42 AM
Hi there,

Hopefully its the right one, if not, it was only cheap so its no big loss. Im sure i'll find a use for it at some point, if only as a keyring  :85:

Im getting the led's from a guy on another reefing forum I'm a member of, He buys them in bulk and sells them to people in the UK. IM sure he makes a bit on them - but i get them sooner, they arent going to get stuck in customs, im not going to get stung with import tax - and if any are dud, getting replacements is a breeze. PLus - he is an LED genius, so if I have any questions about the wiring/configuration etc he can easily help.

Chris.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: compfranon on August 25, 2012, 11:16:59 AM
That looks ok dude not sure on the screw sheild might be for the uno mot the mega i could be wrong
Were you getting leds from :)
Simon

Welcome to the forum.

+1 on the screwshield, IIRC theres a thread in DIY that gives a link to the right one.

I had issues using a ribbon cable and soldering connections to remotely connect the screen, I would recommend getting one of the IDE extension leads instead if you can find one long enough for your needs
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on August 25, 2012, 11:25:27 AM
I made same mistake on the screw sheild i now have bought the right one cost a lot more but i think worth it non on ebay there is a site on of the the threads

Any chance of a pm on the leds plesse dude could be intrested thanks
Simon
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on August 25, 2012, 03:08:08 PM
That looks ok dude not sure on the screw sheild might be for the uno mot the mega i could be wrong
Were you getting leds from :)
Simon

Welcome to the forum.

+1 on the screwshield, IIRC theres a thread in DIY that gives a link to the right one.

I had issues using a ribbon cable and soldering connections to remotely connect the screen, I would recommend getting one of the IDE extension leads instead if you can find one long enough for your needs


Thanks :)

Are IDE cables just a straight plug and play for the displays? I have seen a 70cm one, but I thought the connectors would be the wrong type/size
Do the ribbons not solder well then?, I can imagine they won't stand too much heat being so thin.

In regards to the screw shield, I've been looking at pictures, and do they not just break out the pins on the board to the screw connectors? Or am I missing something? If its just that the screw shield I bought doesn't break out all the pins - as I only need the PWM outputs and not much else, could I get away with it?

Bigguy - you have a pm :)

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on August 27, 2012, 10:33:41 PM
Bumping this for some answers to the above, and also to ask another question...

can someone explain the lunar cycle part of the controller, as in - is it just one driver connected to a couple of leds that shine only at night at a pre-determined brightness according to the current phase of the moon? Or does that channel connect to the main drivers for daylight leds, and run them all very dimly?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on August 28, 2012, 08:35:32 PM
Bumping this for some answers to the above, and also to ask another question...

can someone explain the lunar cycle part of the controller, as in - is it just one driver connected to a couple of leds that shine only at night at a pre-determined brightness according to the current phase of the moon? Or does that channel connect to the main drivers for daylight leds, and run them all very dimly?

The answers is closer to the first thing you said, except they run full time, not just at night. It made more sense to set it up this way because if they only came on at night, you would notice an sudden increase in brightness (especially during a full moon) once the main LEDs go fully dim and again in the morning when the main LEDs start to get bright
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on August 28, 2012, 09:57:13 PM
Bumping this for some answers to the above, and also to ask another question...

can someone explain the lunar cycle part of the controller, as in - is it just one driver connected to a couple of leds that shine only at night at a pre-determined brightness according to the current phase of the moon? Or does that channel connect to the main drivers for daylight leds, and run them all very dimly?

The answers is closer to the first thing you said, except they run full time, not just at night. It made more sense to set it up this way because if they only came on at night, you would notice an sudden increase in brightness (especially during a full moon) once the main LEDs go fully dim and again in the morning when the main LEDs start to get bright

Thanks for the reply, but damn - I need to buy another driver   :-[
My mouser order has already been shipped too lol suppose its my own fault for not checking first!

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: GothBoy on September 06, 2012, 12:32:42 AM
Is there any potential to integrate a Ecotech Vortech MP wireless control system into this? I'd be very keen to support such a venture.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on September 06, 2012, 12:41:23 AM
Is there any potential to integrate a Ecotech Vortech MP wireless control system into this? I'd be very keen to support such a venture.

I could be wrong, but I think the circuitry needed to replicate it would not be cost effective, which may seem surprising given the cost of the Vortechs. It is certainly possible though...
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: GothBoy on September 06, 2012, 12:46:36 AM
I know you can buy the RF units to interface with the ReefAngel and they seem to be just the standard Ecotech Wireless Upgrade. They're expensive but certainly cheap enough if you've already got the rest of the Arduino, if you see what I mean. I may not be making sense, I'm still recovering from anaesthetic  :D
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on September 06, 2012, 11:22:22 AM
Heres the reef angel info

http://www.reefangel.com/files/Reef%20Angel%20RF%20Expansion%20Manual%20v1.3.pdf

http://reefbuilders.com/tag/reef-angel/

http://www.reefangel.com/
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: GothBoy on September 06, 2012, 06:32:28 PM
Interestingly, on the new RA website they have removed the Open Source code. Luckily I still have copies, after all, it's open source!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on September 06, 2012, 07:43:34 PM
Interestingly, on the new RA website they have removed the Open Source code. Luckily I still have copies, after all, it's open source!

There's a lot of confusion surrounding the label of "open-source" when being applied to Arduino. The hardware is open source. The Arduino IDE software (source code) is open source. But when someone writes a sketch, they are by no means obligated to make it open source. RA is obliged to share their controller designs since they are commercial, but they do not need to share their sketches. That is totally up to them.

http://arduino.cc/en/Main/FAQ (http://arduino.cc/en/Main/FAQ)

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: GothBoy on September 06, 2012, 07:58:06 PM
Interestingly, on the new RA website they have removed the Open Source code. Luckily I still have copies, after all, it's open source!

There's a lot of confusion surrounding the label of "open-source" when being applied to Arduino. The hardware is open source. The Arduino IDE software (source code) is open source. But when someone writes a sketch, they are by no means obligated to make it open source. RA is obliged to share their controller designs since they are commercial, but they do not need to share their sketches. That is totally up to them.

http://arduino.cc/en/Main/FAQ (http://arduino.cc/en/Main/FAQ)

I agree, my bad. I thought that because they were under Apache 2.0 they were open source. They're still all included in the modified Arduino software from RA as 'examples', so they are still accessible for reference.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on September 07, 2012, 08:12:26 AM
You sure i got it yesterday, download then eagle files

http://www.reefangel.com/download.aspx

kev
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: GothBoy on September 08, 2012, 01:28:39 AM
You sure i got it yesterday, download then eagle files

http://www.reefangel.com/download.aspx

kev

No, these were the actual sketches and libraries.  This thread in the forum may be interesting, it suggests that you can use a Zigbee/Xbee add-on for Arduino to control the Vortechs! http://forum.reefangel.com/viewtopic.php?f=4&t=23

Looking at an outlay of less than 30 to make an ultimate beast. Man, I wish I knew more about programming Arduino!  :41:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on September 08, 2012, 01:59:17 AM
Do you need a wireless vortech module in order to interface it with an Arduino, or does the regular module have that capability built in?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: GothBoy on September 08, 2012, 02:11:05 AM
Well initially they were using a standard Xbee module, once they cracked it they suddenly came out with an Ecotech RF module. I'm not suggesting outside pressure but it's possible. Having looked at the FCC documents it is a 2.4ghz Zigbee compatible protocol. I could always take out one of the modules in one of my Vortechs to see. What I really want is to be able to program a regular feed time and night mode. The Ecotech controllers are pretty crap.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on September 08, 2012, 02:25:17 AM
 I keep it in mind for future updates, but please don't expect it any time soon. I just have so much going on right now...
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: GothBoy on September 08, 2012, 02:29:47 AM
No worries, I know what it's like to have a lot going on!  The work you've done already is amazing!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on September 08, 2012, 09:44:55 AM
is the vortech not over priced for what it can do ? i am sure that we should be able to make our own at a fraction of the cost and that can be controlled with the arduino . I know we all have lots on but this could be a possible future project :)
Just a Thought
And from what i have read the vortech  are prone to noise ?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on September 08, 2012, 10:49:33 PM
Having just spend 600 on 2 mp40wes there so overrated ! so for 600 what do they do errr move water around in the tank at a rate of 12000lph per powerhead, the software or programs can be simple to replicate and the pwerhead function on the v2 will make a wave in your tank if you use 2 good powerheads dc ones would be better
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on September 08, 2012, 11:06:18 PM
LOL and all that money and issues with bearings lol

I have a Jad wm-4 paid 30 and its silent and yep pushes the water around :)
Just Feel we could do better for the money
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: GothBoy on September 09, 2012, 09:12:30 AM
Thing is, for those of us who already have them it's nice to have better control.  One of the big reasons I got mine was that now my display tank has no electrics in it whatsoever. I know I can plunge my hands in without getting electrocuted, like I have from dodgy Chinese jobbies in the past.  :'(
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on September 09, 2012, 10:45:58 AM
Errr so you have no heaters in your sump then ? skimmers ? return pump ?

If you get the ce app stuff then its ok, better mains wires with earth wore in as well, even the branded items the cables can fail the salt water makes them brittle and crack

I used to get a shock from an external reactor pump that was a eheim 1260 and not once have i had a shock from a cheap powerhead, the reactor pump was not even in the sump it was sat on top of the nitrate reactor no where submerged in water at all yet as soon as i shoved my hands in the sump i got an batt, tested the voltage and the pump was feeding 107v in to the water display tank and sump
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on September 15, 2012, 11:45:08 PM
Hi Guys

I'm having abit of code trouble. I'm trying to add a pH sensor into the project, and using the Atlas scientific pH stamp. I'm trying to communicate between the arduino and the stamp. Sending commands returns a pH value which I want to read and display. I've included the datasheet if anyone needs to see the commands. Could someone tell me where I'm going wrong with my code. Be kind, I'm very much a novice at this.

Hello Rebs!

Maybe it's a little late but just now saw your post.
See if this code works for you.

Code: [Select]
char stamp_data[15];                            //this is where the data from the stamp is stored. The array is 15 char long because
                                                //if no pH probe is connected, the message "check probe" is transmitted.
                                             //Having an array that is to small will cause data corruption and could cause the Arduino to crash. 
char state='C';
byte holding;                                   //used to tell us the number of bytes that have been received by the Arduino and are holding in the buffer holding
byte i;                                         //counter
byte startup=0;                                 //used to control the start-up sequence 

void setup(){
    Serial3.begin(38400);                        //set up the soft serial to run at 38400               
    Serial.begin(38400);                          //set up the hardware serialport to run at 38400
    Serial3.print("l1");                     //turn on the led
    Serial3.print(13,BYTE);                  //ALWAYS end a command with <CR> (which is simply the number 13)||(print("/r")
    Serial3.print(state);
    Serial3.print(13,BYTE);
    delay(2000);
    Serial.println("start");
    delay(2000);
}
           
           
           
void loop() {                                   //main loop
 
  if(Serial.available()>0){
   state=Serial.read();
   if(state=='C' || state=='c' || state=='E' || state=='e' || state=='l0' || state=='L0' || state=='r' || state=='R' || state=='l1' || state=='L1'){
     Serial3.print(state);
     Serial3.print(13,BYTE);
   }
 }
 
 
 if(Serial3.available() > 0 && (state=='C' || state=='c' || state=='E' || state=='e' || state=='l0' || state=='L0' || state=='r' || state=='R' || state=='l1' || state=='L1')) {              //if we see the more then three bytes have been received by the Arduino
    Serial.println("entrou");
    holding=Serial3.available();            //lets read how many bytes have been received
   
    for(i=1; i <= 7;i++){             //we make a loop that will read each byte we received
        stamp_data[i]= Serial3.read();     //and load that byte into the stamp_data array
    }
    if(stamp_data[1]=='c'){
      Serial.println("Checking Probe");
    }else{
    for(i=1; i <= 6;i++){            //we now loop through the array         
        Serial.print(stamp_data[i]);       //printing each byte we recived  through the hardware UART
       }
       Serial.println(stamp_data[7]);                //once we finished, we print a nul char with the <CR><LF> command.
     
  }
 }
 
  delay(150);
}

If you are using the IDE above 23 use this:

Serial3.print('\r');

instead of this:

Serial3.print(13,BYTE);

Hug.
Fernando Garcia
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on September 19, 2012, 11:13:30 PM
 :93: so I built my Jarduino, and the screen came alive first time! I have an issue which Im almost certain is down to my ability to solder - the touch screen does not seem to respond at all?
All the parts bought are the compatible ones, and the TFT shield kit was soldered together by me. All the TFT shield components are in the correct places, so before i go playing with things i know nothing about (code) can someone tell me if it's a possible that poor soldering would stop the touch panel from working, or would the whole screen be dead?

 :c017:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on September 20, 2012, 12:34:11 AM
have you uploaded the screen calibration sketch first ?

i did have an issue with one of the 1.1 kits and a none functioning touch, i tried another screen same results but then tried another mega shield as it was fine, i am guessing a resistor is in the wrong place or marked up wrong budd


kev

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on September 20, 2012, 12:56:29 PM
Not clearing the EEPROM may also give the appearance of a non-responsive screen. The Jarduino user manual outlines how to clear it if you're unsure how.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on September 20, 2012, 06:03:27 PM
 :-[

Didn't run a calibration sketch - or clear the EEPROM first.

Will try both now  ::)

Thanks for the quick replies!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on September 26, 2012, 10:17:32 PM
After a very hectic couple of days I have had a chance to revisit this - I did tr and run a calibration, but no matter what I do I cannot seem to get the sketch to compile. I know it's something daft that I am doing/not doing - but I'm losing my patience now!
I even resorted to soldering up my spare Mega shield kit to rule out my other one - same results.

I can clear the eeprom no problem, I can also compile and upload the Jarduino sketch - I just cant get the touchscreen to do anything at all.

Can someone send me a working calibration sketch to try? I'm using all the "right" bits - I posted links to the items I was buying a few pages back if anyone needs to check.


Thanks in advance!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on September 26, 2012, 11:20:59 PM
So to be sure, you can see it displayed, but the touch doesn't work? Did you try any of the example sketches located in the ITDB02 Touch folder? That's where you'll find the "calibration" sketch.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on September 26, 2012, 11:42:54 PM
All three fail - just tried the quick draw one, and it says "no such file or directory" about the graph16 library. if i copy and paste the path it states doesn't exist - it opens in my explorer window??
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on September 26, 2012, 11:44:18 PM
Sorry - none of the example sketches display at all.
The jarduino does display, but the touch does not work.
I am starting to think i have a dud screen.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on September 27, 2012, 01:29:58 AM
In the example sketches, did you select the correct LCD module? A white screen is usually an indicator.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on September 27, 2012, 01:45:05 PM
The long week had obviously taken its toll - even on my second attempt at explaining things i failed dismally!

I cannot get any of the 3 example sketches to compile. All of them error about one thing or another. the main thing being about the graph16 library not exisiting. But if i paste the "failed" path from the error log at the bottom of the arduino software into a browser window, it browses to the file/s perfectly.

the only sketches i can get to compile and to upload correctly are the eeprom clear and the jarduino sketch itself.

I am commenting out a couple of lines in the example sketches, and un-commenting another couple to make sure i am selecting the correct screen, but this does nothing and it still fails to compile.

I know its something im doing (or not doing) but i feel like im goign round in circles now!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on October 05, 2012, 07:55:01 PM
The long week had obviously taken its toll - even on my second attempt at explaining things i failed dismally!

I cannot get any of the 3 example sketches to compile. All of them error about one thing or another. the main thing being about the graph16 library not exisiting. But if i paste the "failed" path from the error log at the bottom of the arduino software into a browser window, it browses to the file/s perfectly.

the only sketches i can get to compile and to upload correctly are the eeprom clear and the jarduino sketch itself.

I am commenting out a couple of lines in the example sketches, and un-commenting another couple to make sure i am selecting the correct screen, but this does nothing and it still fails to compile.

I know its something im doing (or not doing) but i feel like im goign round in circles now!

In the three "ITDB02_Touch" example sketches, prior to upload make sure you change "#include <ITDB02_Graph.h>" to "#include <ITDB02_Graph16.h>", I circled this in red below.  Just add a "16" to the end of "...Graph" before the ".h".  Also, make sure you comment out the two lines for the ITDB02 Shield and uncomment the lines for the ITDB02 MEGA Shield.  By default, it is set for the ITDB02 shield (not the MEGA), so you will need to change that (so make it look like the picture below).  And one last thing, make sure you select the correct screen.  Where it's circled in blue, if you have an SSD1289 LCD Module, again make it look like the picutre below.  If you have an HX8347-A module, leave it as is "ITDB02 myGLCD(38,39,40,41)". Notice for the HX8347-A there's no "ITDB32S" at the end.  Follow my instructions and it should upload.  Let us know how you make out.
(https://graph.facebook.com/676919272322007/picture)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on October 16, 2012, 06:33:48 PM
 ^-^

got it working :)

but it was nothing to do with settings - it was a dud screen!

bought a new one and it worked first time  :bravo_2:

 :c017: for the help - Full steam ahead now! >:D
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Fernando Garcia on October 22, 2012, 07:52:18 PM
To those interested.

http://arduino.cc/en/Main/ArduinoBoardDue
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Majeric on November 19, 2012, 03:20:32 PM
hello folks!

I'm a little lost - I've bought the right kit and uploaded the sketches. everything is working.

now, this is where I am confused.

How i connect the PWM wires from my drivers to the arduino itself? it says to connect it to pin X but the shield pin is in there.

a little lost. can someone send me some examples/pics of what i need to do

thanks!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on November 19, 2012, 03:44:38 PM
Can either solder them direct on to the mega shield as i have done or look and find a screw shield which may be a problem
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Majeric on November 19, 2012, 04:02:12 PM
do you have a pic of how you've soldered them to the mega shield?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on November 19, 2012, 04:36:34 PM
Here you go

http://ukreefs.com/index.php?topic=261.150
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Majeric on November 19, 2012, 05:00:02 PM
perfect!!!

thanks!
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Strawberry on November 23, 2012, 11:33:42 AM
Hi,

I have a short question.
I've been building a jarduino with the components as described in Jamies PDF (the 1.1 tft shield with rtc), everything is working like a charm except for one thing.
When I browse through the menu's the screen gets corrupted.
I have searched for the reason for this, and it looks like my touch output is not working 100% I have tested with the ITDB02_Touch_QuickDraw sample and found out that where pressing the panel gives a good readout but as soon as I release it one last value reaches the sketch that is always (a lot) lower than it's supposed to be.
I have attached a picture of this test, I have only tapped with my finger in the left lower corner but as soon as I release dots appear almost randomly.
Is there anybody else who experiences this? If yes then I guess it's a touch library issue if no I think my touchpanel is broken :(

kind regards
Geert
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Janpolanton on November 23, 2012, 01:17:32 PM
Hello Tangtastic

I'm Jean-Paul and i'm french, so excuse my poor english.

I have a little question about TFT screen.

What kind of software are you using to convert png or jpg/bmp files into an Hex file (free file) ???.

I'v only find an old soft who was written for B&W 240x128 LCD.

Could you answer (if you know one).

 :c017:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Janpolanton on November 23, 2012, 04:28:40 PM
Good, :whoo:

I have find one who works really fine

Thank's all
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on November 23, 2012, 07:54:50 PM
Hi,

I have a short question.
I've been building a jarduino with the components as described in Jamies PDF (the 1.1 tft shield with rtc), everything is working like a charm except for one thing.
When I browse through the menu's the screen gets corrupted.
I have searched for the reason for this, and it looks like my touch output is not working 100% I have tested with the ITDB02_Touch_QuickDraw sample and found out that where pressing the panel gives a good readout but as soon as I release it one last value reaches the sketch that is always (a lot) lower than it's supposed to be.
I have attached a picture of this test, I have only tapped with my finger in the left lower corner but as soon as I release dots appear almost randomly.
Is there anybody else who experiences this? If yes then I guess it's a touch library issue if no I think my touchpanel is broken :(

kind regards
Geert

I believe this happens due to bad connections. Usually the ones between the ITDB02 shield and the LCD that's the culprit, and is usually a good place to start troubleshooting.  Maybe the UTFT library is a little more forgiving. Did you try using that one?

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Strawberry on November 23, 2012, 08:22:44 PM
Hi,

I have a short question.
I've been building a jarduino with the components as described in Jamies PDF (the 1.1 tft shield with rtc), everything is working like a charm except for one thing.
When I browse through the menu's the screen gets corrupted.
I have searched for the reason for this, and it looks like my touch output is not working 100% I have tested with the ITDB02_Touch_QuickDraw sample and found out that where pressing the panel gives a good readout but as soon as I release it one last value reaches the sketch that is always (a lot) lower than it's supposed to be.
I have attached a picture of this test, I have only tapped with my finger in the left lower corner but as soon as I release dots appear almost randomly.
Is there anybody else who experiences this? If yes then I guess it's a touch library issue if no I think my touchpanel is broken :(

kind regards
Geert

I believe this happens due to bad connections. Usually the ones between the ITDB02 shield and the LCD that's the culprit, and is usually a good place to start troubleshooting.  Maybe the UTFT library is a little more forgiving. Did you try using that one?

Hi Jamie, thanks for the answer

Tried the UTFT lib in jarduino, but not yet in the quickdraw sketch. Tested that one as well, the issue is the same as with the ITDB02 lib.
I'm going to troubleshoot the connections, I see some other issues as well that support the bad connections idea.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Strawberry on November 25, 2012, 11:10:30 AM
Hi,

I have a short question.
I've been building a jarduino with the components as described in Jamies PDF (the 1.1 tft shield with rtc), everything is working like a charm except for one thing.
When I browse through the menu's the screen gets corrupted.
I have searched for the reason for this, and it looks like my touch output is not working 100% I have tested with the ITDB02_Touch_QuickDraw sample and found out that where pressing the panel gives a good readout but as soon as I release it one last value reaches the sketch that is always (a lot) lower than it's supposed to be.
I have attached a picture of this test, I have only tapped with my finger in the left lower corner but as soon as I release dots appear almost randomly.
Is there anybody else who experiences this? If yes then I guess it's a touch library issue if no I think my touchpanel is broken :(

kind regards
Geert

I believe this happens due to bad connections. Usually the ones between the ITDB02 shield and the LCD that's the culprit, and is usually a good place to start troubleshooting.  Maybe the UTFT library is a little more forgiving. Did you try using that one?

Hi Jamie, thanks for the answer

Tried the UTFT lib in jarduino, but not yet in the quickdraw sketch. Tested that one as well, the issue is the same as with the ITDB02 lib.
I'm going to troubleshoot the connections, I see some other issues as well that support the bad connections idea.

Well... the connections that are accessible have been checked, couldn't find anything wrong there. Since this won't be my last arduino project I have ordered a new tft screen to find out if it's faulty.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on November 26, 2012, 01:35:57 AM
Well... the connections that are accessible have been checked, couldn't find anything wrong there. Since this won't be my last arduino project I have ordered a new tft screen to find out if it's faulty.

I think I may recall Kev noting that there were a bad batch of screens ciruclating about...  Hope you weren't one of their victims.  If it's not the screen, then most likely it's the shield.  Either way, hope you get it figured out.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Strawberry on December 17, 2012, 11:40:21 AM
Well... the connections that are accessible have been checked, couldn't find anything wrong there. Since this won't be my last arduino project I have ordered a new tft screen to find out if it's faulty.

I think I may recall Kev noting that there were a bad batch of screens ciruclating about...  Hope you weren't one of their victims.  If it's not the screen, then most likely it's the shield.  Either way, hope you get it figured out.
A short update on this one.
Received a new screen this week, however I think that was one of a very bad batch. The display worked for only one half and the touch panel didn't function at all.
I searched if perhaps it was a library issue. The ebay seller was very cooperative and sent me some testing code. The results where the same.
Found out that there is a new touch library UTouch instead of ITBD02_touch. That one solved the issue with the 1st screen you can see in the picture. However this screen also has an issue that it gets messed up when pressing it (loose contact in there somewhere).

After contact with the reseller he is now sending me another screen, that'll fix the issues I hope. In the meantime, since he didn't need the bad screen in return I tried to fix it. Behind the screen the connections are soldered on the circuitboard. I removed that and redid the soldering, after that the screen worked. The touch part is connected seperately, on one side there was solder (the side that does nothing to the signals) on the side that did matter however 3 of the ,four contacts where very bad. Redid those as well, and now the screen is reasonably well.

I'll wait until the third screen arrives, the one that is the best will go to the Jarduino, the others, well there are a lot of nice Arduino projects to play with, an oscilloscope would be a nice one  :93:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on December 17, 2012, 04:56:10 PM
Very nice that you were able to get another screen for free, and fix the broken one!  It's always nice to have a few extra laying around for testing new code... Now that you're more familiar with the code, you can see how you can adapt it to control a number of different things.  Let us know what you come up with.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on January 12, 2013, 10:08:42 PM
Hi Jamie - how are the Jarduino updates coming? Any hints on when we can expect an update? I've yet to actually complete my build, but I cannot wait for the possible weather updates and inclusion of probes etc.  :You_Rock_Emoticon:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on January 12, 2013, 10:16:15 PM
Just trying to find the time...
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: promazine on January 12, 2013, 10:46:04 PM
Just trying to find the time...

I know the feeling all too well - hence why I've yet to finish my light build  :41:

One thing is for certain - on the basis of what you have already achieved, the updates are going to be well worth the wait  :93:
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on January 13, 2013, 12:46:02 AM
The updates will be coming in batches.  Next release will be user-selectable display languages, 5 timers (thanks to isacco), and a number of improvements that I'll detail later on.  This next release will be the Final Release of Jarduino v1.2.  Beta versions of 1.3 will see the inclusion of sensors (pH, ORP, salinity (conductivity), and DO), pH controller for a Calcium Reactor, full Graphical version, and hopefully internet connectivity amoungst other things.  The order of introduction of these things are based off of user demand.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 13, 2013, 09:03:58 PM
Good going Jamie a huge thank you for your continued effort
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on January 13, 2013, 09:15:53 PM
Great News Dude
I know your Busy But will there be Details of what parts we need for the orb and stuff

Been thinking about this Maybe we can have a section with recommended LEDs and combinations and drives and such
Being a total Noob is like a mind field and this hobby is expensive enough without buying the wrong amount and wrong rating :(
Like i have in the past

Just a thinking out loud thought :)
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on January 13, 2013, 10:45:50 PM
I do what I can when I can do it :-)  It's the when that concerns me...

Anyway, I plan on updating the User Manual with each subsequent release, so yeah what parts I recommend will be included.  As far as the sensors go, I will be using Atlas-Scientific "stamps" and their serial port connector.  You should be able to use any standard probe(s).

Maybe someone will take some time and start a LED seletion & driver thread.  Seems there's always something new and more powerful coming out...  I'd start one myself, but that would take away from what little time I have to do updating...
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: bigguy on January 13, 2013, 10:59:07 PM
Yea more of somebody else maybe a new Thread for Discussion on the leds and drivers dude
Your Work Is awesome and would not want you to be drawn away from it buddy I understand the Time Thing never enough time.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: SeaMonkey on January 18, 2013, 07:14:10 PM
If anyone is using the Adruino Mega with 3.2" TFT screen TFT01-3.2 and Lcd TFT01 Mega Shield v1.4 from ElecFreak and you are having trouble getting it to work, let me know and I MAY be able to assist. I had trouble with the TOUCH aspect of the setup but was finally able to get everything to work.
Title: Is this a suitable mosfet
Post by: Nigel Marlow on January 19, 2013, 08:25:56 PM
As above really, just started reading about all this:

http://shop.ciseco.co.uk/arduino-high-power-mosfet-shield-motor-lighting-pwm-dc-control/
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on January 19, 2013, 11:18:16 PM
Was looking to use one of them pwm motor drivers but still would need a current limiting device as that would not limit the current when on 100% and the leds would blow matey
Title: Mosfet
Post by: Nigel Marlow on January 20, 2013, 04:02:01 AM
Thanks for the information, as I said just trying to get my 60yr old head around this here electrickery.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: Freestila on February 14, 2013, 04:24:30 PM
Hi :)
i'm from germany and already have a simple aquarium-computer based on teh arduino mega. Since the 2x16 char display i use is not very good, i searched for ways to user other displays and found your project :) Very nice what i read so far :)

I wanted to try it out myself. The only problem is, that the links to teh store for the display and the shield are invalid at the moment, since they seemed to have changed their url-system.

i foudn these two items, are these the right ones?.
- tft: http://imall.iteadstudio.com/im120419005.html
- shield : http://imall.iteadstudio.com/im120717001.html

best thanks,
Helge
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on February 14, 2013, 04:44:44 PM
Welcome aboard bud.  The items from the links your provided are correct for the Jarduino.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: himo on February 16, 2013, 10:18:38 PM
Hello @ all,

I'm also from germany. I have a 23 gallons tank with an Arduino Duemilanove and the krusduino sketch
http://code.google.com/p/dangerduino/wiki/krusduino

I received an Arduino Mega with a 3.2 tft shield as a gift and thought i could use it instead of the krusduino for my tank.
I don't need a separate shield to use the TFT/Touch with the Mega, it's an "all-in-one" TFT-shield.
http://www.aliexpress.com/snapshot/211323509.html

I got the system up and running with UTFT and UTouch from  http://www.henningkarlsen.com,

The model parameters are:

UTFT myGLCD(INFINIT32,A1,A2,A0,A3,A5);   
UTouch      myTouch(13,10,11,12,A4);

INFINIT32 means the TFT is in "latched 16bit" mode.

I could compile and upload Stilo3 without any errors, but the Screen is only white.
Whatever I try, I only get a blank white screen.  :41:
The testsketches from http://www.henningkarlsen.com are all working without any problems.

Could someone give me a hint where to search the problem. My Arduino skills are very very limited...  :03:

Regards from germany

himo




Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 16, 2013, 11:11:05 PM
Welcome, on the sketch that works what is the first line for the screen ?


UTFT myGLCD(INFINIT32,A1,A2,A0,A3,A5);   
UTouch      myTouch(13,10,11,12,A4); ??
Usually the sketch should read

ITDB02 myGLCD(38,39,40,41,ITDB32S);  //Uncomment this line for the SSD1289
ITDB02_Touch myTouch (6,5,4,3,2);

Or
 
ITDB02 myGLCD(38,39,40,41);          //Uncomment this line for the HX8347-A
ITDB02_Touch myTouch (6,5,4,3,2);
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: himo on February 16, 2013, 11:42:45 PM
Hi,

this is my first line on the 320x240 Demo

//myGLCD(RS,WR,CS,RST,ALE,mode);
ITDB02 myGLCD(A1,A2,A0,A4,A5,2);   

This shield use the analog ports, it works with a moded IDB02 Library or the newest UTFT from hennningkarlsen

Regards

Title: Re: Arduino 3.2 tft colour touch screen build
Post by: tangtastic on February 17, 2013, 12:04:35 AM
Just had a look at the screen and its not compatable with Jarduinos code need one of these types and shield

http://imall.iteadstudio.com/im120419005.html

http://imall.iteadstudio.com/im120717001.html

Think it would be far to much hassle rewriting the code to use your screen
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: himo on February 17, 2013, 12:27:24 AM
Thanks a lot,

so I will buy a new one :)

Regards

himo
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: WmTasker on March 10, 2013, 04:15:26 PM
I have been reading around looking for information on building a controller (jarduino).  I have found the basic components but I need a little direction.  For now, I am only wanting to control 4 Meanwell LDD-700HW drivers for my LEDs (10v PWM input).  What will I need other than the basic components?  What power supply can I use for the these components?

Please let me know if my basic components are correct also.

Will Jarduino v1.2 work on a Mac computer?
Where can I get the necessary libraries if I download the Arduino developers software for Mac?

Thanks for your help
Billy

3.2" inch TFT LCD Module Display 320x240
http://www.ebay.com/itm/281008929016?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649
RTC-DS1307
http://www.ebay.com/itm/1PCS-I2C-RTC-DS1307-AT24C32-Real-Time-Clock-Module-for-arduino-no-bettery-/400417714401?pt=LH_DefaultDomain_0&hash=item5d3ac170e1
ATmega2560
http://www.ebay.com/itm/251240729188?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649
TFT 3.2'' Mega touch LCD expansion board shield for Arduino
http://www.ebay.com/itm/TFT-3-2-Mega-touch-LCD-expansion-board-shield-for-Arduino-/181072383748?pt=LH_DefaultDomain_0&hash=item2a28c14f04
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: WmTasker on March 10, 2013, 10:01:21 PM
The more I read the manual, the more I realize that .... I might be better off breaking out the old Dell with vista windows to do the programing. And this should work fine for my LEDs, I just wire the PWM circuit to GRD and PIN 7-13.  I just don't know if the Jarduino uses a 5v or 10v PWM circuits? And what PIN is GRD?

Finally,  If someone can ok the main components I am thinking about buying, then I can go to the Jarduino download site and unlock Jarduino 1.2v Beta.   

I might have to get this one instead of the one above: ATmega2560
http://www.ebay.com/itm/New-Mega-2560-ATmega2560-16AU-Board-Arduino-compatible-USB-Cable-Funduino-/181090267464?pt=LH_DefaultDomain_0&hash=item2a29d23148
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on March 10, 2013, 11:08:32 PM
Everything looks good to me.  Either Arduino should work just fine.  Don't know about the quality of the "Freeduino," but the second link you provided I would get over the Freeduino version. Plus it's cheaper.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: WmTasker on March 11, 2013, 12:28:47 AM
Everything looks good to me.  Either Arduino should work just fine.  Don't know about the quality of the "Freeduino," but the second link you provided I would get over the Freeduino version. Plus it's cheaper.

Thanks for the reply.  Any thoughts on using a Mac to do the programming with?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: TheDOdblG on March 11, 2013, 01:02:30 AM
Everything looks good to me.  Either Arduino should work just fine.  Don't know about the quality of the "Freeduino," but the second link you provided I would get over the Freeduino version. Plus it's cheaper.

Thanks for the reply.  Any thoughts on using a Mac to do the programming with?

Shouldn't be all that different. Just download the MAC OS X version then move all the libraries.
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: gep on July 25, 2013, 05:20:18 PM
Hi, I've just assembled my 2560 with shield and touch. Once I've loaded the stilo 3.0, the program starts, than the display freezes on options page. I think that the scketch don't read the touches of my fingers... but the display works with the Utouch examples.
What I can do?

Thank's
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: davie87 on September 25, 2013, 01:11:06 PM
I am hoping to create a launa cycle on my current aquarium.

I am wanting to use 3 of the below light strips, i am looking to make it an easy plug and play to change lights for testing so will be connecting the lights to the below plug adapers.

Currently i will have 2 strips of white lights together using a splitter and a single blue strip.

how will i add 2/3 male adapters to the board.

also will all the below equipment  do the job?

thank for your help in advance .


Data sheild + rtc
http://www.ebay.co.uk/itm/Data-Logging-Shield-Data-Recorder-Shield-module-for-Arduino-UNO-Duemilanove-/281167455229?pt=LH_DefaultDomain_0&hash=item4176e2e3fd

arduino board
http://www.ebay.co.uk/itm/Arduino-UNO-R3-V3-0-with-FREE-USB-CABLE-ATMEGA328-Robotics-/121105204892?pt=UK_Computing_Other_Computing_Networking&hash=item1c326ec69c

touch screen
http://www.ebay.co.uk/itm/SainSmart-3-2-TFT-LCD-Display-Touch-Panel-PCB-adapter-SD-Slot-for-Arduino-2560-/300863699002?pt=LH_DefaultDomain_0&hash=item460cdfb83a

lights
http://www.ebay.co.uk/itm/171119157626?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

plug adapters
http://www.ebay.co.uk/itm/200939588924?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

splitter
http://www.ebay.co.uk/itm/390618162417?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649

psu
http://www.ebay.co.uk/itm/PSU-DC-Connector-4-8-Way-DC-Splitter-9V-1A-12V-1A-2A-5A-UK-Power-Supply-Adapter-/200917215391?pt=UK_CCTV&var=&hash=item2ec799689f
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: LiquidArts on October 06, 2015, 05:33:07 AM
Not sure if I have missed anything while being away at work. Has the new version been released yet?
Title: Re: Arduino 3.2 tft colour touch screen build
Post by: ThiagoAndre on February 05, 2017, 09:18:06 PM

I would like a help, I installed the code and I did not have any error, only the program screen is to the left side. I'll attach a photo to help.

(http://imagizer.imageshack.us/v2/280x200q90/923/ZYeKnL.jpg) (http://imageshack.com/f/pnZYeKnLj)
Title: Arduino 3.2 tft colour touch screen build
Post by: LiquidArts on September 03, 2019, 01:11:00 AM
Any updates on version 3.0?

Sent from my SM-N920T using Tapatalk