SMD LED rotating beacon
Uploader Comments (WattSekunde)
All Comments (14)
-
@ollyk22 Feel free to ask if you have some more questions about it. Maybe sometimes we can see some nice results on your channel ;-).
Yes, working with PIC CPUs is very funny. I have a lot of ideas but not so much time today to realize them.
Have Fun!
PS: (Thank's for the clear words!)
-
@WattSekunde Thanks for that I think you have given me enough to go on ;) Shame some people think it a right to expect folks like yourself to hand out their hard work for free though ^^
-
@ollyk22 Thanks! Let me explain a little.
1. There are two independent loops needed. The independent 4 channel PWM (150Hz) and the rotating speed (2Hz). The PWM has to be the faster loop so it makes sense to use the int for the slower rotating loop because every int needs extra time.
2. The interrupt routine should be as short as possible. The PWM loop is more complex than each rotating step.
The rotating 2Hz is so slow that the easiest way is the use of an timer interrupt for that task.
-
This is great I am about to start planning my code for similar. Can I ask I assume you created a manual PWM by using int. interupt and then offsetting led values...
Not sure how to go about it yet but that is part of the fun with pics I guess!
-
Yes, that's true.
Because my intention was to build a very tiny SMD-LED beacon. Example: 1:87 fire-truck.
The next version should build with 4x 0402 SMD LEDs! Take a look on the instructables link.
-
On the other hand, the PIC12f629 can drive a beacon with up to 20 LEDs (by connecting the LEDs bidirectionally in a mesh like fashion between the 5 outputs (pentagon + pentagram), and putting high impedance the inactive pins in the mesh). So with 20 LEDs, you don't need PWM at all anymore.
can you put up the source code? (honestly, why don't people think to put the source code in the description, I would be sure to)
supergenius1994 1 year ago
@supergenius1994 Sorry, but I decided to use my code for another (commercial) project. But I will give you hints for your own experience ;-).
Thanks.
WattSekunde 1 year ago
@WattSekunde what could you possibly have used this for, that you couldn't put up the source code?, I mean, it is so simple, if you don't tell me, then I am going to go to some other sight, and figure it out on my own anyways, it's not like this is a computer application or anything
supergenius1994 1 year ago
@supergenius1994 I have a commercial offer for my source code. It's used for a RGBW LED Light Project. Sorry, today I can't place it as open source here. Don't be angry about that.
But as a supergenius from 1994(?) it would be easy for you to write down this PIC Microchip assembler thing. ;-) You are right it is easy and a nice thing to do direct in assembler. I give nearly all hints at the comment to ollyk22.
Thanks
WattSekunde 1 year ago