Step 4: Assemble the Programmer

This is how it looks like when assembled (it looks slightly different from what you saw on the breadboard diagram, but electrically it is the same).

Please note that
* The RGB LED must be of common cathode type, not common anode, not 2-contact one. This is very important
* Input voltage is approx 3V (2xAA). PICAXE-08 specs recommend 4.5V, especially for programming it, but I found it works even from 2.8V (two rechargeable batteries) just fine and you can even program it with this voltage applied.
* RGB LED is not a part of the programmer, it's for our project only. You don't have to remove it while programming the microcontroller.
* DB9 connector is F-type (the one with holes, not pins)
awesome instructable, just one concern. I have a 08m2 microcontroller, because i couldnt find a 08m. i programmed it the same way it was written here, and it went though, but it only stays on 1 color with the program installed (its a mix between r&g) and when i take off the program, it turns blue. if you could please help me figure out a solution for this it would be much appreciated.
Hi DirtyMax, <br> <br>Unfortunately I don't know exactly what's happening in this case, but here are my guesses: <br>- 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. <br>- the clock speed. This is a sensitive parameter, please try to change it <br>- 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. <br>- 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. <br> <br>These are my best guesses, unfortunately I don't remember all the details about this project, I made it a really long time ago. <br> <br>Regards, <br>Andrey
Great project!
Hi mikhalchuk, <br> <br>Great project! :) <br> <br>Just got a question about using the servo and servopos commands in the code. <br> <br>So the servo command produces 20ms pulses / 50Hz. <br> <br>So servopos 2, 75 would produce a 50Hz signal with 3.75% duty cycle <br> <br>and servopos 2, 225 would produce a 50Hz signal with 11.25% duty cycle <br> <br>So none of LED pins ever get to 100% DC / fully on? <br> <br>Thanks <br>
Cant we just use the disconnect commant and then remove the 10k resistor as a pull up.
How to connect DB-9 connector... On bread-board...??<br>dis is my 1st time so i need ur help plz...<br>tell me...<br><br>Thank you
probably the easiest way is to solder some solid (not stranded) wire to the 3 pins you need from DB9 and insert them into the breadboard. DB9s unfortunately not breadboard-friendly as is. <br>BTW, Sparkfun also sell breadboard-friendly breakout boards for DB9.
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!
Sure, check out the video. Some sanding paper and a file help to fit large chips into small lockets :)<br>In fact if you manage to solder SMD version of PICAXE you can fit it inside easily.<br><br>I agree with &quot;too technical&quot; 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.
Stunning! I can't believe this is a DIY!!!! Congrats, btw.
Thanks flyingpuppy!
This is a very cool instructable! Thank you for sharing. <br>My question is: Do you know how long the battery will last in this configuration and with the programming used to make the instrucable? <br>Thx! Davercles
Thanks Davercles,<br><br>I didn't do full-blown testing, but it sure can run for a few hours based on tests I made.<br><br>Andrey
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
sengrath, <br><br>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.<br><br>Andrey
<strong>&nbsp;</strong><br> Very nice little project!<br> 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.&nbsp;<br> 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.&nbsp; ( Who needs design rules anyway #;&not;)<br> <br> With Valentine's day coming up I may do something similar using a flat square 'Pirhana' type LED.
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.<br> 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 #;&not;)
Well, the frequency is actually set somewhere in the top of the code and it's easy to change, but I decided to stick to 8MHz hoping this will let it run longer from the tiny batteries I use. <br>Thanks for the floating pin note!
AndyGadget,<br><br>Thank you for the comment and useful info.<br><br>Magic locket-2 is coming, it will be even better. I hope to have it published here soon.<br><br>Regards,<br>Andrey
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
IHawkins, you can get all these from ebay.com except for the locket which I've got from amazon.com. But you can use any hollow jewelry with and fill it with electronics.
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!
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.
rcbailey, Thanks for the idea! <br><br>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<br>- it can be easily used in breadboard prototypes<br>- it doesn't require any advanced soldering skills<br>I hope this sounds reasonable.
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?
Hume, thanks for the great idea! <br><br>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?
nice instructable<br>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<br>you'd only need to supply it with 3V
Yeap, I mentioned those in the rtfms.com blog (it provides more information than the instructable). The &quot;slow&quot; rainbow LEDs produce similar effect, but they are not programmable, so you can't change the pattern.<br><br>I also wanted this instructable to be a tutorial for PICAXE.
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!
Found it!<br>http://www.amazon.com/Sterling-Silver-Filigree-Marcasite-Necklace/dp/B000J4DDH4<br><br>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.<br><br>Unfortunately PDIP-8 and 5mm LED won't fit it without removing some extra plastic.
That's great, thank you so much. Can't wait to give this a try.<br>
Where did you get the locket? I like the style and want to get one.
Korunks, here it is: http://www.amazon.com/Sterling-Silver-Filigree-Marcasite-Necklace/dp/B000J4DDH4
Here: http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&amp;field-keywords=locket&amp;x=0&amp;y=0 :)<br><br>It looks like Amazon doesn't have exactly the same one anymore, but they have very similar ones.
Wow, that is really pretty. Nicely done!
Thank you ChrysN!

About This Instructable


224 favorites


More by mikhalchuk: Remote Control Pleo with Wii Nunchuck Mutant Cyborg Pumpkin Halloween Costume v1.3 IGLO: Identified Glowing Object
Add instructable to: