Shop OBEX P1 Docs P2 Docs Learn Events
RGB FULL COLOR 5mm LED-4 LEAD COMMON ANODE Has any one use them before — Parallax Forums

RGB FULL COLOR 5mm LED-4 LEAD COMMON ANODE Has any one use them before

sam_sam_samsam_sam_sam Posts: 2,286
edited 2007-10-23 03:31 in General Discussion
·Hi ,EveryOne

Has any one used this type of leds before if so what is the right way to use them

RGB FULL COLOR 5mm LED-4 LEAD COMMON ANODE

http://www.mpja.com/prodinfo.asp?number=17137+OP

http://www.mpja.com/prodinfo.asp?number=17138+OP

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·idea.gif·that you may have and all of your time finding them

·
·
·
·
Sam

Post Edited (sam_sam_sam) : 10/22/2007 4:35:01 PM GMT

Comments

  • pwillardpwillard Posts: 321
    edited 2007-10-17 16:34
    EXCELLENT!

    Thanks!· Just what I was searching for!· How did you know?· [noparse]:)[/noparse]

    BTW:· Use it just like a regular multi LED Common Anode lamp.· IE; It's like 3 discrete lamps with their anodes tied together.· You can use PWM to each cathode·pin to "mix" the colors to produce purples... oranges, etc.

    Sample:
    Using PIN 0 for·one of the·LED cathodes, with·ANODE tied to +5V, 220 Ohm from PIN0 to the Cathode. use the same process for other pins to remaining cathodes...· (untested)
    high·0 ' LED completely off.
    for b2 = 0 to 255 ' Loop from·on to off.
    pwm 0, b2,1 ' Output one burst of pwm.
    next
    low·0 ' Leave LED on




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    There's nothing like a new idea and a warm soldering iron.

    Post Edited (pwillard) : 10/17/2007 4:55:06 PM GMT
    RGB.BMP 44.9K
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2007-10-17 16:47
    pwillard

    Well i am gald that i could help you........................smile.gif

    This was on the frist page of the flyer for Mpja that came in the mail this week

    I though would ask to see if any one has use them before ordering some


    ·Well·I·have some more thing to play with my Basic Stamp







    ···jumpin.gif············These Guys·are having way to much fun·········· hop.gif





    UpDate:.....> Thanks for the·Demo Code·I will give this a try ·····

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them

    ·
    ·
    ·
    ·
    Sam

    Post Edited (sam_sam_sam) : 10/17/2007 8:36:39 PM GMT
  • pwillardpwillard Posts: 321
    edited 2007-10-22 14:12
    I did some testing... I think a STAMP is not really up to the task of driving 3 LEDS with PWM to generate color mixing.

    Easily done with other devices though... hello... SX? [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    There's nothing like a new idea and a warm soldering iron.
  • MorrolanMorrolan Posts: 98
    edited 2007-10-22 14:14
    I'm sure a stamp is perfectly capable with the right pbasic code, the problem comes when you want to power multiple LED's like this -1 LED would be fine though.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Flying is simple. You just throw yourself at the ground and miss.

    "I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image."
    Stephen Hawking
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2007-10-22 15:48
    You might also look at the Common Cathode (GND) version as well. It might be better suited for connecting to a Stamp.

    http://www.mpja.com/prodinfo.asp?number=17138+OP

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2007-10-22 16:22
    Hmm.... let's see.
    If you want to really make use of them, you need something close to 100 leds, say a 32x32 grid. It really looks a lot more appealing to use a Propeller with 8 microcontrollers inside and 32bit processing. Still, it is going to be a bit of work to get it all working. You might consider a 24x24 matrix for starters as not all 32 pins of the Propeller I/O are available and you will have to multiplex the 4 colors to boot.

    It is doable. Is someone up to the challange?

    Nonetheless, it really can mix to create variable colors on one LED with the BasicStamp.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PLEASE CONSIDER the following:

    Do you want a quickly operational black box solution or the knowledge included therein?······
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2007-10-22 16:30
    Beau Schwabe

    Thank You For Your Reply

    When I order·some of the Common Anode·and· some of the Common Cathode

    ·RGB FULL COLOR 5mm LED-4 LEAD· type

    Because i was not sure which one would work on a Basic Stamp

    so i order both




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them

    ·
    ·
    ·
    ·
    Sam
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2007-10-22 17:22
    It's just that with Common Anode you drive the I/O pin LOW to turn the LED(s) ON, and with Common Cathode you would drive the I/O pin HIGH to turn the LED(s) ON

    Common Cathode is just easier to work with sometimes, but really it depends on your design.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • pwillardpwillard Posts: 321
    edited 2007-10-23 03:31
    I just inverted my logic... it's not that hard.· It's not really a mistake to chose either.· My intent was to simulate the AMBIENT ORB but for my own purposes.· http://www.ambientdevices.com/cat/orb/orborder.html

    I understand that the right code might do it on the stamp... but the best I've been able to do is get close with visible flicker due to slow speed of updates.· With that in mind, I'm looking toward the SX with more speed.·

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    There's nothing like a new idea and a warm soldering iron.
Sign In or Register to comment.