Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

SMD LED rotating beacon

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
25,589
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 8, 2008

Here is my first verry small "virtual" rotating LED beacon.

I soldered them from 4 x 0603 SMD LEDs. They only need a room about 2,5 mm^3.

To make the round tripping more realistic I programmed a PIC Microchip 12F629 with 4 PWM outputs signals.

For more Information please visit: http://www.instructables.com/id/Virtual-rotating-LED-beacon-Rundumlicht/

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (WattSekunde)

  • 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 Sorry, but I decided to use my code for another (commercial) project. But I will give you hints for your own experience ;-).

    Thanks.

  • @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 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

see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • @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.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more