Dear Friends,
In this video, I have shown an example of interfacing LCD to Atmega16 using I2C Port Expander. The idea of the project is to reduce the number of I/O lines used in the microcontroller. I am using PCF8574 IC as Port Expander. I have created a header file for I2C with comments so that it can be used with any other IC also. Please go through the code. I have also attached the schematic of this project with a component that I used to check them in Hardware. I am also sharing my code with you for your reference. Thank You. Please do subscribe, share and comment.
Thank you.
Code: https://www.dropbox.com/s/dlid9ispipxg58w/i2c_lcd.rar?dl=0
Schematic: https://www.dropbox.com/s/537yiaobp2z11ux/I2C-PCF8574-Serial-Inteerface---Copy-1-hdpng.zip?dl=0
PCF8574 module: *IIC/I2C Serial Interface Adapter Module*
https://robu.in/product/iici2c-serial-interface-adapter-module/?pid=31211
5V power supply.
Serial I2C control of LCD display using PCF8574.
Backlight can be enabled or disabled via a jumper on the board.
Contrast control via a potentiometer.
Can have 8 modules on a single I2C bus (change address via solder jumpers)address, allowing.
Microcontroller: https://robu.in/product/atmega-16a-pu/?pid=162198
By: Vignesh
@CodenlogicBlogspotInvs