Dangerous Prototypes

In development => Project logs => Topic started by: Markus Gritsch on October 08, 2015, 10:10:59 am

Title: PIC24 Bedside Table Alarm Clock
Post by: Markus Gritsch on October 08, 2015, 10:10:59 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 (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 (http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=2126)
[2] viewtopic.php?f=56&t=2784 (http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=2784)
[3] viewtopic.php?f=56&t=6592 (http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=6592)
[4] viewtopic.php?f=56&t=7467 (http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=7467)
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: Markus Gritsch on October 08, 2015, 10:21:11 am
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]
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: McLaren on October 13, 2015, 12:52:36 pm
Very nice, Markus.  Where could someone source that miniature clock display?

Cheerful regards, Mike
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: Markus Gritsch on October 13, 2015, 01:26:26 pm
I used this one from a distributor in Germany:
http://www.pollin.de/shop/dt/ODQ4ODc4OT ... Digit.html (http://www.pollin.de/shop/dt/ODQ4ODc4OTk-/Bauelemente_Bauteile/Aktive_Bauelemente/Displays/LED_Anzeige_LITEON_LTC_2623G_4_Digit.html)
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: Archers on December 30, 2015, 12:05:19 pm
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 (http://https://skinnyexpress.com/phenq-review) review.

[attachment=2]
A crude schematic:

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

Have fun,
Markus
[/quote]
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: Markus Gritsch on December 30, 2015, 12:21:01 pm
From a small shop about 25 years ago :)  Check the analog circuitry separately with a volt meter.
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: Lordoftheflies1 on July 08, 2016, 09:11:28 am
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 (http://http://fatburnerdepot.com/review/plexus-slim-review-does-it-work/) 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
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: dpropicweb on July 13, 2016, 09:02:10 am
eBay photo transistors...

http://www.ebay.com/sch/i.html?_from=R4 ... r&_sacat=0 (http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2050601.m570.l1313.TR0.TRC0.H0.Xphoto+transistor.TRS0&_nkw=photo+transistor&_sacat=0)
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: neslekkim on July 13, 2016, 01:15:09 pm
[s:]I quess the two similar posts there are just spam :)
But hey, I liked those retro transistor look![/s:]
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: Lordoftheflies1 on July 15, 2016, 06:26:07 am
[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.
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: neslekkim on July 15, 2016, 08:25:08 am
[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)
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: Lordoftheflies1 on July 15, 2016, 11:25:17 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!
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: iramsiol on December 18, 2016, 11:30:53 am
What oscillator did you use?
Is it okay to get the BOM? :) Thanks! :D
Title: Re: PIC24 Bedside Table Alarm Clock
Post by: Markus Gritsch on December 18, 2016, 04:20:16 pm
Some generic 32 kHz clock crystal I had in my parts bin.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01352116856session_write_close ( )...(null):0
20.01382248448ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01382249224Database_MySQL->query( ).../DatabaseHandler.php:119
40.05892387960Database_MySQL->error( ).../Db-mysql.class.php:273