1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

ARDUINO MEGA 2560 WITH ILI9341

Discussion in 'Arduino' started by umairml, Jan 8, 2018.

  1. umairml

    umairml New Member

    Joined:
    Jan 8, 2018
    Messages:
    15
    Likes:
    0
    Unable to get display on ili9341 using arduino mega 2560?
    I have no specific code to run please guide me....
     

    Attached Files:

  2. Ian Rogers

    Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,802
    Likes:
    958
    Location:
    Rochdale UK
    Check out the example.... You have to wire the LCD up exactly the same..
     
  3. umairml

    umairml New Member

    Joined:
    Jan 8, 2018
    Messages:
    15
    Likes:
    0
    Ok its ok about wiring but what about code to run simulation....
     
  4. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  5. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,354
    Likes:
    650
    Location:
    Ex Yorks' Hants UK
    hi,
    Have you set the IM pins correctly for SPI operation..?
    E
     

    Attached Files:

  6. Ian Rogers

    Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,802
    Likes:
    958
    Location:
    Rochdale UK
    The code is with the example..
     
  7. umairml

    umairml New Member

    Joined:
    Jan 8, 2018
    Messages:
    15
    Likes:
    0
    here is all i am doing. Now please guide me what is wrong with my code or my circuit simulation.
    My brain is exploding....
    Please help
     

    Attached Files:

  8. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  9. Musicmanager

    Musicmanager Active Member

    Joined:
    Dec 4, 2014
    Messages:
    651
    Likes:
    57
    Location:
    Birmingham, UK
    Hi Umairml .. .

    Welcome to ETO .. .. .
    I'm not sure you have your interface connections right yet, they don't seem to match those on the ILI9341 datasheet.
    I would suggest you use one of the example sketches in Arduino IDE to make sure your connections/setup is correct before you try to run a more complex sketch.

    Look here .. ..

    upload_2018-1-8_14-13-21.png

    Then when you have that running correctly you have a fighting chance with the more complex sketch.

    I hope that helps .. ..

    S
     
  10. Ian Rogers

    Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,802
    Likes:
    958
    Location:
    Rochdale UK
    IM0 low IM1~3 high
     
  11. Musicmanager

    Musicmanager Active Member

    Joined:
    Dec 4, 2014
    Messages:
    651
    Likes:
    57
    Location:
    Birmingham, UK
    Yes, currently shown as IM1 = low; IM0, 2 & 3 high.

    Also interface between screen and Arduino - I can't read the pin ID's on the screen ( ageing eyesight ) but they don't look right ? The Arduino example sketches have the pin ID's marked out to make it easy to identify them.

    S
     
  12. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,354
    Likes:
    650
    Location:
    Ex Yorks' Hants UK
    h,
    You show a Vs =1.5v, does that fall within the specified range.?
    E
    A001.gif
     
  13. umairml

    umairml New Member

    Joined:
    Jan 8, 2018
    Messages:
    15
    Likes:
    0
    Thank you now it is working. Thank you. Thank you
     
  14. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,354
    Likes:
    650
    Location:
    Ex Yorks' Hants UK
    hi,
    Can you tell us what you had to do, to fix it?
    E
     
  15. umairml

    umairml New Member

    Joined:
    Jan 8, 2018
    Messages:
    15
    Likes:
    0
    There was wiring issue after correct connection and using of correct library with arduino it is now working. Actually i was using library of arduino uno after search i got that it was uno library as pin initialization was wrong but all good now after reading arduino datasheet.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice