Jump to

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* UK Reef's Shoutbox

Refresh History
  • Bubbagump: Hi all, just signed up today...if previous posts are anything to go by looking forward to joining the group
    November 19, 2017, 05:23:56 PM
  • IgorEvtimov: i read all the forum and topics and decidet to join you.
    April 23, 2017, 09:26:40 PM
  • IgorEvtimov: Im new in this and truing to build a reef tank
    April 23, 2017, 09:26:11 PM
  • IgorEvtimov: Hi to all
    April 23, 2017, 09:25:09 PM
  • AndrewStephens: Morning :)
    January 23, 2017, 07:03:06 AM
  • tangtastic: shuusshh :o
    December 03, 2015, 12:47:41 AM
  • compfranon: not a lot of people use this shoutbox
    October 31, 2015, 11:02:11 PM
  • mark (sid) tottle: why has it gone so quiet o this sight????????????
    September 03, 2015, 07:14:09 PM
  • tangtastic: Afternoon folks anything on the go today ?
    March 22, 2014, 12:00:29 PM
  • s23pho: jardin
    December 10, 2013, 11:29:08 PM
  • compfranon: checkout the 44 gallon thread onlyaman
    November 03, 2013, 10:20:23 PM
  • onlyaman: one
    October 31, 2013, 11:24:19 PM
  • onlyaman: has any oen put toghter the jarduino controler
    October 31, 2013, 11:23:41 PM
  • onlyaman: just wanted to say hi to all
    October 31, 2013, 11:15:34 PM
  • bigguy: Evening :)
    October 26, 2013, 09:15:06 PM
  • tangtastic: mornin
    October 15, 2013, 05:16:24 PM
  • bigguy: Greets to all :)
    October 12, 2013, 03:35:48 PM
  • compfranon: chrome worked for me
    October 08, 2013, 06:16:25 PM
  • bigguy: this is ie
    October 08, 2013, 05:18:20 PM
  • bigguy: hello
    October 08, 2013, 05:17:47 PM

Who's Online

  • Dot Guests: 81
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

Theme Selection



Forum Default

Permanently

Author Topic: Arduino 3.2 tft colour touch screen build  (Read 242738 times)

0 Members and 3 Guests are viewing this topic.

Offline stevewild31

  • Jr. Member
  • **
  • Join Date: Dec 2011
  • Posts: 79
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #405 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

« Last Edit: April 20, 2012, 12:06:33 AM by stevewild31 »

Offline TheDOdblG

  • Admin/Mod
  • *****
  • Join Date: Nov 2011
  • Posts: 1102
  • Karma: 62
  • Gender: Male
    • Jarduino on Google Code
Re: Arduino 3.2 tft colour touch screen build
« Reply #406 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...
« Last Edit: April 20, 2012, 12:07:35 AM by TheDOdblG »

Offline TheDOdblG

  • Admin/Mod
  • *****
  • Join Date: Nov 2011
  • Posts: 1102
  • Karma: 62
  • Gender: Male
    • Jarduino on Google Code
Re: Arduino 3.2 tft colour touch screen build
« Reply #407 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.

Offline stevewild31

  • Jr. Member
  • **
  • Join Date: Dec 2011
  • Posts: 79
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #408 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...

Offline bigguy

  • Administrator
  • ******
  • Join Date: Feb 2012
  • Posts: 643
  • Karma: 2
  • Gender: Male
    • ukreefs
Re: Arduino 3.2 tft colour touch screen build
« Reply #409 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
Cube LED Build The Journey :)
http://ukreefs.com/index.php?topic=975.msg8156#msg8156
Large Fat And Dam ugly But Happy to Try and help if i Can :)
Enjoy Your Stay Here.

50cm Cube Tank Thread
http://ukreefs.com/index.php?topic=1005.0

Offline TheDOdblG

  • Admin/Mod
  • *****
  • Join Date: Nov 2011
  • Posts: 1102
  • Karma: 62
  • Gender: Male
    • Jarduino on Google Code
Re: Arduino 3.2 tft colour touch screen build
« Reply #410 on: April 20, 2012, 01:29:02 AM »
Success tastes much sweeter when we know what failure tasted like

Offline bigguy

  • Administrator
  • ******
  • Join Date: Feb 2012
  • Posts: 643
  • Karma: 2
  • Gender: Male
    • ukreefs
Re: Arduino 3.2 tft colour touch screen build
« Reply #411 on: April 20, 2012, 01:47:53 AM »
Success tastes much sweeter when we know what failure tasted like

nice quote dude :)
Cube LED Build The Journey :)
http://ukreefs.com/index.php?topic=975.msg8156#msg8156
Large Fat And Dam ugly But Happy to Try and help if i Can :)
Enjoy Your Stay Here.

50cm Cube Tank Thread
http://ukreefs.com/index.php?topic=1005.0

Offline tangtastic

  • Administrator
  • ******
  • Join Date: Oct 2011
  • Posts: 2134
  • Karma: 1004
  • Gender: Male
  • Expertises:
  • LED Builds
  • Equipment knowledge
Re: Arduino 3.2 tft colour touch screen build
« Reply #412 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


Enjoy your stay on Ukreefs, please don't hesitate to contact the team if you have any recommendations

Offline stevewild31

  • Jr. Member
  • **
  • Join Date: Dec 2011
  • Posts: 79
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #413 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.........

Offline stevewild31

  • Jr. Member
  • **
  • Join Date: Dec 2011
  • Posts: 79
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #414 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. :))

Offline stevewild31

  • Jr. Member
  • **
  • Join Date: Dec 2011
  • Posts: 79
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #415 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

Offline TheDOdblG

  • Admin/Mod
  • *****
  • Join Date: Nov 2011
  • Posts: 1102
  • Karma: 62
  • Gender: Male
    • Jarduino on Google Code
Re: Arduino 3.2 tft colour touch screen build
« Reply #416 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."  :))

Offline TheDOdblG

  • Admin/Mod
  • *****
  • Join Date: Nov 2011
  • Posts: 1102
  • Karma: 62
  • Gender: Male
    • Jarduino on Google Code
Re: Arduino 3.2 tft colour touch screen build
« Reply #417 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).

Offline svyaz

  • Jr. Member
  • **
  • Join Date: Feb 2012
  • Posts: 50
  • Karma: 5
  • Gender: Male
Re: Arduino 3.2 tft colour touch screen build
« Reply #418 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

Offline chrisb

  • Newbie
  • *
  • Join Date: Mar 2012
  • Posts: 4
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #419 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