
www.keyestudio.com
224
Project 21: What time is it?
Overview
In this project, we will show you how to display the time and date.
Component Required:
EASY plug control board*1
EASY plug DS3231 Clock Module*1
RJ11 cable*1
USB cable*1
Component Introduction:
EASY plug DS3231 Clock Module
The DS3231 is a low-cost, extremely accurate I2C real-time clock (RTC)
with an integrated temperature-compensated crystal oscillator (TCXO) and
crystal.
A real-time clock (RTC) is a computer clock (most often in the form of an
integrated circuit) that keeps track of the current time.
It integrated with a battery input, which can maintain accurate timekeeping
when power off. The integrated crystal resonator ensures the accuracy of
clock. So this RTC solution should be worth to try.
Temperature range: -40
℃
to +85
℃
Timing accuracy: about ± 5ppm
Output: 1Hz and 32.768kHz
High speed (400kHz), I2C serial bus
Supply voltage: 3.3V to 5.5V
Output Level: TTL level
Summary of Contents for EASY PLUG Ultimate Starter Kit
Page 1: ...keyestudio www keyestudio com EASY PLUG Ultimate Starter Kit For Arduino STEM EDU...
Page 8: ...5 28 USB cable 1...
Page 10: ...7...
Page 12: ...9 2 2 In Out Block...
Page 17: ...14 2 3 Control Block...
Page 23: ...20 2 4 Math Block...
Page 28: ...25 2 5 Text Block...
Page 31: ...28 2 6 List Block...
Page 34: ...31 2 7 Logic Block...
Page 37: ...34 2 8 Variable Block...
Page 39: ...36...
Page 40: ...37 2 9 SerialPort Block...
Page 44: ...41...
Page 45: ...42...
Page 46: ...43 2 10 Communicate Block...
Page 49: ...46...
Page 50: ...47 2 11 Sensor Block...
Page 53: ...50 2 12 Actuator Block...
Page 56: ...53 2 13 Monitor Block...
Page 60: ...57 2 14 Functions Block...
Page 63: ...60...
Page 64: ...61...
Page 79: ...76 Note to avoid errors the COM Port should keep the same as the Ports shown on Device Manager...
Page 80: ...77...
Page 85: ...82...
Page 87: ...84 2 Open the Program Click Open to open your first program Hello World Follow the steps below...
Page 88: ...85 Or you can double click or directly drag the program to open Hello World Then you...
Page 89: ...86 should see the Blocks code shown below...
Page 90: ...87 After that select the proper Board and Port Upload the code to your EASY Plug control board...
Page 95: ...92 Example 2 LED Blink Test Code What You Should See...
Page 101: ...98...
Page 103: ...100...
Page 106: ...www keyestudio com 103 Upload the Code...
Page 108: ...www keyestudio com 105...
Page 112: ...www keyestudio com 109...
Page 115: ...www keyestudio com 112...
Page 117: ...www keyestudio com 114 Upload the Code...
Page 122: ...www keyestudio com 119 Open the monitor it will print out the value read from the touch sensor...
Page 125: ...www keyestudio com 122...
Page 138: ...www keyestudio com 135 Upload the Code What You Should See...
Page 147: ...www keyestudio com 144 Upload the Code...
Page 148: ...www keyestudio com 145 What You Should See...
Page 153: ...www keyestudio com 150 What You Should See...
Page 157: ...www keyestudio com 154...
Page 158: ...www keyestudio com 155 Controlling Servo Angle Hookup Guide Test Code...
Page 162: ...www keyestudio com 159 Upload the Code What You Should See...
Page 164: ...www keyestudio com 161...
Page 167: ...www keyestudio com 164 Upload the Code What You Should See...
Page 170: ...www keyestudio com 167 Controlling Fan Motor Hookup Guide Test Code...
Page 172: ...www keyestudio com 169...
Page 173: ...www keyestudio com 170...
Page 176: ...www keyestudio com 173 What You Should See...
Page 178: ...www keyestudio com 175 Controlling LED Lights Hookup Guide Test Code...
Page 180: ...www keyestudio com 177 Z axis will control the LED light connected to D7...
Page 181: ...www keyestudio com 178...
Page 184: ...www keyestudio com 181 What You Should See...
Page 186: ...www keyestudio com 183...
Page 187: ...www keyestudio com 184 Controlling RGB Flash Hookup Guide Upload the Code...
Page 189: ...www keyestudio com 186...
Page 190: ...www keyestudio com 187...
Page 195: ...www keyestudio com 192...
Page 198: ...www keyestudio com 195 What You Should See...
Page 202: ...www keyestudio com 199...
Page 206: ...www keyestudio com 203...
Page 209: ...www keyestudio com 206...
Page 213: ...www keyestudio com 210...
Page 216: ...www keyestudio com 213...
Page 220: ...www keyestudio com 217 What You Should See...
Page 224: ...www keyestudio com 221...
Page 226: ...www keyestudio com 223...
Page 228: ...www keyestudio com 225 Connect It Up Upload the Code...
Page 231: ...www keyestudio com 228 RJ11 cable Upload the Code What You Should See...