3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.


Magic Locket

Magic Locket

This microcontroller-enhanced locket makes a great present and in this instructable you will find how to build your own. While implementing this project you will also learn all basic things required to program PICAXE-08 microcontroller and find out how to get 3 PWM channels from a microcontroller that has just one.
 
 
Remove these adsRemove these ads by Signing Up
 

Step 1Video Overview



Check out this video for a quick demo and build process overview.
« Previous StepDownload PDFView All StepsNext Step »
32 comments
Mar 3, 2012. 7:29 AMBot1398 says:
Cant we just use the disconnect commant and then remove the 10k resistor as a pull up.
Aug 3, 2011. 7:24 AMmaxsuit says:
How to connect DB-9 connector... On bread-board...??
dis is my 1st time so i need ur help plz...
tell me...

Thank you
Aug 14, 2011. 7:49 PMtriumphman says:
Don't think this will work, the locket is too small for what has to go into it. I 'm pretty sure the guts are to big. How can you prove it will work? This is also not workable to those who do not have the wherewithal to complete this project as shown. Too technical for your everyday instructable folks. Nice locket though!
Aug 16, 2011. 4:37 PMflyingpuppy says:
Stunning! I can't believe this is a DIY!!!! Congrats, btw.
Dec 13, 2011. 6:40 AMDavercles says:
This is a very cool instructable! Thank you for sharing.
My question is: Do you know how long the battery will last in this configuration and with the programming used to make the instrucable?
Thx! Davercles
Jan 12, 2012. 12:46 AMsengrath says:
Hi Mikhalchuk , I cannot find in Romania the Picaxe microchip. and it's kind of costly to get it from UK , as I only want to build one . I have at my disposal one 12f675 microchip can I use this one instead ? how will the programmer need to be changed? Thank you
Jan 23, 2012. 10:27 AMAndyGadget says:
 
Very nice little project!
The 08M isn't quite fast enough to do full control of brightness using mark / space ratios without flicker but using the servo command as you've done is a neat way around it, even though it doesn't give you control up to full brightness. 
You're actually running with a very low mark-space ratio - 0 to 2.55 ms in a 20ms frame, but you've no current limiting so it all averages out and the main thing is - It works, it fits and it's bright enough.  ( Who needs design rules anyway #;¬)

With Valentine's day coming up I may do something similar using a flat square 'Pirhana' type LED.
Jan 23, 2012. 12:55 PMAndyGadget says:
Something you don't mention anywhere is connecting pin2 of the PicAxe to 0V once it's removed from the breadboard. This is important as letting it float makes the micro prone to random resets.
Watching the video more closely I see you do mention shimmering. If that's a problem then upping the frequency (setfreq M8) would reduce it. (But you probably know that already #;¬)
Jul 18, 2011. 9:56 PMIHawkins says:
Awesome idea. I live in Perth WA and wouldn't have a clue where to get all of these parts. Do you make and sell these? If so can I get 2 of you
Aug 4, 2011. 8:57 AMbenjamin.singleton says:
Could you tell us the name of the locket you got Amazon, I'd love to do this as a present for a friend, and it'd be easier if I didn't have to spend most of the time locket-shopping ;) Thanks so much for the awesome instructable!
Jul 14, 2011. 3:55 PMrcbailey says:
The Picaxe 08M is also available in a Surface Mount version that is slightly smaller. Careful soldering directly to the leads would reduce the overall size further.
Jul 14, 2011. 10:48 AMHume says:
This is a great project! I wonder if it would be possible to incorporate RFID into it, so that you could make two lockets that only glow in the presence of the other. Do you think that would be doable?
Jul 9, 2011. 5:20 PMgodofal says:
nice instructable
you could get it even smaller by using rainbow LED (search it on ebay) those have a chip inside them to make them fade between colours automatically
you'd only need to supply it with 3V
Jul 8, 2011. 10:43 PMrondadon says:
Can you give the dimensions for the locket you used, in millimeters? Like you said, the one you used isn't available on Amazon now and it's hard to tell what size will fit the components. Thanks!
Jul 9, 2011. 9:46 AMrondadon says:
That's great, thank you so much. Can't wait to give this a try.
Jul 8, 2011. 5:34 AMKorunks says:
Where did you get the locket? I like the style and want to get one.
Jul 8, 2011. 4:30 PMChrysN says:
Wow, that is really pretty. Nicely done!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
49
Followers
9
Author:mikhalchuk(RTFMS.com : mods, hacks, rtfms)