+ Reply to Thread
Results 1 to 12 of 12

Thread: How can I control a RGB LED Strip from my BS2???

  1. #1

    Lightbulb How can I control a RGB LED Strip from my BS2???

    I want to make a controlled RGB LED Strip hidden light for my room! I am excited about it but I run into some problems. So here are my questions:

    Q1: How can I connect the LED strip to my BS2? (Which wire goes whereI just have the boe-bot kit and will use that)
    Q2: How do I control it with the PBasic language that BS2 uses? (I mean, OK, it's simple with 1 led but how do you control an entire RGB LED strip??)
    Q3: BS2 uses 9VDC. LED strips 12VDC. Would it work with just 9VDC or there is a way?

    I know that there are ready kits for that but I would like to build my own!

    Thank you all for your time!

  2. #2

    Default Re: How can I control a RGB LED Strip from my BS2???

    Q1: How can I connect the LED strip to my BS2? (Which wire goes whereI just have the boe-bot kit and will use that)
    Depends on the strip but if it is just a bunch of leds hooked in parallel you would do it the same as a single led
    Q2: How do I control it with the PBasic language that BS2 uses? (I mean, OK, it's simple with 1 led but how do you control an entire RGB LED strip??)
    Again see answer 1
    Q3: BS2 uses 9VDC. LED strips 12VDC. Would it work with just 9VDC or there is a way?
    Use level shifters, transistors or MOSFETS.

  3. #3

    Default Re: How can I control a RGB LED Strip from my BS2???

    Quote Originally Posted by Sledgehammer View Post
    I want to make a controlled RGB LED Strip hidden light for my room! I am excited about it but I run into some problems. So here are my questions:

    Q1: How can I connect the LED strip to my BS2? (Which wire goes whereI just have the boe-bot kit and will use that)
    Q2: How do I control it with the PBasic language that BS2 uses? (I mean, OK, it's simple with 1 led but how do you control an entire RGB LED strip??)
    Q3: BS2 uses 9VDC. LED strips 12VDC. Would it work with just 9VDC or there is a way?

    I know that there are ready kits for that but I would like to build my own!

    Thank you all for your time!
    You can you can use something like this:

    http://www.ti.com/product/tlc5940

    or this:

    http://allegromicro.com/Products/Regulators-And-Lighting/LED-Drivers-For-Backlighting/A8500.aspx

    You will have to have a good knowledge of the SHIFTOUT command or IC2 in some instances.

    Your power for the LED's would come from a completely different source, ie not the power to the BS2. You don't mention how many LED's would be powered. The Power Supply could run from 1 Amp to 10 Amps depending on how many LED''s are in the circuit.

    The grounds supplying the BS2 circuit and the LED drive would have to be comined.
    Infernal Machine

  4. #4

    Default Re: How can I control a RGB LED Strip from my BS2???

    Hey Sledgehammer - saw you come into the tymkrs IRC a bit earlier asking about the last segment of the rgb led strip project.

    In terms of the wires: Because the LEDs are serially chained, from what I understand, there's an actual order to how the chips "receive" commands from the main chip (in our case Propeller, your case BS2). So you have to use the pins on the "butt side" of the arrows to connect to your board.

    If you can post what strip you have we can help you figure out more exactly what you need - but essentially for us, one wire went to the power rail (+5v for us), one wire went to the serial data line, one wire went to the clock line, and another went to ground - which was also connected to ground on the board.

    (And if you didn't know, I2C is the master - slave idea where the microcontroller can control a whole bunch of stuff from its serial data and clock lines). So for your LEDs, I imagine they're considered different "peripheral devices" that run on the same clock and data line coming from the microcontroller). My rudimentary understanding of it anyway.

    Click image for larger version

Name:	tumblr_lsbqig4QNf1qf00w4.gif
Views:	80
Size:	14.1 KB
ID:	88319
    http://tymkrs.tumblr.com/post/154031...up-the-rgb-led <-- some pictures/descriptions you can check out. We'll go over what we did in the last video to the RGB LED project on Tuesday

    (And apologies, I'm not too sure about BS2 code, Roy Eltham was kind enough to have written a driver for the Prop chip which we used.) And in terms of voltage - that seems pretty high, but if we could have the datasheet for it, we could see what could be done to help.
    Whisker is a hardware and wetware hacker, and produces geeky content on a daily basis. Atdiy is a cardiovascular nurse by day and an electronics n00b at night. Together we're the Toymakers (Tymkrs) and we post videos/blogs on electronics, DIY projects, and whatever else we happen upon! Visit us at http://tymkrs.com, http://zombietech.tv, and http://firstspin.tv! Our projects are on http://tymkrs.com/forum and you can chat with us daily at #tymkrs!

  5. #5

    Default Re: How can I control a RGB LED Strip from my BS2???

    Thank you all guys for your answers! I will find a strip and will post it here! Since I live in Greece it will be a bit difficult to a good one cheap. As I saw they cost around 30€

    I'll find it and paste it here!

    Oh, and a big thanks to brainwagon in the tymkrs IRC chat! I hope I'll get in in a bit from my college WiFi!!!!

    EDIT: I was wondering if I can connect the data wires to the BS2 and the power to a external sourse...Not from a board but directly from a 220VAC to 5VDC converter!


    So, I found this one:
    http://www.futurehouse.gr/index.php?main_page=product_info&products_id=4918& language=en

    A bit expencive though:S And I think it's not what I want. I need a 5m strip to cut it in half to put it here:

    Click image for larger version

Name:	dsc0003cx.jpg
Views:	102
Size:	56.6 KB
ID:	88361

    and here:

    Click image for larger version

Name:	dsc0004bl.jpg
Views:	89
Size:	60.6 KB
ID:	88362

    I would be glad if you could find the excact type of strip I need!Now that I think of it,I don't mind if the LEDs can have different color each
    Last edited by Sledgehammer; 01-09-2012 at 11:56 AM.

  6. #6

    Default Re: How can I control a RGB LED Strip from my BS2???

    That's what we did with our rgb led strip - We used a breadboard power supply - connected the power wires to this and the serial clock/data to the propboe board. You might be able to find some rgb led strips on ebay?
    Whisker is a hardware and wetware hacker, and produces geeky content on a daily basis. Atdiy is a cardiovascular nurse by day and an electronics n00b at night. Together we're the Toymakers (Tymkrs) and we post videos/blogs on electronics, DIY projects, and whatever else we happen upon! Visit us at http://tymkrs.com, http://zombietech.tv, and http://firstspin.tv! Our projects are on http://tymkrs.com/forum and you can chat with us daily at #tymkrs!

  7. #7

    Default Re: How can I control a RGB LED Strip from my BS2???

    Yea I saw your post! I was thinking of buying that converter and directly connect it with the strip!

    EDTIT:So, I've found this one:
    http://viewitem.eim.ebay.gr/5M-5050-...396239660/item

    What do you think of it??Plus do you know if I will be able to cut it in 2?
    Last edited by Sledgehammer; 01-10-2012 at 12:44 PM.

  8. #8

    Default Re: How can I control a RGB LED Strip from my BS2???

    Have you looked at this http://www.adafruit.com/products/285 ?

  9. #9

    Default Re: How can I control a RGB LED Strip from my BS2???

    That's 1 meter Framkiln and I need 5! no way to solder all these!I wanna do a fine job But thanks

  10. #10

    Default Re: How can I control a RGB LED Strip from my BS2???

    Anyone??????

  11. #11

    Default Re: How can I control a RGB LED Strip from my BS2???

    Quote Originally Posted by Sledgehammer View Post
    That's 1 meter Framkiln and I need 5! no way to solder all these!I wanna do a fine job But thanks
    You might want to take another look at those. The description says they are in 5 m rolls, sold by the meter.

  12. #12

    Default Re: How can I control a RGB LED Strip from my BS2???

    Which mean 80 $ :S

+ Reply to Thread

Similar Threads

  1. $1 Flex LED Strip off Ebay
    By erco in forum General Discussion
    Replies: 6
    Last Post: 06-27-2011, 08:24 AM
  2. Code Strip
    By japer in forum BASIC Stamp
    Replies: 1
    Last Post: 04-21-2006, 06:14 AM
  3. Strip chart?
    By Archiver in forum BASIC Stamps Archive
    Replies: 2
    Last Post: 11-11-2003, 11:12 PM
  4. Strip board (OT)
    By Archiver in forum BASIC Stamps Archive
    Replies: 0
    Last Post: 10-09-2001, 06:02 AM
  5. strip board templates
    By Archiver in forum BASIC Stamps Archive
    Replies: 3
    Last Post: 04-03-2001, 11:24 PM

Tags for this Thread

Bookmarks

Posting Permissions

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