Paul MacDougal Triembed.org Dec 11, 2017

Slides:



Advertisements
Similar presentations
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
Advertisements

Programmable Interval Timer
Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
Lecture 9: D/A and A/D Converters
Introduction.
Arduino John Marcoux Christopher Lesch Thomas Dodge Unless otherwise noted, all information and pictures came from:
PIC microcontrollers. PIC microcontrollers come in a wide range of packages from small chips with only 8 pins and 512 words of memory all the way up to.
Little arduino microcontrollers Meghan Jimenez 12 February 2014.
Programming ATtinys Paul MacDougal 7/8/13.
Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
System Clocks.
EE 446 Project Assignment Top Design Sensor Components Pin Assignment and Configuration Completed Physical Setup Project Tasks.
MOBILE OPERATING ROBOT ON EMBEDDED SYSTEM
Embedded System Design Laboratory October 11, 2002Stanford University - EE281 Lecture #4#1 Lecture #4 Outline Announcements Project Proposal AVR Processor.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
LSU 09/19/2013BalloonSat Development Board1 The BalloonSat Development Board Programming Unit, Lecture 1.
ECS642U Embedded Systems Digital I/O William Marsh.
Floyd, Digital Fundamentals, 10 th ed Slide 1 Digital Fundamentals Tenth Edition Floyd © 2008 Pearson Education Chapter 1.
Held AT EDA AND EMBEDDED SYSTEM
Timer Timer is a device, which counts the input at regular interval (δT) using clock pulses at its input. The counts increment on each pulse and store.
MCS51 - lecture 6. Lecture 6 1/32 Extending MCS51 system Built-in peripherals MCS51 family.
Midterm Presentation Music Alarm Clock. Craig Bilberry Team Leader Electrical Engineering Layout and Design Atomic Clock Signal Will Kalish Electrical.
FM6124-QG Summary Automatic Event Monitor Monitors 12 digital inputs Continuous monitoring for state changes Edge detection Micro Peripheral I2C interface.
I 2 C I/O Expanders 9520/9540/ CY8C9520 / CY8C9540 / CY8C9560 I 2 C Port Expanders CY8C9520 / CY8C9540 / CY8C / 40 / 60 individually configurable.
Q Cypress Roadmap: Nonvolatile RAM Owner: TUPNonvolatile RAM Roadmap Rev *KBUM: RHOE.
Tiltmeter, Compass,Temperature modules for the PPM.
Networked Embedded Systems Pengyu Zhang & Sachin Katti EE107 Spring 2016 Lecture 4 Timers and Interrupts.
Electronic instrumentation Digitization of Analog Signal in TD
As a part of ALA in the subject of MCI ( ) subject faculty:Hiren Patel Sir Presentation on rtc interfacing with atmega32 using ds1307 By:selva kumar.r.
Ultra Trace Cargo Monitoring Final Report Kevin Kurtz - ECE Jacob Klapheke - ECE Nick Searcy - ECE Nick Wood - ME Jason Guelda - ME.
Mobile phone keypad sensed password entry for door opening.
Ultra Trace Cargo Monitoring Kevin Kurtz - ECE Jacob Klapheke - ECE Nick Searcy - ECE Nick Wood - ME Jason Guelda - ME.
Cypress Roadmap: Nonvolatile RAMs Q
SUBMITTED BY EDGEFX TEAM
EE 478 Final project Alex Ching, Kuei-Hsuan Lu, Wenjie Zheng
I2C Protocol and RTC Interfacing
ARDUINO BASED AUTOMATIC TEMPERATURE BASED FAN SPEED CONTROLLER
Serial Communication Buses: I2C and SPI
ABSTRACT The controller continuously polls the temperature with certain regular time intervals and displays over the 7_segment display The temperature.
SCADA for Remote Industrial Plant
MGITER,NAVSARI. AVR MICROCONTROLLER AND INTERFACING
ECE 353 Introduction to Microprocessor Systems
SUBMITTED BY EDGEFX TEAM
DIGITAL CALCULATOR USING 8051
OBJECTIVE AND FEATURES:
I2C Protocol and RTC Interfacing
I2C PROTOCOL SPECIFICATION
The Arduino Microcontroller: Atmel AVR Atmega 328
Week 5: Microcontrollers
EEPROM Comparison – Parallel or Serial
ECET 340 Education for Service/tutorialrank.com
8051 Single Board Computer (SBC) Version 1.0
Language Reference Functions Digital I/O Analog I/O
AT28C17 EEPROM By: Ethan Peterson.
Timers.
Programmable Interval timer 8253 / 8254
I2C Protocol and RTC Interfacing
CSCI1600: Embedded and Real Time Software
Programmable Interval timer 8253 / 8254
I2C Protocol and RTC Interfacing
CSCI1600: Embedded and Real Time Software
Wireless Embedded Systems
CHAPTER HARDWARE CONNECTION.
Programmable Interval Timer
Arduino म्हणजे काय?.
The BalloonSat Development Board
Introduction to arduino
Presentation transcript:

