It's a bit overkill but a PIC18F24K22 does RGB led's with no hassle, using 3 of the CCP modules.
And in the UK its only £1.98, 4pence more than a 16F628. I have an example that i can post if you want it.
It's a bit overkill but a PIC18F24K22 does RGB led's with no hassle, using 3 of the CCP modules.
And in the UK its only £1.98, 4pence more than a 16F628. I have an example that i can post if you want it.
Demon: Yes I had thought of that although perhaps I should have been a little less hasty. I probably don't mean background, I realize that I can simply put the mibam routine in the appropriate place (i.e. the waiting for an IR input loop) and take advantage of it's low cpu use. But I suspect that in the end a hardware approach is the best and so BH, I think I will go for those. I would love to see your example. It leaves opportunities for expansion. After all, we are all waiting for our Raspis are we not?
May I ask how many RGB LEDs you're using? I've done Sony SIRC control of a single RGB LED with 6-bit (64 step) gamma corrected brightness levels spanning 8-bit (256 step) soft' PWM levels, but I used small tight isochronous assembly code.
I'm only after 3 channels of control for the moment. I want to add IR control and maybe some potentiometers but no doubt I will want to hook it up to some sort of serial connection at some point.
Last edited by jimseng; - 19th March 2012 at 12:23.
Go get you one of thes...
http://www.ebay.com/itm/IR-Remote-Co...item415872b777
or even better get one of the packages that include 5 meters of 5050 RGB LED's in a strip. Amazing and fun to play with.
I just got a kit with 5M LED strip or around $20usd to add lighting to my daughters doll house. I plan on doing my own controller eventually.
The remote allows you to select any range of colors and brightness of the RGB led strip.
I popped the controller open and it looks to have a Vreg, small microcontroller, 3 driver transistors (or FET's), an IR sensor. One could trace out the schematic, burn your own PIC and replace the one on the board to get control of the code and not have to do your own circuit board.
You could also monitor the three RGB channels and see what PWM signals give which colors.
just a thought
Dwight
These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.
Heckler
Ha! That is exactly what I have got. (well a slightly different but very similar UK version) I was planning to use the fets to drive the LEDs and steal the 5v rail etc. That is why I was trying to get it to work on a smaller pic than the 28 pin but I think there is room in the box for a 28 pin if I am neat and tidy. I opened mine up and removed the MCU which I promptly lost between the floorboards but I was intending to do my own prog so I can use potentiometers. Unfortunately I think I am going to have to go with a 28 pin with HWPWM to achieve it all though. No doubt I will blow it up at some point.
Bookmarks