Final version, with changing analogue clock colours, Friday 11:20am

Dependencies:   MMA8451Q SPI_TFT_ILI9341 TFT_fonts mbed

Smart clock by Duncan and Kieran

Photo

http://www.imgur.com/SiyOshx.jpg

Equipment

  • PCB: FRDM-KL25Z
  • TFT Color Display: MI0283QT-9A
  • Buzzer
  • 3 x buttons
  • 3 x 2kΩ resistors and 1 x 100Ω resistor
  • Stripboard
  • Wires (stranded is preferable due to their flexibility)
  • USB to Mini-USB cable, and computer

Setup

PCB to TFT (Output)

FRDM-KL25ZMI0283QT-9A
P3V33.3V, IM1, IM2, IM3
GNDRD, IM0, LEDK
PTD5CS
PTD1RS
PTD0RST
PTD2SDI
PTD3SDO
PTA13WR
P5V_USB through 100Ω resistor (approx. 20mA)LEDA

The buzzer should be connected between PTA12 and ground.

Note: The resistance between P5V_USB and LEDA can be reduced to increase the brightness of the screen. However, resistors lower than 30Ω have not been tested, and may result in the current causing damage to the PCB.

PCB to Buttons (Inputs)

FRDM-KL25ZInput
PTA5Minute button
PTC8Hour button
PTC9Time change button - toggles between changing the alarm time and the clock time

Each button should be connected in series with a 2kΩ resistor between 3.3V and 0V, so that pressing the button switches between these two voltages.

Features

  • A digital clock, displayed in 24-hour format
  • An analogue clock, displaying the time in standard 12-hour format
  • Alarm can be changed using the minute and hour buttons
  • Time can be changed by holding the third button
  • Alarm will sound for one minute at the displayed time
  • Putting the alarm on its side will snooze the alarm if the alarm is going off (or just disable it if the alarm is not sounding)

History

Final version, with changing analogue clock colours, Friday 11:20am default tip

2017-05-26, by scat6490 [Fri, 26 May 2017 10:20:25 +0000] rev 9

Final version, with changing analogue clock colours, Friday 11:20am


Complete clock, with small final changes, Friday 11:03am

2017-05-26, by scat6490 [Fri, 26 May 2017 10:03:27 +0000] rev 8

Complete clock, with small final changes, Friday 11:03am


Working clock with accelerometer to snooze or disable alarm, Friday 10:45am

2017-05-26, by scat6490 [Fri, 26 May 2017 09:48:57 +0000] rev 7

Working clock with accelerometer to snooze or disable alarm, Friday 10:45am


Working clock, with everything, Friday 10:13pm

2017-05-26, by scat6490 [Fri, 26 May 2017 09:15:06 +0000] rev 6

Working clock, with everything, Friday 10:13pm


Display, clock, alarm, time changing, Wednesday 3:55pm; Commented and small changes

2017-05-24, by scat6490 [Wed, 24 May 2017 14:57:37 +0000] rev 5

Display, clock, alarm, time changing, Wednesday 3:55pm; Commented and small changes


Display, clock, alarm, time changing, Wednesday 2:50pm

2017-05-24, by scat6490 [Wed, 24 May 2017 13:50:26 +0000] rev 4

Display, clock, alarm, time changing, Wednesday 2:50pm


Tuesday 5pm (to delete)

2017-05-23, by scat6490 [Tue, 23 May 2017 15:50:45 +0000] rev 3

Tuesday 5pm (to delete)


Screen showing time, with alarm at 9:00, Tuesday 4:05pm

2017-05-23, by scat6490 [Tue, 23 May 2017 15:05:29 +0000] rev 2

Screen showing time, with alarm at 9:00, Tuesday 4:05pm


Screen showing time, Tuesday 4:00pm

2017-05-23, by scat6490 [Tue, 23 May 2017 14:58:33 +0000] rev 1

Screen showing time, Tuesday 4:00pm


Working display (Tuesday 3:45pm)

2017-05-23, by scat6490 [Tue, 23 May 2017 14:45:54 +0000] rev 0

Working display (Tuesday 3:45pm)