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: 137
  • 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 263569 times)

0 Members and 8 Guests are viewing this topic.

Offline wgraham

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

Offline Majeric

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

Offline wgraham

  • Newbie
  • *
  • Join Date: Apr 2012
  • Posts: 29
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #437 on: June 06, 2012, 04:18:15 PM »
pin outs of the lcd to the shield to the arduino

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

Offline wgraham

  • Newbie
  • *
  • Join Date: Apr 2012
  • Posts: 29
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #439 on: June 07, 2012, 02:52:26 AM »
Just hook up my temp sensors and I'm not getting a reading still showing error :'(

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 #440 on: June 07, 2012, 02:54:34 AM »
Post up some pics of how you hooked them up.

Offline chrisb

  • Newbie
  • *
  • Join Date: Mar 2012
  • Posts: 4
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #441 on: June 09, 2012, 02:00:33 PM »
Also double check that your using the correct temp probe address.

Chris

Offline wgraham

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

Offline wgraham

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

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

Offline wgraham

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

Offline wgraham

  • Newbie
  • *
  • Join Date: Apr 2012
  • Posts: 29
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #446 on: June 12, 2012, 12:41:06 AM »
Just clear eeprom and uploaded V2 and still reads error on all three temp

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 #447 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.
« Last Edit: June 12, 2012, 03:10:14 PM by TheDOdblG »

Offline wgraham

  • Newbie
  • *
  • Join Date: Apr 2012
  • Posts: 29
  • Karma: 0
Re: Arduino 3.2 tft colour touch screen build
« Reply #448 on: June 12, 2012, 02:38:11 AM »
Thanks for the help  :bravo_2: working now

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