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 ads by
Signing Up














































Visit Our Store »
Go Pro Today »




Unfortunately I don't know exactly what's happening in this case, but here are my guesses:
- wiring. Is there a possibility that the LED is hooked up to the controller incorrectly or of a wrong type? There are ones with common anode and common cathode. Also LEDs have different characteristics, many require different voltage on different pins.
- the clock speed. This is a sensitive parameter, please try to change it
- can you check that all colors are working in the LED? For instance use a battery to turn the colors independently. Please refer to the LED spec for correct voltage for each color.
- Try using a multimeter or, much better, oscilloscope to verify that the microcontroller outputs correct voltage or signal on each pin connected to the LED.
These are my best guesses, unfortunately I don't remember all the details about this project, I made it a really long time ago.
Regards,
Andrey
Great project! :)
Just got a question about using the servo and servopos commands in the code.
So the servo command produces 20ms pulses / 50Hz.
So servopos 2, 75 would produce a 50Hz signal with 3.75% duty cycle
and servopos 2, 225 would produce a 50Hz signal with 11.25% duty cycle
So none of LED pins ever get to 100% DC / fully on?
Thanks
dis is my 1st time so i need ur help plz...
tell me...
Thank you
BTW, Sparkfun also sell breadboard-friendly breakout boards for DB9.
In fact if you manage to solder SMD version of PICAXE you can fit it inside easily.
I agree with "too technical" for most people, but I found a lot of very smart and skilled people here on instructables doing much more complex things. So hopefully someone will use this to make a cool present to the loved ones.
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
I didn't do full-blown testing, but it sure can run for a few hours based on tests I made.
Andrey
Sorry, I don't know that as I'm not a PICAXE guy (I like atmels more). My guess would be that exactly the same programmer will work for 12f675, you just need to check the pinout for that chip and map it to PICAXE. I could be wrong though.
Andrey
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.
Thank you for the comment and useful info.
Magic locket-2 is coming, it will be even better. I hope to have it published here soon.
Regards,
Andrey
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 #;¬)
Thanks for the floating pin note!
I also think some people will find using SOIC from the beginning, easier to than faking/baking one from PDIP :) The reason why I chose PDIP is because
- it can be easily used in breadboard prototypes
- it doesn't require any advanced soldering skills
I hope this sounds reasonable.
I don't think it is easy to fit RFID reader into this particular locket though. Even the tag that would fit it would have very limited range. Maybe it could be done with a larger piece of jewelry?
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
I also wanted this instructable to be a tutorial for PICAXE.
http://www.amazon.com/Sterling-Silver-Filigree-Marcasite-Necklace/dp/B000J4DDH4
The outside dimensions are 17.6mm x 22.5mm x 10.3mm. It's difficult to measure inside dimensions, but it is at least 25% smaller inside because of the rims.
Unfortunately PDIP-8 and 5mm LED won't fit it without removing some extra plastic.
It looks like Amazon doesn't have exactly the same one anymore, but they have very similar ones.