jeudi 26 avril 2018

LCD Controll with I2C





hey guysin this tutorial we ll show you another typeof using of  LCD device . We ll use the protocol I2C, this protocol uses only 2 pins instead of 16 (number of pins of LCD device).

I2C (Inter-Integrated Circuit) is a short distance serial interface that requires only 2 bus lines for data transfer. It was invented by Philips in 1980’s, originally to provide easy on-board communications between a CPU and various peripheral chips in a TV set. Today, it is widely used in varieties of embedded systems to connect low speed peripherals (external EEPROMs, digital sensors, LCD drivers, etc) to the main controller.


the vast majority of I2C LCDs are basically the same because they use the same 8 bit I/O expander chip PCF8574. There are a various other expander but it is important  to know the expander we working with.


to work PCF8574 an arduino library is needed for setting the setting ofthis device
you just need to import itto arduino library

PS: if you are using another I2C expander you ll have problems with your LCD


after import it you need to restart your Arduino IDE and then u can test your module by using the sketch below




connecting lcd module to arduino



























Aucun commentaire:

Enregistrer un commentaire