RGB LED and Xbee Project
I'm trying to run an RGB LED seen below using Xbee, here are the specs on it:
ED Emitter: 10W Lens Color : Water Clear
Emitted Color : RGB
DC Forward Voltage (VF) : Red 6-8V ; Green 9-12V ; Blue 9-11V
DC Forward Currect (IF) : 300 mA
Beam Angle: 140 degrees
LifeSpan Time : > 50,000 hours
Intensity Luminous (Iv): Red 120-150LM, Green 200-300LM, Blue 70-100LM
I have an Xbee attached to my computer with an explorer board. Than what I would like to do is somehow attach a second Xbee to the LED so I can remotely control it from my computer. Can some one please help me as to how can I make this happen? Eventually what I would like to do is create a mesh network that I can control from my computer, but as long as I can get one going the rest should be no problem.
ED Emitter: 10W Lens Color : Water Clear
Emitted Color : RGB
DC Forward Voltage (VF) : Red 6-8V ; Green 9-12V ; Blue 9-11V
DC Forward Currect (IF) : 300 mA
Beam Angle: 140 degrees
LifeSpan Time : > 50,000 hours
Intensity Luminous (Iv): Red 120-150LM, Green 200-300LM, Blue 70-100LM
I have an Xbee attached to my computer with an explorer board. Than what I would like to do is somehow attach a second Xbee to the LED so I can remotely control it from my computer. Can some one please help me as to how can I make this happen? Eventually what I would like to do is create a mesh network that I can control from my computer, but as long as I can get one going the rest should be no problem.
Comments
- Model Number: KEM-HP010PW-E45
- http://dgkeming.com.cn/product/673672188-210664217/power_led_10W_white_bridgelux_chip.html
My intent is to be able to control intensity and also color. I want to be able to get any color by controlling the red,blue,and green.The link is to a while LED not a RGB LED.
Is this the LED you want to control?
If so, you'd want to learn to control it by itself before attempting to add a XBee.
Do you want to use the XBee's PWM outputs to control the LED? Doesn't a XBee have three PWM outputs?
You might need a microcontroller to control the LED along with appropriate drive circuit. I'm not sure if a XBee can control the LED without a microcontroller.
http://www.aliexpress.com/item/Square-10W-High-Power-RGB-LED-Chip-for-fish-tank-light-3-Red-3-Green-3/1245087439.html
Yes if that's possible and it will do the trick than using the PWM outputs is fine by me, I just have to learn how to set it up that way. I don't think the hookup can be done directly because the Xbee can pnly take 3.3v and the RGB LED that I'm trying to use uses 12V and a much higher current. However, I have no idea what microcontroller I would need or drive circuit for that matter?
I could also try to use the shiftbrite LED (https://www.sparkfun.com/products/10075) which can run on 5V as opposed to the 12V. However I, believe I'm still in the same boat, because its still above the 3.3V the Xbee can handle.
If you don't care about fading then you can just use a 12v source for the LEDs, current limiting resistors, and some 2N2222 transistors. You'd also need to drop the 12v to 3.3v for the XBee, that's a big drop for a linear regulator, so it might be cheaper and easier to get a small switching power supply, like the little ones you can stick in breadboards with a wide input voltage range.
If you're just using the XBee for communication, then leave the XBee aside initially, and get the LED to work the way you want first.
You'll need to decide what microcontroller (uC) to use. I'd suggest using one you're comfortable with. I think your task would be easier if your uC had a UART to make it easier to interface with the XBee.
I see there are lots of Instructables in using RGB LEDs. I find there's an immense about of "noise" over on Instructables; you might want to post a link here to an Instructable you think looks promising before purchasing parts. Some over here can check to see if the Instructable author gave good suggestions.
You could also search these forums for RGB LED projects. Post #1 of my index (see signature) has a link to Rich's forum search tool (Google). I've done a few RGB LED projects but none of the LED I've used required as much current as your LEDs require.
Once you can get a uC to control the LED, learn how to control it from your computer over a wired connection. Once you've done this, add the XBees.
ShiftBar Xbee
XBee aside, they will not work well with your LED. If you're going to pick out a driver you need to get something that has more power available than you need. This has much less power available.
I haven't much experience connecting anything directly to an XBee but I don't think that will work. You have 2 PWM pins and 8 on/off I/O pins. None of them will be able to support communication because there isn't enough processing power on board the XBee.
Back to my original question, what are your intentions with this LED? Do you need to fade each channel or just turn them on and off?
I'm pretty sure the XBee can not directly control the shiftbar. You would need a microcontroller to receive the serial data from the XBee and have the microcontroller control the shiftbar based on the data received.
Without knowing more about the shiftbar, I wouldn't be able to tell you if it would be useful for this application even with an added microcontroller.
People would be able to provide better answers if you provided a link to the devices you are asking about.