Go Down

Topic: Display Proteus (Read 4465 times) previous topic - next topic

tiagomega

I want use display in my project and proteus have this: TFT LCD ILI9341!! I'm using arduino mega in simulation!! I wish someone would tell me the connections to arduino mega2560, program example, libraries for use with LCD!!! Search in google but nothing find!!!!

ghlawrence2000

I am sure DavidPrentice will have more to say on this matter, but as a starting point, you should provide a link to where you bought your display, and/or pictures of the back of the display. Is it a module or a shield? In other words is it a 'normal' tft display with the 40 pin header?

Also, how to connect it is only half the problem, then comes the issue of what library to use to drive it.

Regards,

Graham
UTFT_SdRaw now included in library manager!! ;) High speed image drawing from SD card to UTFT displays for Mega & DUE.
UTFT_GHL - a VASTLY upgraded version of UTFT_CTE. Coming soon to a TFT near you! 8) Shipping April 1 2016!

tiagomega

#2
Oct 05, 2015, 03:45 pm Last Edit: Oct 05, 2015, 04:54 pm by tiagomega
I found this LCD in Proteus and would like to include it in my project with Arduino Mega !! The Proteus's website says ILI9341 (SPI Mode Only) and have not bought this display !!! A display that supports this simulated in proteus that I found on the internet: http://www.mikroe.com/add-on-boards/display/tft-proto/
Below Key features says, TFT is driven by ILI9341 controller driver !!!
I am simulating in proteus the Arduino Mega and need to display data in displays! The LCD available in Proteus are ampire128x64 and LGM12641BS1R with KS0108 controller, LM3229 and LM4229 both 240x128 with Toshiba T6963C controller! I think the LM3229 or LM4229 displays are sufficient for the project with Arduino !!! And on google I found nothing related to connecting these devices with Arduino !!

david_prentice

I do not have a Proteus licence.    Surely,  you will have some documentation.

Since you say "SPI only",   I would guess that you connect to the 2560's SPI pins. e.g.:
SS = /CS
MOSI = SDI
MISO = SDO
SCK = SCL
Data_Command_Select = /WR
Reset = /RES

You will probably find example code that can use any GPIO pins for Data_Command and Reset.
I have no idea how well any Simulation would work.   i.e. do you have to connect all the IM pins, LED pins etc ?

Since you or your school has paid good money for Proteus,   ask for support from LabCenter.

It would be interesting to hear how you get on with the ILI9341.

Note that if you ever run the code on a real controller,   it is 3.3V only.

David.

p.s. If it is a school project,   I am sure that you will find it easier to Simulate a KS0108 display.

tiagomega

#4
Oct 05, 2015, 05:07 pm Last Edit: Oct 05, 2015, 11:31 pm by tiagomega
I using pin A0 to measure temperature using LM35 and pins 23 for fan controller and 25 for relay using same circuit!!! This LCD show Temperature:  xxC and Fans: xx%!!!!

tiagomega


david_prentice

You have two distinct tasks:
1.   Measure Sensors and switch fan / relay
2.   Display "anything" on a ILI9341 screen.

You can test your logic for (1) with a regular UART Serial Terminal.

For the ILI9341:
I suggest that you start with just drawing a red screen,  black screen, ...
Then draw "Hello World" to the screen.

When both work,   you can replace the UART Terminal with the TFT screen.

David.

tiagomega

#7
Oct 07, 2015, 03:31 pm Last Edit: Oct 08, 2015, 09:15 pm by tiagomega
i found 2 samples in proteus! make circuit to show the data!!! works fine!! thanks for help friends

microcontroladoresmx

You can view my post in   http://microcontroladores.com.mx/index.php?route=pavblog/blog&id=65

is easy you need library of arduino for proteus.   

Go Up