Paul MacDougal Triembed.org Dec 11, 2017 DS3231 Paul MacDougal Triembed.org Dec 11, 2017

DS3231 “Extremely Accurate I2C-Integrated RTC/TCXO/Crystal” Real Time Clock Temperature compensated Internal crystal Supports battery backup SOIC 16 package Made by Maxim Integrated $8.35 qty 1 at Digikey

Functions Clock – provides you with the time and date. Square wave output(s) 1 Hz, 1k, 4k, 8k Hz 32k Hz Alarms to interrupt your Arduino code Temperature

Breakout Boards Also has 32kB of I2C EEPROM $5.99 Amazon Prime

Breakout Boards $12.28 for qty 5 This is what I purchased. When they arrived, I found out that the interrupt pin was not wired to the breakout pins  But, one of the breakout pins is NC and with a little rework, I connected the interrupt pin to the NC. $12.28 for qty 5

Register map Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Seconds   Seconds Clock 1 Minutes 2 Hours 3 Day 4 Date 5 Month 6 Year 7 Alarm1 8 9 10 Day/Date 11 Alarm2 12 13 14 Control 15 Status 16 Aging 17 Temperature 18

Arduino Library There are many available libraries. I used the one from Adafruit https://github.com/adafruit/RTClib/archive/master.zip I did make some changes to allow access to internal I2C read/write routines. I removed the keyword “static” from the definition of the two I2C access routines.

Alarm1 x1111 Alarm once per second x1110 Alarm when seconds match Alarm when minutes and seconds match X1000 Alarm when hours, minutes, and seconds match 00000 Alarm when date, hours, minutes, and seconds match 10000 Alarm when day, hours, minutes, and seconds match For me, the real reason to use one of these is to access the alarm functions.

Alarm2 x111 Alarm once per minute x110 Alarm when minutes match x100 Alarm when hours and minutes match 0000 Alarm when date, hours, and minutes match 1000 Alarm when day, hours, and minutes match

Examples Example 1 – read the time Example 2 – enable square wave output Example 3 – read the temperature Example 4 – use alarm2 to wake every minute Example 5 – use alarm1 to wake every 42 seconds Example 6 – set the time

Backup Slides

From the datasheet: ● Highly Accurate RTC Completely Manages All Timekeeping Functions • Real-Time Clock Counts Seconds, Minutes, Hours Date of the Month, Month, Day of the Week, and Year • Leap-Year Compensation Valid Up to 2100 • Accuracy ±2ppm from 0°C to +40°C • Accuracy ±3.5ppm from -40°C to +85°C • Digital Temp Sensor Output: ±3°C Accuracy • Register for Aging Trim • RST Output/Pushbutton Reset Debounce Input • Two Time-of-Day Alarms • Programmable Square-Wave Output Signal ● Simple Serial Interface Connects to Most Microcontrollers • Fast (400kHz) I2C Interface ● Battery-Backup Input for Continuous Timekeeping • Low Power Operation Extends Battery-Backup Run Time • 3.3V Operation ● Operating Temperature Ranges: • Commercial (0°C to +70°C) and Industrial (-40°C to +85°C) ● Underwriters Laboratories® (UL) Recognized