Analog Pin encounter for LCD i2c & DS3231

It says that DS 3231 needs A4 & A5 pin of UNO and same with i2c module for LCD 16x4

Then how could I go for both at the same time ??

Please guide !!

breadboard.

Sir what I got is

A7 goes to D11

A6 goes to D12

A5 goes to somewhere not visible

A4 goes to D10

. . .

where is A5 located & what is that red color board at the right ???

Please explain !!

it was just an example of how to connect multiple things to one pin by extending the pin from the MCU to the breadboard.

Actually that us not the issue

There are 2 diffrent devices wirh working and need diffrent signal flow then how could we connect it to same line ??

Assuming you have a breadboard you just jumper from your Arduino Board to your breadboard. This gives you more connection points for your SCL (Serial Clock) and SDL (Serial Data) lines. Using for example an Arduino Uno the SDA and SCL labeled on the board are also the same as A4 and A5. If you want just connect the DS3231 to the SCL and SDA points and the LCD to A4 and A5. The LCD and RTC (Real Time Clock) have their addresses, the DS3231 uses 0x68 and whatever your display uses. Both on the I2C bus.

Ron

Both devices use I2C communication.

This protocol allows different device to share the same bus (data & clock lines)... each device has an "address" that uniquely identifies it on the bus, so your UNO can talk to each device as required.

Connect DS3231 Module and LCD Module as per Fig-1; where, the SDA and SCL lines simultaneously go to both modules.


Figure-1:

You observe that the RTC has the device/slave address: 0x68 and the LCD has the device/slave address: 0x27 (or 0x3F). The devices are accessed one-by-one and are identified by their addresses.

Oh Yes yes Just like connecting 8 LCDs with different address bits via same line for SCL & SDA

Right ??????

Yes! By installing jumpers across the A0-A2 solder pads of the following I2C controller, there are 8 LCDs that can be placed in an I2C Bus.
i2CLCDPicX

Ya Sir I once had a trail with 2 Units of LCD

OK ll follow as per here !!

thankssss

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.