PIC24 Bedside Table Alarm Clock

A place to document your own projects.

PIC24 Bedside Table Alarm Clock

Postby Markus Gritsch » Thu Oct 08, 2015 3:10 am

Another year, another clock, but for the first time for my alarm clocks [1][2][3] I am not using an MSP430 but a PIC24 instead. Standby current is with 5.5 µA only slightly higher than that of my MSP430 based ones. Time keeping is done using the RTCC pheripheral, which I also used for the first time.

It can be seen in action in this YouTube video: https://youtu.be/I8K4sLvQby4
Friendly green digits :)

And of course it has a LiFePO4 battery on its back, being charged every few years using my new USB charger [4].

A photo transistor is also included to dim the display in the dark. Much nices to the eyes when checking what time it is in the middle of the night.

Here's a picture from the front side:

IMG_4912_1600x1200_85.jpg

And here is the wiring on the back side:

IMG_4913_1600x1200_85.jpg

A crude schematic:

Schematic_1600x1200_85.jpg

As always, please find the source code attached.

Have fun,
Markus

[1] viewtopic.php?f=56&t=2126
[2] viewtopic.php?f=56&t=2784
[3] viewtopic.php?f=56&t=6592
[4] viewtopic.php?f=56&t=7467
Attachments
segment_clock.zip
(478.88 KiB) Downloaded 722 times
Last edited by Markus Gritsch on Mon Oct 12, 2015 12:44 am, edited 3 times in total.
User avatar
Markus Gritsch
Sr. Member
Sr. Member
 
Posts: 297
Joined: Tue Feb 09, 2010 6:54 am

Re: PIC24 Bedside Table Alarm Clock

Postby Markus Gritsch » Thu Oct 08, 2015 3:21 am

Some more pictures.

Prototyping on a bread board:

IMG_4804_1600x1200_85.jpg

Since the filling of the 7 segment display is concave,

IMG_4803_1600x1200_85.jpg

it leaves enough room to place the common anode MOSFETs beneath it:

IMG_4807_1600x1200_85.jpg

Who needs an ICSP connector when using a PDIP package :)

IMG_4909_1600x1200_85.jpg
User avatar
Markus Gritsch
Sr. Member
Sr. Member
 
Posts: 297
Joined: Tue Feb 09, 2010 6:54 am

Re: PIC24 Bedside Table Alarm Clock

Postby McLaren » Tue Oct 13, 2015 5:52 am

Very nice, Markus. Where could someone source that miniature clock display?

Cheerful regards, Mike
McLaren
Newbie
Newbie
 
Posts: 17
Joined: Sat Mar 10, 2012 4:53 pm
Location: Michigan, USA

Re: PIC24 Bedside Table Alarm Clock

Postby Markus Gritsch » Tue Oct 13, 2015 6:26 am

I used this one from a distributor in Germany:
http://www.pollin.de/shop/dt/ODQ4ODc4OT ... Digit.html
User avatar
Markus Gritsch
Sr. Member
Sr. Member
 
Posts: 297
Joined: Tue Feb 09, 2010 6:54 am

Re: PIC24 Bedside Table Alarm Clock

Postby Archers » Wed Dec 30, 2015 6:05 am

This is great Markus, I've always wanted to make my own alarm clock. I've been giving this a go over the past few days but my clock doesn't dim in the dark. Maybe my photo transistor is broken. Where did you get yours?

Markus Gritsch wrote:Another year, another clock, but for the first time for my alarm clocks [1][2][3] I am not using an MSP430 but a PIC24 instead. Standby current is with 5.5 µA only slightly higher than that of my MSP430 based ones. Time keeping is done using the RTCC pheripheral, which I also used for the first time.

It can be seen in action in this YouTube video:
Friendly green digits :)

And of course it has a LiFePO4 battery on its back, being charged every few years using my new USB charger [4].

A photo transistor is also included to dim the display in the dark. Much nices to the eyes when checking what time it is in the middle of the night.

Here's a picture from the front side:

IMG_4912_1600x1200_85.jpg

And here is the wiring on the back side:

I quite like this PhenQ review.

IMG_4913_1600x1200_85.jpg

A crude schematic:

Schematic_1600x1200_85.jpg

As always, please find the source code attached.

Have fun,
Markus
Last edited by Archers on Sat Apr 09, 2016 5:39 am, edited 2 times in total.
Archers
Newbie
Newbie
 
Posts: 1
Joined: Wed Dec 30, 2015 6:01 am

Re: PIC24 Bedside Table Alarm Clock

Postby Markus Gritsch » Wed Dec 30, 2015 6:21 am

From a small shop about 25 years ago :) Check the analog circuitry separately with a volt meter.
User avatar
Markus Gritsch
Sr. Member
Sr. Member
 
Posts: 297
Joined: Tue Feb 09, 2010 6:54 am

