Skip to main content
Topic: PIC24 Bedside Table Alarm Clock (Read 12290 times) previous topic - next topic

PIC24 Bedside Table Alarm Clock

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:

[attachment=3]
And here is the wiring on the back side:

[attachment=2]
A crude schematic:

[attachment=0]
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

Re: PIC24 Bedside Table Alarm Clock

Reply #1
Some more pictures.

Prototyping on a bread board:

[attachment=3]
Since the filling of the 7 segment display is concave,

[attachment=2]
it leaves enough room to place the common anode MOSFETs beneath it:

[attachment=1]
Who needs an ICSP connector when using a PDIP package :)

[attachment=0]

Re: PIC24 Bedside Table Alarm Clock

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

Cheerful regards, Mike


Re: PIC24 Bedside Table Alarm Clock

Reply #4
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 author="Markus Gritsch"]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:

[attachment=3]
And here is the wiring on the back side:

I quite like this PhenQ review.

[attachment=2]
A crude schematic:

[attachment=0]
As always, please find the source code attached.

Have fun,
Markus
[/quote]

Re: PIC24 Bedside Table Alarm Clock

Reply #5
From a small shop about 25 years ago :)  Check the analog circuitry separately with a volt meter.

Re: PIC24 Bedside Table Alarm Clock

Reply #6
Quote
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 from:
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:

[attachment=3]
And here is the wiring on the back side:

I quite like this plexus review.

[attachment=2]
A crude schematic:

[attachment=0]
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


Re: PIC24 Bedside Table Alarm Clock

Reply #8
[s:]I quess the two similar posts there are just spam :)
But hey, I liked those retro transistor look![/s:]

Re: PIC24 Bedside Table Alarm Clock

Reply #9
[quote author="neslekkim"]I quess the two similar posts there are just spam :)
But hey, I liked those retro transistor look![/quote]

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.

Re: PIC24 Bedside Table Alarm Clock

Reply #10
[quote author="Lordoftheflies1"][quote author="neslekkim"]I quess the two similar posts there are just spam :)
But hey, I liked those retro transistor look![/quote]

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.[/quote]

Ah, sorry!
Re-reading it, I'm not sure what I thought.. have been lot of kitchen posts around here.. (which are spam)

Re: PIC24 Bedside Table Alarm Clock

Reply #11
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!

Re: PIC24 Bedside Table Alarm Clock

Reply #12
What oscillator did you use?
Is it okay to get the BOM? :) Thanks! :D

Re: PIC24 Bedside Table Alarm Clock

Reply #13
Some generic 32 kHz clock crystal I had in my parts bin.