How to make animation on LED...

Discussion in 'Programmer's Corner' started by RRITESH KAKKAR, Jan 31, 2013.

  1. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Hi,

    I want to know how animation is generated (hex) on LED display??
    I have 10x28 LED display via shift register 74164..
    so, i am just curious how to make animation on board??

    thanks
     
  2. kubeek

    AAC Fanatic!

    Sep 20, 2005
    4,670
    804
    Ah, what a question..
    Animation is done by showing different images in a rapid sequence.
     
  3. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    but how to get image or clip art hex number??
     
  4. kubeek

    AAC Fanatic!

    Sep 20, 2005
    4,670
    804
    I dont understand what you mean. What "hex number"? Do you mean how do you get the image into memory or what?
     
  5. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    I'm not sure what you mean here... The positioning of each bit(1 or 0) for your display depends on the mapping of the I/O for your image. So, if you wanted to display '2', you might do something like:
    0 0 0 0 0 0 0 0
    0 0 1 1 1 0 0 0
    0 1 1 1 1 1 0 0
    0 1 0 1 1 1 0 0
    0 0 0 1 1 0 0 0
    0 0 1 1 0 0 0 0
    0 1 1 1 1 1 0 0
    0 0 0 0 0 0 0 0

    To animate this, you'd have to switch quickly between this image and another faster than the eye could perceive the transition.
    How you output that depends on your system and how things are hooked up.
     
  6. MMcLaren

    Well-Known Member

    Feb 14, 2010
    759
    116
    You still have not shown us a schematic of your circuit. A PCB layout is not the same thing...
     
  7. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    ummm... was I supposed to supply a schematic?:confused:
     
  8. mcgyvr

    AAC Fanatic!

    Oct 15, 2009
    4,771
    971
    yeah come on tshuck.. Thats the goofiest PCB layout I've ever seen.. Just all 1's and 0's :p
     
  9. MMcLaren

    Well-Known Member

    Feb 14, 2010
    759
    116
    I was addressing the OP... Sorry...
     
  10. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    This is for larger bitmaps but is handy for making images on 128x64 LCD displays. There are several others out there, including online versions.

    For 8x8, it's easier to draw in graph paper, then assign the variables in binary that matches your graph paper. That program does support 8x8 if you draw very tiny .BMP files in Windows paint, however. Just use only black and white.
     
  11. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Here is the schematic layout file i am using 74164 and port b for driving rows.
    yes i know this, but it will take a lot of time to do this, i was watching a video in you tube of led display it was doing animation over it rotating text like this i want to know how to have number for this???
     
  12. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    Human eyes generally can't distinguish flicker when it happens at greater than 100Hz, sometimes as low as 24hz for tiny changes.

    Microcontrollers run at several Mhz, so each update can take tens of thousands of instruction cycles, and it will still appear smooth to a human.
     
  13. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Hi,

    But the question is how to get frame hex number for it??? speed low is the problem after that....
     
  14. kubeek

    AAC Fanatic!

    Sep 20, 2005
    4,670
    804
    What is a "frame hex number"? I still have no idea what you´re trying to ask..
     
  15. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    I don't know why you are not getting me see...
    if 1 is written on display i f i want to rotates like that..
     
  16. kubeek

    AAC Fanatic!

    Sep 20, 2005
    4,670
    804
    That´s even worse, were did some rotation come into this?
    Please use more sentences and explain what you mean in detail. I really don´t understand what you mean, and I bet that if it was only me who has trouble understanding, you would get better responses from others.
     
    panic mode and Brownout like this.
  17. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    We aren't understanding because "frame hex number" doesn't make sense...

    Are you trying to ask for the way to encode an animation that shows an image being rotated on a frame-by-frame basis?
     
  18. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    yes.................
     
  19. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    That is entirely hardware dependent, a schematic seems to be in order....

    Either way, the matter is simply making the next frame slightly different from the previous one, so that when played fast, it will appear as motion...
     
  20. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    But how to make that frame is there any software by hand design it will take lot of time!!
     
Loading...