دو شنبه,۳۰ فروردين ماه ۱۴۰۰مطابق با ۷ رمضان ۱۴۴۲ هجرى قمرى
Make a clock with DS1307 real clock module and 1602 16×2 LCD panel with back-panel to convert it to I2C protocol. (I2C راه اندازی با)
The time and date will be displayed in alphanumeric on LCD.
Device: LCD 1602 with back-panel (نمایشگر LCD 16×2 کاراکتری دو سیمی)
The communication requires only two pins on the microcontroller bord: A4 and A5.
SDA: Analog 4
GND: GND terminals
Contrast Adjust : has a built in potentiometer for contrast adjustment.
I2C Address: in my case is 0x27
You should see the LCD light up by starting, if it dose not happened, you may want to turn down the contrast of the LCD.
LCD has 2 lines, 16 character in each line and each character have 5-pixel in width and 8-pixel in height.
The LCD supports up to 8 custom characters numbered from 0 to 7.
The DS1307 Real time use also I2C Protocol to communicate with arduino.
Driver IC: I2C DS1307 Real Time Clock
SCL: Analog 5 (clock line)
SDA: Analog 4 (data line)
Voltage: 3.3V to 5V
GND: GND of Arduino
I2C Address: in my case was 0x68
Each device on the I2C bus has its own unique address. The LCD display used here has address 0x27.
You can use the scanner script to find I2C addresses on arduino by using
The I2C address used by a device can be found with the sketch i2c_scanner
I2C device found at address 0x27 !
I2C device found at address 0x68 !
To drive LCD I’m using the LiquidCrystal_I2C library, which seems to be commonly used.
Leave a Reply
- Ali Esteki (1)
- Blog (17)
- Electronic (12)
- iribTv (4)
- Linux (10)
- Ring Clock Project (4)
- Root (21)
- Tools (6)
- WordPress (6)