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

LCD SPI projects.

Discussion in 'Oshonsoft' started by camerart, Oct 15, 2017.

  1. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,368
    Likes:
    11
    Location:
    Dorset UK.
    Last edited by a moderator: Oct 15, 2017
  2. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,220
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    hi C,
    I get a page read error when clicking your link.
    E
    EDIT:
    Have you a specific project in mind.?
     
    Last edited: Oct 15, 2017
  3. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,251
    Likes:
    911
    Location:
    Rochdale UK
    There were two sets of links, together... Fixed now..
     
    • Thanks Thanks x 1
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,368
    Likes:
    11
    Location:
    Dorset UK.

    Hi E,
    I have lots of ideas, but to put some sense to it, first I would like to make a test PCB to test some modules.
    Here are 3x PDFs for GPS, Barometer and Compass:
    The actual modules may change, but they will all be SPI.

    NOTE: After reading the Barometer PDF, I found that they need special care, handling, soldering and cleanliness. I had to order for some special solder paste too.
    EDIT: I've just ordered some of these https://www.ebay.com/itm/BMP280-3-3...ospheric-Arduino-Replace-BMP180-/321988583888
    C.
     

    Attached Files:

    Last edited: Oct 19, 2017
  6. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,294
    Likes:
    647
    Location:
    Derbyshire, UK
    Why not buy the sensor ready mounted on a breakout board? - there are plenty of such items easily available at low cost, usually aimed at Arduino users, plus lot's of example projects (using 5110 LCD's), again aimed at Arduino users - YouTube is a good place to look.
     
  7. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,368
    Likes:
    11
    Location:
    Dorset UK.
    Hi N,
    I went to a lecture about balloon tracking, then watched and tracked a balloon (http://habhub.org/), where I saw tiny lightweight circuits, which I aspire to be able to make.
    C.
     
  8. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,368
    Likes:
    11
    Location:
    Dorset UK.
    Hi N,
    I had a rethink! As the GPS modules prefer to be away from the circuit, I'll add a socket to the board.
    I'll also add one for the Compass, as it may be better for placement.
    Thanks.
    C.
     
  9. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,368
    Likes:
    11
    Location:
    Dorset UK.
    Hi E,
    I've just updated #4 as I've ordered some modules.

    Barometer sensor: I'm making a circuit with the earlier surface mount sensor, but I've just ordered some more already mounted on boards BMP280.

    GPS modules: I've ordered some GPS modules NEO-8M, and they come on boards too (Including voltage regulator antenna etc) . They appear to be RX TX operated, but I'm sure SPI can be used if wired appropriately.
    C.
     
  10. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,368
    Likes:
    11
    Location:
    Dorset UK.
    Hi,
    I am changing PICs fro 18LF2520 to 18LF4520, because while redrawing the Schematic I realise that I will have to start again if I run out of PINs.

    NOTE: from now on all of the PIN outs will be different from above examples!
    C.
     
  11. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,294
    Likes:
    647
    Location:
    Derbyshire, UK
    Interesting, I've ordered some 18F26K22's, rather than the 46K22's because the 26 is smaller :D

    I don't really find 24 I/O pins particularly limiting, and the 40 pin devices just seem rather large?.
     
  12. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,368
    Likes:
    11
    Location:
    Dorset UK.
    Hi N,
    Size was the reason I wanted to use 5110 LCDs, and I realise the 18F4520 is a bit big, so I tried surface mount 18LF4520, which is 3.3v and if I'm correct, is less than 15mm square and flatish.
    C.
     
  13. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,294
    Likes:
    647
    Location:
    Derbyshire, UK
    Yes, SM versions are (or can be) nice and small - but don't fit too well on Veroboard :D

    Incidentally, a 28 pin skinny DIP PIC will fit underneath a 5110, so is plenty small enough.
     
  14. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,220
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
  15. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,368
    Likes:
    11
    Location:
    Dorset UK.
  16. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,368
    Likes:
    11
    Location:
    Dorset UK.
    Hi,
    Here's a schematic of a prototype PCB.
    Any comments, corrections please.
    EDIT: Updated 011117
    C
     

    Attached Files:

    • SCH.gif
      SCH.gif
      File size:
      42 KB
      Views:
      20
    Last edited: Nov 1, 2017
  17. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,294
    Likes:
    647
    Location:
    Derbyshire, UK
    I've not seen those specific ones, but I have seen similar - but they don't give you 'skinny DIP' anyway, which is one reason for choosing the chips that size. I have used similar 8 pin adaptors to convert memory chips.

    BTW, my 18F's have arrived, I've stuck one in my new board, connected my new TFT board to it, inserted a 240x320 TFT and loaded the TFT demo I'd got (and configured to suit my TFT board). It worked first time :D

    If I can get some sort of decent recording, I'll stick a video up.
     
  18. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,220
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    hi,
    I have just received my 2.2 inch colour SPI ILI9225 TFTs, my initial reaction is considering using Oshonsoft basic will be a non starter.
    May have to familiarise my self with the programming by using Arduino libs and demo's before attempting the Basic.

    E
     
  19. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,294
    Likes:
    647
    Location:
    Derbyshire, UK
    I really think porting Arduino libraries is the way to go, there's just so much Arduino stuff out there.

    The most popular Arduino graphics library is the Ada_Fruit one, who also provide various libraries to interface to different graphics modules (but not this one?).

    This is the library I found, while I'm still waiting for mine to arrive:

    https://github.com/Nkawu/TFT_22_ILI9225
     
  20. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,368
    Likes:
    11
    Location:
    Dorset UK.
    Hi,
    The schematic on #15 has been updated, with a few minor changes.
    C.
     
  21. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,220
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    hi,
    Unable to get a correct compile, used the direct method for the lib. Downloaded the zip from Nigel Goodwin post , ie: git hub
    ***Direct Install:***
    * Click the **Download ZIP** button on the right to download **TFT_22_ILI9225-master.zip**
    * Extract the ZIP file to the library folder your *arduinosketchfolder*/libraries/ folder. You may need to create the libraries subfolder if it's your first library.
    * Rename the uncompressed folder from **TFT_22_ILI9225-master** to **TFT_22_ILI9225**
    * Restart the Arduino IDE

    This is the error msg in Arduino
    A001.gif

    Tried a number of times.

    E
     

Share This Page