2.82 TFT with Network Shield on arduino Mega

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mariusares
 
Posts: 9
Joined: Sat Sep 13, 2014 3:57 am

2.82 TFT with Network Shield on arduino Mega

Post by mariusares »

Hi,
I have a project and i use a 20x4 lcd. im not happy with the display because i have no space to display all settings/sesnors data so i have to change the screen every 5 seconds on 3 times to see all the data. On the top of that i use a IR remote control as a keyboard and sometimes the IR sensor detects some signal from a 12V-24V transformer and the screen start acting funny.
I have seen this product: http://www.adafruit.com/products/1651 .. the touch screen i need only for settings like : set the min/max temperature, hour, minute
so basically i don`t need Capacitive Touch version on this. On the Breakout Board version the Capacitive Touch will be the one what i`ll go for because it have the i2c controller installed already -> https://www.adafruit.com/product/2090
my questions :1) what lcd i have to buy to be compatible with the ethernet shield W5100 on arduino mega?
2)the lcd shield can be stack over the ethernet shield?
i understand on arduino mega the lcd will use SPI mode, exactly as ethernet shield does...
thank you
Marius

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by adafruit_support_rick »

You can use either TFT. The question is which pin does the Ethernet shield use for Chip Select (CS)? The TFT Shield uses pin 10 for CS, Pin 9 for DC, and Pin 4 for SD Card CS.

If you use the breakout TFT, you can map CS, DC and SD CS to any pins you like.

Does the Ethernet Shield use interrupts? That may cause a problem if if does not handle the SPI bus correctly when an interrupt occurs.

User avatar
mariusares
 
Posts: 9
Joined: Sat Sep 13, 2014 3:57 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by mariusares »

Yes... This is a good point
According to arduino.cc:
Arduino communicates with both the W5100 and SD card using the SPI bus (through the ICSP header). This is on digital pins 10, 11, 12, and 13 on the Uno and pins 50, 51, and 52 on the Mega. On both boards, pin 10 is used to select the W5100 and pin 4 for the SD card.
I know that the shield is compatible with arduino mega and on my knowledge is plug and play...
No information about the interrupt
Regards

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by adafruit_support_rick »

OK - they don't mention an interrupt pin, so you're OK.

You will have a pin conflict with the TFT Shield. You will have to use the TFT breakout

User avatar
mariusares
 
Posts: 9
Joined: Sat Sep 13, 2014 3:57 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by mariusares »

The pin conflict can be sorted with a jumper?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by adafruit_support_rick »

Not on the TFT shield. With the breakout TFT, there is no conflict - you can wire it up any way you want.

User avatar
mariusares
 
Posts: 9
Joined: Sat Sep 13, 2014 3:57 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by mariusares »

Ok so will have a winer :))
Probably I'll contact you for a demo after I'll buy it if you don't mind
Thank you

User avatar
mariusares
 
Posts: 9
Joined: Sat Sep 13, 2014 3:57 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by mariusares »

ok now ...
there is: Topic is '10% off all items in stock code is goTenna expires 9/10/2014 @ 11:59pm ET http://www.adafruit.com'
I have got an error when i put the code "This coupon has expired"

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by adafruit_support_rick »

In this country, 9/10/2014 is September 10, 2014. Sorry.

User avatar
mariusares
 
Posts: 9
Joined: Sat Sep 13, 2014 3:57 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by mariusares »

hi,
i have ordered the product and i can`t wait to play with :)
so let`s me see if i have understood properly:
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
// If using the breakout, change pins as desired
//Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
on my case if i use the breakout version i can change ANY pin or just TFT_CS TFT_DC ?
so far i know on Mega MOSI MISO SCK are the pins 50 51 52 ... them pins can be changed as i desired as well?
thank you
Marius

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by adafruit_support_rick »

With the breakout, you can use any set of pins (software SPI), like this:

Code: Select all

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
Or, if you want to use hardware SPI with the breakout, connect MOSI, MISO, SCK to 50, 51, 52, and use this constructor:
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

TFT_CS and TFT_DC can be anything.

User avatar
mariusares
 
Posts: 9
Joined: Sat Sep 13, 2014 3:57 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by mariusares »

i see
so i have to define them like:
#define TFT_MOSI = 22 (example)
right?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 2.82 TFT with Network Shield on arduino Mega

Post by adafruit_support_rick »

Yes.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”