ameenmuhammed
Posts: 1
Joined: Thu Nov 29, 2018 4:54 am

i2c enable

Thu Nov 29, 2018 5:01 am

Hi guys.... while connecting a ds 1302 rtc module, address is not appearing in the table......
I enabled i2c interphasing.... but the address is not appearing.... please help me

DirkS
Posts: 9733
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: i2c enable

Fri Nov 30, 2018 4:14 pm

ameenmuhammed wrote: Hi guys.... while connecting a ds 1302 rtc module,
Are you sure about that? Not a DS1307?

How did you connect it (post an image if possible)?
Did you check the correct i2c port?
What is the exact output of

Code: Select all

i2cdetect -y 1
?

Andyroo
Posts: 1569
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: i2c enable

Fri Nov 30, 2018 4:28 pm

If it is the 1302 then its not I2C or SPI or even Dallas 1-Wire :roll:

It uses its own BCD based serial protocol https://www.maximintegrated.com/en/prod ... S1302.html

Adafruit have an Arduino based library though they recommend you replace it with the DS3231! Code to get data out is https://playground.arduino.cc/Main/DS1302

If you are using Python then I would go for https://github.com/sourceperl/rpi.rtc as a base and see how it works.
Need Pi spray - these things are breeding in my house...

Return to “Interfacing (DSI, CSI, I2C, etc.)”