Arduino ZS-042 RTC (Real Time Clock) Module
DS3231 RTC Module
2017 OCTOBER | by Gene Casanova
Senior Systems Engineer
ZS-042 Real Time Clock Module (RTC)
This is a Real Time Clock (RTC) IC DS3231, a battery charger, battery holder, address configuration jumper solder pads, and TTL level output pins.
A real time clock IC mounted to a small printed circuit board (PCB), with a voltage regulator IC chip and a button battery holder.
USE A RECHARGEABLE BUTTON BATTERY ONLY!
A regular battery will be destroyed and may blow up and cause further damage.
As a Li-Ion LIR2032 rechargeable battery gets closer to being fully charge, the current to it, will drop; and effectively will provide a trickle-charge to the battery.
The module uses the I2C Communication Protocol to communicate with an Arduino systemboard.
The DS3231 are low-cost, extremely accurate I2C real-time clock (RTC) with an integrated temperature-compensated crystal oscillator (TCXO) and crystal. No need for an external crystal.
Disable Onboard Battery Charger
Desolder and remove the resistor 201 (200 ohm). After removing the resistor, a high grade CR2032 button battery can be used in the battery holder without a charge current going through it.
RC2023 Button Battery
A quality grade CR2032 button battery, can last in this RTC for 10 years! The CR2032 button battery is a very commonly used battery in many consumer electroncis and X86 desktop, tower, and server computer motherboards.
Arduino & ZS-041 Connections
|SCL||SCL or A5|
|SDA||SDA or A4|
The Arduino UNO and MEGA systembaords, provide dedicated 'SCL' and 'SDA' pins. Full functionality is available through the I2C interface, now enabled by the two pin connections 'SCL' and 'SDA'.
Arduino Programming Language Library
There are many Arduino source code libraries available on the Internet for programming the DS3231 IC time and calendar.
ZS-041 Module Pinouts
- Connect the 5V or 3.3V from your Arduino or circuit here to power the module
- Ground connection; -VDC; Connect this to an Arduino systemboard GND pin.
- This is the I2C bus data pin. Connect to an Arduino UNO 'SDA' pin; Older Ardunio systemboards, use Analog I/O pin A4.
- This is the I2C bus clock pin. Connect to an Arduino UNO 'SCL' pin; older Arduino systemboard, use Analog I/O pin A5.
- The module provides a 32kHz square-wave output at this pin.
- Battery connection + VDC Input; Backup Time Power Provided By This Battery.
- From this pin comes the controllable square-wave.
- IC Reset.
Arduino is an awesome opportunity, for anyone to start easy and having fun, learning about microcontroller programming, and gaining enlightenment and sparking imagination/dreaming of things yet to come!
Build cool stuff, have fun experimenting, learning, tinkering, fixing, making new products..... Iot - Internet of Things, to Cool Toys, Models, Drones, Robots, Automating House Things, Factory Assembly Automation, Model Railroading, Hobbies, Crafts.... Have Fun - Dream.... Imagine.... Build.... Produce..... ENJOY!
Clubs, Groups, Schools, Organizations, Corporations... I Make Myself Available For Professional Speaking And Instructing Engagements.
'IoT & Embedded MAKER SPACE - MKE'
CONACT to learn about a new group in METRO Area of WI & IL - Milwaukee, Racine, Kenosha, South Eastern WI And Northern IL, space and/or spaces - Forming Now!
We Have Industrial Zoned Making Space With Outfitted Machine Shop And Lab Space Available! Multiple Dedicated Online Locations Available In Milwaukee 3rd Ward.
I am building a network of creative Makers/Doers!... Come Learn More, Join, Engage, Enjoy, Create A Solid Future Of Fun And Reward... Come Help..... Core Team Members Wanted, Or Simply be A Hangout Member Learning, Socializing/Networking... Start-Up Incubator Space, Students Tutoring Space, Retired... Hobbyists, Educators, Scientists, Researchers, Developers...
Mega Industrial Machines Building!!!! AI Development.... Super Computing.... @ Tier 1 Level. Locations looking to establish a network space, include Chicago IL.
Senoir UNIX Administrator; Computer Systems Scientist/Engineer, CIO, CTO, Available - Melbourne Vic Australia Available For Hire.
Use The Technology Wisely & Keep It Simple
Need More? Need Help? ........Software, Network, System & Data Center Builder & Developer | Development Services Available - Freelance Small Jobs; To Outsourced Long Term Service Provider Contract Labor Available.
CGI Computer Wares | EST 1979