Page 1 of 1

i2c enable

Posted: Thu Nov 29, 2018 5:01 am
by ameenmuhammed
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

Re: i2c enable

Posted: Fri Nov 30, 2018 4:14 pm
by DirkS
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
?

Re: i2c enable

Posted: Fri Nov 30, 2018 4:28 pm
by Andyroo
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.