Re: PIC24 Bedside Table Alarm Clock

Postby Lordoftheflies1 » Fri Jul 08, 2016 2:11 am

This is great Markus, I've always wanted to make my own alarm clock. I've been giving this a go over the past few days but my clock doesn't dim in the dark. Maybe my photo transistor is broken. Where did you get yours?

[quote=]Another year, another clock, but for the first time for my alarm clocks [1][2][3] I am not using an MSP430 but a PIC24 instead. Standby current is with 5.5 µA only slightly higher than that of my MSP430 based ones. Time keeping is done using the RTCC pheripheral, which I also used for the first time.

It can be seen in action in this YouTube video:
Friendly green digits :)

And of course it has a LiFePO4 battery on its back, being charged every few years using my new USB charger [4].

A photo transistor is also included to dim the display in the dark. Much nices to the eyes when checking what time it is in the middle of the night.

Here's a picture from the front side:

IMG_4912_1600x1200_85.jpg

And here is the wiring on the back side:

I quite like this plexus review.

IMG_4913_1600x1200_85.jpg

A crude schematic:

Schematic_1600x1200_85.jpg

As always, please find the source code attached.

Have fun,
Markus


Markus, this is the perfect homemade gift for my wife's birthday later this month! (She's an electric engineer). I think I'll use an MSP430 but I don't know where to find a photo transistor... I'm searching eBay to little avail
Lordoftheflies1
Newbie
Newbie
 
Posts: 3
Joined: Fri Jul 08, 2016 2:01 am

Re: PIC24 Bedside Table Alarm Clock

Postby dpropicweb » Wed Jul 13, 2016 2:02 am

dpropicweb
Sr. Member
Sr. Member
 
Posts: 330
Joined: Thu Apr 22, 2010 5:44 am
Location: The LAN Downunder

Re: PIC24 Bedside Table Alarm Clock

Postby neslekkim » Wed Jul 13, 2016 6:15 am

I quess the two similar posts there are just spam :)
But hey, I liked those retro transistor look!
Last edited by neslekkim on Fri Jul 15, 2016 1:26 am, edited 1 time in total.
neslekkim
Sr. Member
Sr. Member
 
Posts: 349
Joined: Tue Sep 11, 2012 5:36 am
Location: Oslo, Norway

Re: PIC24 Bedside Table Alarm Clock

Postby Lordoftheflies1 » Thu Jul 14, 2016 11:26 pm

neslekkim wrote:I quess the two similar posts there are just spam :)
But hey, I liked those retro transistor look!


Well considering i've already handbuilt my alarm clock and gave it as a gift to my wife, I can hardly say I don't continue through with what I say I will do.

Thanks buddy, kinder words should be chosen next time.
Lordoftheflies1
Newbie
Newbie
 
Posts: 3
Joined: Fri Jul 08, 2016 2:01 am

Re: PIC24 Bedside Table Alarm Clock

Postby neslekkim » Fri Jul 15, 2016 1:25 am

Lordoftheflies1 wrote:
neslekkim wrote:I quess the two similar posts there are just spam :)
But hey, I liked those retro transistor look!


Well considering i've already handbuilt my alarm clock and gave it as a gift to my wife, I can hardly say I don't continue through with what I say I will do.

Thanks buddy, kinder words should be chosen next time.


Ah, sorry!
Re-reading it, I'm not sure what I thought.. have been lot of kitchen posts around here.. (which are spam)
neslekkim
Sr. Member
Sr. Member
 
Posts: 349
Joined: Tue Sep 11, 2012 5:36 am
Location: Oslo, Norway

Re: PIC24 Bedside Table Alarm Clock

Postby Lordoftheflies1 » Fri Jul 15, 2016 4:25 pm

I'm retired now and am living in Cancun, Mx, so when i searched eBay, i had it selected to only show sellers who ship to Cancun, MX. That's why I didn't see hardly any sellers lol

Thank you for the link, I ended up breaking down some old electronics from the pawn shop down the road to get the pieces i needed

We're very happy living down south but it's such a hassle to get products and items I need for my hobbies!
Lordoftheflies1
Newbie
Newbie
 
Posts: 3
Joined: Fri Jul 08, 2016 2:01 am

Re: PIC24 Bedside Table Alarm Clock

Postby iramsiol » Sun Dec 18, 2016 5:30 am

What oscillator did you use?
Is it okay to get the BOM? :) Thanks! :D
iramsiol
Newbie
Newbie
 
Posts: 1
Joined: Sun Dec 18, 2016 5:28 am

Re: PIC24 Bedside Table Alarm Clock

Postby Markus Gritsch » Sun Dec 18, 2016 10:20 am

Some generic 32 kHz clock crystal I had in my parts bin.
User avatar
Markus Gritsch
Sr. Member
Sr. Member
 
Posts: 297
Joined: Tue Feb 09, 2010 6:54 am


Return to Project logs