Propeller Clock Advanced Design


Results 1 to 7 of 7

Threaded View

  1. #2
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    I expect that there's is some pretty impressive programming behind that clock.

    I'm even impressed with him driving 32 RGB leds simultaneously, and that's even before you consider the coordinate system conversion.

    Theres lots of information on google for converting Cartesian coordinates to Polar ones, and i'm sure you could implement an algorithm in PBP but i'm not sure if you could do it fast enough.

    The video says he is using a ATMEGA644 running at 20MHz but doesn't mention a programming language. He may be using plain old assembly which would make it fast, but quite a pain to program and troubleshoot.

    While I was typing this I had an idea - you could do all of the coordinate conversions beforehand and use a look-up table for each "pixel". So instead of doing the maths for each pixel each time, you just use the lookup table for each pixel to determine its location in the sweep. This way you could look up the pixels via the lookup table in real time as the propeller swings instead of having to calculate the whole "frame".

    I hope all of that made sense

    *edit* Out of curiosity, how many "pixels" did you use in each rotation of your clock shown in the picture? I.e. i want to work out how many degrees between each "pixel".
    Last edited by Kamikaze47; - 15th September 2009 at 16:54.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

Similar Threads

  1. Single digit 7 Seg LED clock - PIC16F88
    By thirsty in forum Code Examples
    Replies: 4
    Last Post: - 17th July 2009, 08:42
  2. EM4095 Chip, get Clock and Data signals?
    By mindthomas in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 19th August 2008, 06:27
  3. Shiftout/in
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd August 2007, 11:48
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  5. Propeller Clock
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 9th March 2006, 15:02

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts