Hi! I've got this tiny 5v-Zigbee-Led Controller from Gledopto and wanted to ask if it is possible to measure the voltage going into each of the leds (R, G, B) with an Arduino. (by connecting wires somewhere on the led strip. I'm sorry, if this is a dumb question, I'm pretty new into this topic.
Thanks for your help!
It will be using PWM to dim the LEDs so the voltage will be a PWM waveform of varying duty-cycle. In theory you can low-pass filter such a waveform to get an analog version, but you may also be able to measure the pulse width directly using pulseIn.
The LEDs might be common anode or common cathode too, so some investigation might be needed.
I think the leds have a common anode, because there’s only an +5v pin on the strip (no gnd). So what can I do to measure it?
a low-pass filter will average-out the PWM. You'll want a cut-off frequency of 10Hz or less and 1Hz is better.
If don't have a multimeter and you're reading the voltage with the Arduino, see the Read Analog Voltage Example.
Ok, but how can I measure it? Where should I connect the led with the arduino? Do you need any more Information? And how can I measure something with Analogread if the Leds have an common anode?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.