I am very new to arduino. I have an rgb lightstrip from radio shack that uses the one one wire interface and I want it to work with the onboard light sensor. I want the light sensor to tell the rgb strip when to turn on and off. My arduino is the esplora.
What have you found on Google?
I have searched Google and found that there are a few digital io pins on the right header row. I have already uploaded an example sketch that will read the light sensor value. All i need to do now is find out how to tell the code to turn the strip on or off if the the value of the sensor is is above or below a certain limit.
First how are you powering the strip? The Arduino will not power it or you will destroy it. What’s the voltage for the strip? I’m guessing 12V?
Post your code you have now (in code tags please).
It is a 12v module. The product I am using is: http://www.radioshack.com/product/index … d=22128606
Code below:
#include <Esplora.h>
void setup()
{
Serial.begin(9600);
}
void loop()
{
int value = Esplora.readLightSensor();
Serial.println(value);
}
Radioshack has a manual for this strip… http://www.radioshack.com/graphics/uc/r … _PM_EN.pdf
You need to make sure your have a 12V 1A wal-wart.
I already own a wal wart that is 12v 1A. The code listed on the website is for the uno only and the undo does not have a built in light sensor.
Are you sure that's the proper code ? The LED strip uses the TM1803 controller IC. I'm not sure the Esplora library is the correct one. It doesn't seem to have anyway to set each LED in the strip. You might read ...media4theworld:
Code below:#include <Esplora.h>
I have to use the esplora library because I am reading a value off of the onboard chip. Basically, once I get the value I then want an integer to use that value to send a signal to the digital pin. I dont understand the code and that is why i am here to find out how to finish my code.
Well, you are going to have to do some reading. Google will have 99% of the answers, for the rest, that’s why we’re here. But it’s up to you on how much help you will receive. First you have to help yourself.
Yes, I know you don’t have an Uno. But every Arduino clone, in this case Esplora, is based on the Uno. For one, Sparkfun doesn’t even sell the Esplora. This topic would have been better suited for [Arduino Esplora Forum. But we can still help you.
First you need to install the [TM1803 Library - https://learn.sparkfun.com/tutorials/in … no-library
Now I have done some of the work for you as I have given you the library you need and a tutorial for installing that library. I would also recommend you search “Arduino tm1803” “radioshack led strip arduino” to get some more answers.](GitHub - FastLED/FastLED: The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements.)](Arduino Esplora - Arduino Forum)