Liquid Crystal Library

Hi @Frido, I have the same lcd screen as yours and I’m not able to make it work with the Core. I followed your guide to connect the screen but I only see the backlight. Could you post your code? Mine is the following:

#include "LiquidCrystal/LiquidCrystal.h"

LiquidCrystal *lcd;

void setup() {
    lcd = new LiquidCrystal(D0, D1, D2, D3, D4, D5);
    lcd->begin(16,2);
    lcd->print("Hello, Sparky!");
}

void loop() {
    lcd->setCursor(0, 1);
    lcd->print(millis()/1000);
}

Thank you very much

1 Like

Hi, sorry for being soooo late…

Maye there’s something wrong with your wireing?

I totaly left palying around with those diplays w/o SPI-Interface due to those problems.

Get one with SPI. Four wires, easy setup, work like they should.

Additional wires are only for a buzzer an an LED…

I use this to monitor my backupserver from anywhere in the world :wink:

Sends messages to the display via the spark cloud api (curl in wind*ws batch files)

Cheers,

Frido.

It's months later, but I stumbled on this post and thought maybe someone else might like to see an answer. In short ...

You need to connect and adjust a contrast control potentiometer (pot) ...

[quote="Frido, post:15, topic:1048"]
V0 -> to the variable resistor's middle PIN, left to GND, right to +5V/VIN[/quote]

Note the little blue, square component with the white twirly round thing in the middle, in the other photos of working examples :smile: (A clear example being @mohit's post, above.)

Any value from around 5K to 20K should be fine ... though be aware that the full Vdd supply is fed across the resistor ... so don't go too low in value!

2 Likes

For other newbies like me who are trying to wire this up, I created a breadboard diagram that is based off of @mohit’s photo and another functioning prototype I tested. :slight_smile:

Also, here is the pin mapping guide from the official LiquidCrystal library (https://github.com/technobly/SparkCore-LiquidCrystal):