Connecting a LCD in Raspberry Pi : the leap less than €10 !

For once, We are not going to do a tutorial on how to install this or that tool but enjoy the Raspberry Pi GPIO interface to connect a LCD. Electronics, a first for me !

Connexion d'un écran LCD au Raspberry Pi : le grand saut !

Then I have to say that I start a little to regret my lack of attention in the course of physics/electronics of my youth short ! Result ,now, resistance, transistor and other “shift register” look like a mixture of Chinese and Uzbek ! In short I understand nothing. Yet by reading the blog of Idleman, and more particularly this article on an LCD screen, I wanted to like the big ones !

So I spent command on the other side of the globe for a small LCD for the sum of € 4.13 postage included. Over a few female-female cables for € 3.74 always postage included. Once the received packet, It was therefore necessary to move to the weld ! And there was also a first, especially with the soldering iron of my grand father who must have lived well given his head :

Connexion d'un écran LCD au Raspberry Pi : le grand saut !

The same seen from the front :

Connexion d'un écran LCD au Raspberry Pi : le grand saut !

I still have progress to make but the welds are in place, remains to connect it to the Raspberry ! For this, the blog of Idleman, always, has a clear and effective ultra schema :

Le schéma d'idleman sur la connexion de l'écran au Raspberry Pi

The schema of idleman on the connection of the screen to the Raspberry ft

A big thank you because here is the result :

Connexion d'un écran LCD au Raspberry Pi : le grand saut !

Now remains to test everything :

  1. Install the C library that will allow easy access to the GPIOapt-get update port && apt-get upgrade
    apt-get update && apt-get upgrade apt-get install git-core git clone git://git.drogon.net/wiringpi cd wiringPi git pull origin./build
  2. Load the example of Idleman blog
    wget http://projet.idleman.fr/domopi/data/piscreen/lcd.zip unzip lcd.zip

    You now have a lcd directory that contains the program ‘screen‘ which will allow to send text on the screen.

Problem : the contrast

Big disappointment at the first launch of the command : nothing on the screen. Watching welds, It looked ok … By browsing the comments, It seems that each screen requires a rule.

So I went into the code, in the line that contains :

LcdWrite(LCD_C, 0x 98 );  // Set LCD Vop (Contrast).

And I modified the value of this line, in departing from the value 0x00 and then recompiling the program to repeat a test.

g    screen.cpp o screen - lwiringPi ; ./screen p Test

Each time I increase the value of 0x10 (0x 00, 0x 10, 0x 20, etc.), recompile and retested. It allowed me to find the value of my contrast between 0xB0 and 0xC4 (wholesale) :

Connexion d'un écran LCD au Raspberry Pi : le grand saut !

Phew !

This is my first electronic experience with Raspberry Pi ! J’avoue maintenant ne pas trop savoir quoi en faire mais j’ai de l’imagination 🙂 Il y a des possibilités avec des librairies et pourquoi pas interagir depuis un site web

At your soldering irons ! 🙂

You may also like...

  • Sly

    thanks I'll look at ca pourpouvoire leconecter a my IP with openelec acknowledge it as an options second lcd if not for a squezbox also ;o)

  • Thanks for this article, I wanted to get into Electronics also with the pi raspberry and I think that you convinced me with this project. On the other hand, I did not understand what you as welded. On the site you put in link, There are tabs on the screen, you could not use it you ? (I am a big noob electro too) 😉

    Thanks for your reply.

    • What must be soldered it is precisely the pasta with the black block. It also shows me I put it upside down at the time my sons leave from the front of the screen which is not practical !

      • But you bought wires female-female, It is not enough then to insert them ?

        • If if but you must solder the pins on the screen for is threading wires. The pins are supplied with the screen but next (j’avais pas compris à quoi ca servait au départ 😉 )

          • Ah okay, I thought the pins were already welded on the screen. It's good, j’ai tout compris 🙂

            And you have ordered on the site that you give link ? What about delivery time ?

          • Yes I have ordered from them but I had problems with the delivery that put 2 month (see here)

  • Ah oui en effet 🙂

    Bon ben I will pass command soon, j’aurai peut-être ça pour les grandes vacances 😀

  • Guillaume

    Good evening and thank you for the tutorial.
    I am also a noob in electronics but a small question running through my head.
    Is possible to connect any phone screen ? Or need the datasheet of the display, and then create the driver to be able to write on the screen ? Unless he have a library that does this ? End I know not too much.
    Thank you for the tutorial in all cases.

    • Hello. Actually the data sheet is essential to know how to hook the GPIO ports on the pins of the screen. Then the ideal it is google and make sure that the screen has already been plugged on the Raspberry

Handpicked links

disk: enhanced Database Caching 253/468 queries in 0.234 seconds using disk Object Caching 1701/1877 objects using disk Served from: pihomeserver.fr @ 2016-05-23 01:07:30 by W3 Total Cache -->