Coder Social home page Coder Social logo

Trickle-charging DS1302 about stc_diyclock HOT 8 CLOSED

zerog2k avatar zerog2k commented on May 30, 2024
Trickle-charging DS1302

from stc_diyclock.

Comments (8)

zerog2k avatar zerog2k commented on May 30, 2024

No, in this firmware we do not enable trickle-charge function, which is disabled by default.
Refer to page 7 of maxim's ds1302 datasheet for more info.
https://datasheets.maximintegrated.com/en/ds/DS1302.pdf
I suspect it could be used with rechargeable lion coin cell, nimh, or supercap, but would need to be configured, in the firmware, which currently does not have this feature. (I welcome pull requests if someone wants to add the feature, as a compile-time option.)

from stc_diyclock.

denmmx avatar denmmx commented on May 30, 2024

Thanks for info!
It is strange that in the original kit this feature was enabled together with using non-rechargeable battery)

from stc_diyclock.

zerog2k avatar zerog2k commented on May 30, 2024

curious - how do you know it was enabled? and to what setting?

from stc_diyclock.

denmmx avatar denmmx commented on May 30, 2024

Battery was swollen and that caused the suspicion of the current that flows through it. The multimeter also showed the voltage at the battery pins. Also I flashed another firmware with disabled trickle-charger, and new battery stays Ok )

from stc_diyclock.

zerog2k avatar zerog2k commented on May 30, 2024

interesting... very strange mistake if so... If you were really curioust o know, you could measure the current flowing to the battery, or sniff ds1302 pins on startup to see what they are writing to the trickle charge register (reg write addr: 0x91)
(It's possible the firmware was meant for rechargeable cells or supercaps, but someone assembled the kit using the primary cells...) At the price point, anything is possible ;)

from stc_diyclock.

denmmx avatar denmmx commented on May 30, 2024

it would be interesting... How I can sniff pins of the DS1302? Need some more info :)

from stc_diyclock.

zerog2k avatar zerog2k commented on May 30, 2024

Do you have a logic analyzer?

from stc_diyclock.

denmmx avatar denmmx commented on May 30, 2024

Unfortunately have no logic analyzer. I'll just check voltage on battery pins in next days with multimeter, after reinstall stock MCU.

from stc_diyclock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.