I understand that analog 4 and 5 are SDA/SLC, isn't the picture also showing 5v and GND being plugged into two analog pins? Does that work?

I have it wired up to the actual 5v and GND, but it would be convieniet to be able to stack the RTC like they show in the picture

  • 2
    You can use ADC pins as general DIO too. In this case 2 PORTA pins set as output, one with HIGH and other LOW outputs to be used as source and sink. Sure pin currents must be within the allowed specs. DS1307 shall consume very low current (designed to be operating years by battery).
    – Flanker
    Jul 27 '16 at 7:07
  • @Flanker You just gave an answer. You shouldn't put that in a comment.
    – Gerben
    Jul 27 '16 at 9:17

It's written in the tutorial

If you set analog pin 3 (digital 17) to an OUTPUT and HIGH and analog pin 2 (digital 16) to an OUTPUT and LOW you can power the RTC directly from the pins!

  • Wow I don't know how I missed that. Thanks!
    – Dave
    Jul 27 '16 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.