Shop OBEX P1 Docs P2 Docs Learn Events
Seven Segments of Fun driver now posted — Parallax Forums

Seven Segments of Fun driver now posted

Invent-O-DocInvent-O-Doc Posts: 768
edited 2012-08-03 12:51 in Propeller 1
This is the first object that I've written and my first post to the object exchange (http://obex.parallax.com/objects/876/) - though the object doesn't show up in search, it might be because they vet the uploads personally, I guess?

Anyhow, this is a 7 segment LED driver that I wrote for a current project and here it is. It has a few decent features:
- Full ASCII letters and numbers (within 7-seg limitations - M,W,X don't look great)
- Background animation manager - Sequential messages, scrolling, windowing, blinking
- decimal numbers, hex word/byte, dimming
- Supports CC & CA displays 8+ digits
- 255 byte animation buffer
- Adaptive segment brightening (optional)
- Dual multiplexing for very bright 8-digit displays
- Support for sink/source driver circuitry that may need inverted voltages for high current/voltage LEDs
- Really easy to use with full documentation

I hope you like it.

Here are some videos:

DRIVER DEMO https://www.youtube.com/watch?v=ldF9tdRy98g&feature=plcp

ROTARY ENCODER MENU https://www.youtube.com/watch?v=CFpCrx45KW0&feature=plcp

Comments

  • DroneDrone Posts: 433
    edited 2012-08-02 03:39
    Dear Thomas,

    This is nicely done. I wish all objects were documented so well. The inclusion of the common anode option is thoughtful - I happen to have a have a tray of very nice surplus common-anode displays ;-) Thank you...

    Will you please include the example code for the rotary encoder menu example shown in the second video?

    Best Regards, David
  • NurbitNurbit Posts: 53
    edited 2012-08-02 03:48
    That's really impressive, well done
  • Invent-O-DocInvent-O-Doc Posts: 768
    edited 2012-08-02 09:26
    Thanks for the comments. I will post the rotary encoder menu sample tonight.
  • Invent-O-DocInvent-O-Doc Posts: 768
    edited 2012-08-02 19:13
    Ah yes.

    Here is an example of how to do a scrolling menu with a rotary encoder. This example shows how to use the 'printfrom' method
    to show a portion of a large string and animate it by encoder position. The menus are not functional yet.

    This uses the quadrature encoder object from the obex.

    Hope this helps.encoder_example.zip
  • AJMAJM Posts: 171
    edited 2012-08-03 05:25
    Nice documentation. Thanks for posting this.
  • Invent-O-DocInvent-O-Doc Posts: 768
    edited 2012-08-03 12:51
    Thanks - I really tried hard to get the documentation right - as a consumer of so many objects good docs are appreciated.
Sign In or Register to comment.