All Projects → Zanduino → MCP7940

Zanduino / MCP7940

Licence: GPL-3.0 license
Arduino Library to access the MCP7940M, MCP7940N and MCP7940x Real-Time chips

Programming Languages

C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to MCP7940

MD DS3231
DS3231 Real Time Clock Library
Stars: ✭ 29 (+0%)
Mutual labels:  alarm, clock, rtc
ESP32Time
An Arduino library for setting and retrieving internal RTC time on ESP32 boards
Stars: ✭ 120 (+313.79%)
Mutual labels:  arduino-library, rtc
SimpleStepper
A bare minimum but really fast and simple stepper library for Arduino.
Stars: ✭ 21 (-27.59%)
Mutual labels:  arduino-library, interrupt
miniboot
🏗️ An I2C bootloader for Arduino.
Stars: ✭ 62 (+113.79%)
Mutual labels:  i2c, arduino-library
Eth Alarm Clock Dapp
Chronos - Ethereum Alarm Clock DApp
Stars: ✭ 42 (+44.83%)
Mutual labels:  alarm, clock
MCP79412RTC
Arduino library for the Microchip MCP79411/12 Real-Time Clock/Calendar
Stars: ✭ 20 (-31.03%)
Mutual labels:  arduino-library, rtc
PCF8591 library
Library to use i2c analog IC with arduino and esp8266. Can read analog value and write analog value with only 2 wire (perfect for ESP-01).
Stars: ✭ 24 (-17.24%)
Mutual labels:  i2c, arduino-library
new-clock
The best clock app there is
Stars: ✭ 24 (-17.24%)
Mutual labels:  alarm, clock
arduino-mcp23017
Complete support of MCP23017
Stars: ✭ 44 (+51.72%)
Mutual labels:  i2c, arduino-library
rpi
Microcontroller projects (RPi, Arduino, ATTiny85, ESP, Pico, STM8/32)
Stars: ✭ 76 (+162.07%)
Mutual labels:  i2c, rtc
BME680
Arduino Library to access the Bosch BME680 - temperature, pressure, humidity and gas sensor
Stars: ✭ 30 (+3.45%)
Mutual labels:  i2c, arduino-library
Rusty Clock
An alarm clock with environment stats in pure bare metal embedded rust
Stars: ✭ 269 (+827.59%)
Mutual labels:  alarm, clock
Simple Clock
Combination of a beautiful clock with widget, alarm, stopwatch & timer, no ads
Stars: ✭ 257 (+786.21%)
Mutual labels:  alarm, clock
ardusamber
Desamber time Arduino corporealization
Stars: ✭ 20 (-31.03%)
Mutual labels:  clock, arduino-library
psychoclock
ESP8266 alarm clock with 8x32 LED display, NTP time, and MOD/WAV music alarms
Stars: ✭ 35 (+20.69%)
Mutual labels:  alarm, clock
SoftWire
Software I2C implementation for Arduino and other Wiring-type environments
Stars: ✭ 105 (+262.07%)
Mutual labels:  i2c, arduino-library
NeoPixel-60-Ring-Clock
Time displayed as a series of colored arcs on a 60 Ring NeoPixel
Stars: ✭ 15 (-48.28%)
Mutual labels:  clock, rtc
Aospdeskclock
Fork of aosp deskclock: alarm,clock, timer,stopwatch
Stars: ✭ 28 (-3.45%)
Mutual labels:  alarm, clock
TimerInterrupt
This library enables you to use Interrupt from Hardware Timers on an Arduino, such as Nano, UNO, Mega, etc. It now supports 16 ISR-based timers, while consuming only 1 hardware Timer. Timers' interval is very long (ulong millisecs). The most important feature is they're ISR-based timers. Therefore, their executions are not blocked by bad-behavin…
Stars: ✭ 76 (+162.07%)
Mutual labels:  arduino-library, interrupt
SerialTransfer
Arduino library to transfer dynamic, packetized data fast and reliably via Serial, I2C, or SPI
Stars: ✭ 273 (+841.38%)
Mutual labels:  i2c, arduino-library

License: GPL v3 Build Format Wiki Doxygen arduino-library-badge

MCP7940 library

Arduino library for accessing the Microchip MCP7940 real time clock. There are two versions of the RTC, MCP7940M and MCP7940N, which differ only in that the MCP7940N has a battery backup supply pin and keeps the clock running on power failure. The MCP7940N also has additional registers which store the timepoint of power failure and point in time when power was restored. In addition there are 3 more RTC chips, the MCP79400, MCP79401 and MCP79402 which are backwards compatible but include a special EEPROM storage for EUI address and these are also supported by this library

Overview

The MCP7940M, MCP7940N and MCP7940x datasheets describe the chip in detail. While there is no breakout board available for this RTC at the present time, it is not difficult to build into a project. The MCP7940 is available as a PDIP 8 pin which allows for easy use on a breadboard and the only additional parts necessary are a 32.768kHz crystal with 2 small capacitors (~6pF, depends upon circuit capacitance) and some pull-up resistors for the I2C data lines as well as for the multifunction pin, if that is to be used.

Features

Apart from performing as a real-time clock, the MCP4790 has 64 Bytes of SRAM storage available and features 2 separate alarms that can be set to be recurring or a single use. The alarm state can be checked using library functions or can pull down the the MFP (multi-function pin) for a hardware interrupt or other action. The MCP7940 allows for software trimming and the library has functions which support fine-tuning the RTC to increase accuracy.

Description

A detailed library description along with further details are available at the GitHub MCP7940 Wiki. This includes wiring information and sample sketches that illustrate the library and it's functionality.





Examples

Several example sketches exist and are documented on the Wiki pages

Example Program Description
SetAndCalibrate Set and Calibrate the RTC using various methods
SetAlarms Set Alarm 0 and Alarm 1
SquareWave Output a Square Wave
TestBatteryBackup Show how the battery backup can be used
AccessMemory Read and Write to the MCP7940 memory
RegressionTests Run regression test after changing library code

Documentation

The library and example programs have Doxygen documentation, whose output can be found at Doxygen Documentation

Supported Hardware

The following configurations have been compiled and/or tested. Travis-CI is used for automated continuous integration and testing.

Name Tested CPU Comments
Arduino UNO Yes ATMega328P
Arduino Mega Yes ATMega 2560
Arduino Micro Yes ATMega32U4
Arduino 1280 Yes ATMega1280
Arduino 328 Yes ATMega328
Arduino 168 Yes ATMega168

Zanshin Logo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].