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: 138
  • 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 263561 times)

0 Members and 8 Guests are viewing this topic.

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 #390 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.
« Last Edit: April 19, 2012, 04:22:42 PM by TheDOdblG »

Offline bigguy

  • Administrator
  • ******
  • Join Date: Feb 2012
  • Posts: 643
  • Karma: 2
  • Gender: Male
    • ukreefs
Re: Arduino 3.2 tft colour touch screen build
« Reply #391 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
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 #392 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 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).

Offline stevewild31

  • Jr. Member
  • **
  • Join Date: Dec 2011
  • Posts: 79
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #393 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 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
« Last Edit: April 19, 2012, 05:51:06 PM by stevewild31 »

Offline bigguy

  • Administrator
  • ******
  • Join Date: Feb 2012
  • Posts: 643
  • Karma: 2
  • Gender: Male
    • ukreefs
Re: Arduino 3.2 tft colour touch screen build
« Reply #394 on: April 19, 2012, 06:38:05 PM »
is the screen black or grey ?

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 stevewild31

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

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 #396 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

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

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 #397 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.

Offline stevewild31

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

« Last Edit: April 19, 2012, 10:49:55 PM 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 #399 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!

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 #400 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);

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

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 #401 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
Enjoy your stay on Ukreefs, please don't hesitate to contact the team if you have any recommendations

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 #402 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>

Offline stevewild31

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

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 #404 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
Enjoy your stay on Ukreefs, please don't hesitate to contact the team if you have any recommendations