I2C LCD Node.js Coding on a Raspberry Pi

  Рет қаралды 4,042

Intermation

Intermation

Күн бұрын

Now that we have the I2C LCD module wired to our Raspberry Pi, it's time to write the Node.js script to control it. In this lesson, we write the functions to initialize the LCD, write data to the LCD control and character registers, control the backlight, position the cursor, and write strings to be displayed.
Takeaways: At the completion of this lesson, each student should be able to write the functions necessary to control a 1602A LCD module via an I2C to parallel adaptor.
#lcd #i2c #raspberrypi

Пікірлер: 2
@alexwaft
@alexwaft 3 жыл бұрын
thank you for great tutorial! I've got a lot of useful information how that libraries workin. I have 1602 LCD with I2C adaptor, and it works perfectly from arduino, but not in raspberry, any python libraries I used(at least 5 different libs I downloaded). In my case intialisation sequence won't pass, so display stills with upeer sqare rows whatever I do. The only backlight I can manage from raspberry. I even go to the arduino library and mirror to serial port whatever it outputs to i2c, then I tried to send same digits to the display from raspberry -- no success. Seems in arduino is different write-function realisation than in raspberry. I am still checkin, but if you know what's the global difference between arduino i2c and raspberry i2c, please anyone tell me. I2C speed? I don't know. voltage levels? I saw a lot of realisations raspberry-1602lcd without any level convertors. Raspberry pinmodes? I tried all. thank you for your video, it points me to the correct direction anyway.
@alexwaft
@alexwaft 3 жыл бұрын
I have changed display together with i2c adapter. now i have i2c address 0x27 and everything works fine out of the box. I still have no idea why that 1602 works with arduino perfectly, but with rapsberry can't work at all. I work with arduino for a years and that old display was always very special, it needs special library to work with. But works! Thank you for your video anyway. I am excited of your capability to program in text editor without any IDE help :) I never remember how many arguments that fucntions have, i always use IDE's help to create smth :) thank you!
Inter-Integrated Circuit (I2C) Basics
25:29
Intermation
Рет қаралды 15 М.
I Turned A Raspberry Pi Into A Node.js Web Server
7:50
PortEXE
Рет қаралды 112 М.
когда не обедаешь в школе // EVA mash
00:51
EVA mash
Рет қаралды 3,9 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН
Worst flight ever
00:55
Adam W
Рет қаралды 33 МЛН
Raspberry Pi - Mini LCD Display Tutorial
9:00
TheRaspberryPiGuy
Рет қаралды 138 М.
Wiring an I2C LCD Module to the Raspberry Pi (Just 4 wires!)
14:31
Intermation
Рет қаралды 4,1 М.
Figuring Out Your Computing Personality
12:37
Intermation
Рет қаралды 2,9 М.
Raspberry Pi Serial Connect to USB via FTDI
18:52
Intermation
Рет қаралды 22 М.
Top 10 Raspberry Pi Projects for 2022
7:54
Jeff Geerling
Рет қаралды 1,5 МЛН