Graphical LCD using SPI

Go To Last Post
16 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello Everyone;

 

I am using ATMEGA32 with a graphical LCD. I need that this LCD will run in SPI Protocol. Is it possible??

I have limited number of Pin so I want to connect the LCD with the minimum number of Pins.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Abhay02 wrote:
Is it possible??

Yes.

 

Many displays - or, specifically, display controllers - have an SPI connection.

 

But SPI is little more than just a connection - there is no specific protocol attached to SPI (unlike I2C).

 

Again, the protocol will be determined by the display controller.

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Post a link to the actual display that you have bought.

 

Common controllers like KS0108 are "only parallel"

Modern controllers sometimes have multiple interface types.

The interface hardware configuration pins are not always accessible.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank You for reply.

 

 Can you please suggest me a graphical LCD which can work on SPI. 

I have attached the image of the display which one I am using.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ST7920 modules can use SPI.    They are available on Ebay e.g. https://www.ebay.co.uk/itm/ST7920-128x64-12864-LCD-Display-Blue-Backlight-Parallel-Serial-for-Arduino-5V/302309454831?hash=item46630c33ef:g:LLMAAOSw42dZDZel

 

Those modules work on 5V.  

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Abhay02 wrote:
Can you please suggest me a graphical LCD which can work on SPI. 

http://www.lmgtfy.com?q=graphical+LCD+SPI

 

If you want a full, ready-to-go solution, try adding "Arduino" to your search.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I used this one in a project a few years ago:
https://www.adafruit.com/product...

 

But there are many other options... And I used a controller that was a lot faster, heres a short video just to show that it's running.

https://www.youtube.com/watch?v=...

 

- Brian

Last Edited: Thu. Aug 23, 2018 - 01:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When I view that video, one of the "related videos" suggested by YouTube is this:

ST7735 1.8" TFT Dispay: Hardware SPI vs bit-banging the SPI 

https://www.youtube.com/watch?v=...

It's on an Arduino - so should be ideal for the OP ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

I like the DOGM displays.

Greg Muth

Portland, OR, US

Xplained/Pro/Mini Boards mostly

 

Make Xmega Great Again!

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I want to use ATMEGA32 micro controller only with a graphical lcd. Is it possible??

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Abhay02 wrote:

I want to use ATMEGA32 micro controller only with a graphical lcd. Is it possible??

As you have been told many times.... YES.

#1 This forum helps those that help themselves

#2 All grounds are not created equal

#3 How have you proved that your chip is running at xxMHz?

#4 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please suggest me the circuit and code..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In reply to #9, Abhay02 wrote:
I want to use ATMEGA32 micro controller only with a graphical lcd. Is it possible??

Go on. Post #9 specifically gave you links to YouTube videos showing AVRs driving graphical LCDs.

 

Do you think those videos are fakes?

 

You already have at least half a dozen threads on this forum about AVRs driving graphical LCDs.

 

Are you not listening to anything anyone has said to you in all those threads?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Abhay02 wrote:
Please suggest me the circuit and code..

Again, you already have at least half a dozen threads on this very forum where people have given you plenty of suggestions for both code and circuits.

 

And, apart from your own threads, there have been innumerable other threads on the subject.

 

There are plenty of examples on the interwebs.

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

 

I remember those threads also. AvrFreaks tells me I also contributed - not that I remember doing so.

 

My troll alert is bleeping away loudly but I cannot work out whether it's for real or a false alarm. I'm working on a project with QVGA (16-bit colour) and PIC32 so have an interest in this subject.

 

Anyway ... despite good advice to the contrary Abhay02 seems insistent on interfacing with ATMEGA32 and is struggling. Probably due to lack of enough I/O pins.

The other threads indicated that this is an upgrade to an existing project (that uses ATMEGA32) .

Now so much time has passed since the first posting which I think was April; that I would advise Abhay02 to do one of the following:

 

  1. Rework the whole project over again choosing a higher spec micro.
  2. Add a LCD daughter board with secondary micro which can handle a parallel interface thereby giving him a much larger choice of LCD.
  3. Continue to procrastiate endlessly and not ever start this potentially really interesting project.

 

Abhay02 could prototype #2 using Arduino or a kit off Ebay perhaps then actually get started on his code to see where the real problems lie.

 

 

Last Edited: Fri. Aug 24, 2018 - 10:31 AM