Shop OBEX P1 Docs P2 Docs Learn Events
BlinkM smart LED and basic stamp — Parallax Forums

BlinkM smart LED and basic stamp

haunteddansionhaunteddansion Posts: 68
edited 2008-06-05 03:03 in BASIC Stamp
Does anyone know how to integrate these with the stamp. In the .pdf it shows it can be done, but I am at a loss in finding example code and an actual way of hooking the two together. It seems like this can be a wonderful tool though! Thanks in advance!

Comments

  • ZootZoot Posts: 2,227
    edited 2008-06-04 17:45
    It's I2C. So you need two pins on a Stamp, one for SDA and one for SCL. You will also need two pull-up resistors (4.7k or so, from each pin to +5v).

    Then it's a matter of sending the proper I2C commands to the LED module (see the thingm data sheet for command set).

    The rub will be what flavor of Stamp are you using. If you are using a BS2p, that Stamp includes built-in I2CIN and I2COUT commands. If you are using a vanilla BS2, there is code that exists for "bit-banging" I2C. I would suggest reading up in the Pbasic (Stamp) manual under I2CIN and I2COUT -- there are good explanations of how it works, whether or not you use the commands or the "bit bang" code.

    Nuts N Volts #115 has some code for a BS2 to act as an I2C master. See this page for a PDF of the column and a zip archive with code examples:
    www.parallax.com/Resources/NutsVoltsColumns/NutsVoltsVolume5/tabid/448/Default.aspx

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST

    1uffakind.com/robots/povBitMapBuilder.php
    1uffakind.com/robots/resistorLadder.php
  • JomsJoms Posts: 279
    edited 2008-06-04 22:11
    This is kind of a side question dealing with this LED... Does anyone know where I can find just the LED that they use on this board?· I have searched Digi-key for awhile but can't find the same device.· I like the fact that it is through-hole mount also.· I have a project where I want to use several of these things all linked to the same color and don't want to pay $12 per board....
  • Shawn LoweShawn Lowe Posts: 635
    edited 2008-06-04 22:48
    Sparkfun sells them. I'm not sure where else. You could make your own BlinkM, it would be kind of fun for experimentation, and maybe cheaper if you use a SX. $12 ain't a bad price though.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    Maybe I should have waited to do that......
  • JomsJoms Posts: 279
    edited 2008-06-04 22:52
    Yea... I am actually looking at trying to use around 60 LED's in a row that would be part of a real thin line color changer for a accent light... The BlinkM kit is kind of overkill because all of the led's would be doing the same color so that is kind of why I want to build my own, probably using a stamp for the main controller... the 50 or 60 X $12 a piece would add up way too fast for me...
  • FranklinFranklin Posts: 4,747
    edited 2008-06-04 23:57
  • JomsJoms Posts: 279
    edited 2008-06-05 00:16
    Franklin... Thats exactly what I was looking for! and only 86 cents a peice really helps too! Now will just come the task of building a driver to use them with... Thanks again for the help!
  • haunteddansionhaunteddansion Posts: 68
    edited 2008-06-05 00:27
    Can we keep this thread oriented to the BlinkM LED board please this is a new product and I really want to learn more about it. Thanks!
  • FranklinFranklin Posts: 4,747
    edited 2008-06-05 03:03
    So, what questions do you have that have not yet been answered? We are here to help. The pdf file you attached has the commands you need to send to make it work, you just need to use a bs2p and the i2cout command.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
Sign In or Register to comment.