I have little problems with the parts should I use with PWM input. I just cant figure out how to read higher voltage/current (5V/5A-8.5A) PWM signal from individually adressable RGB leds, in this case NZXT Hue+ ones. I dont know what resistors to use between mosfets and PWM outputs either. (Picture below)
I just cant figure out how to read higher voltage/current (5V/5A-8.5A) PWM signal from individually adressable RGB leds,
5V is no higher that the Arduino's PWM, and the current is irrelevant.
I dont know what resistors to use between mosfets and PWM outputs either.
130R.
The simplest way to read the PWM output from an external source is to smooth it with an RC filter and then measure the resulting voltage with an analogue input.
Note in your physical layout ( this is not a schematic ) you use pin 8 which is not capable of PWM .
Why do you need to read them when you are creating the data that gets sent out via PWM on pinz s 3,5,6,,9, 10,11?
Put a 250 between PWM pin and MOSFET gate to limit current out of the arduino pin into the MOSFET gate capacitance.
CrossRoads:
Why do you need to read them when you are creating the data that gets sent out via PWM on pinz s 3,5,6,,9, 10,11?
Put a 250 between PWM pin and MOSFET gate to limit current out of the arduino pin into the MOSFET gate capacitance.
I am reading different PWM input (from different kind of RBG leds, Hue+ in my case) and copy the color with Arduino and then create PWM output that the 5050 leds can read.
Hopefully you understand what I am trying to do and thank you for responding.
The PWM from the NZXT Hue+ is available? In that case you can use pulseIn() to read the high & low times to determine the frequency and pulse width being used, if you don't want to read in analog levels from RC filtered signals per Grumpy_Mike's suggestion.
CrossRoads:
The PWM from the NZXT Hue+ is available? In that case you can use pulseIn() to read the high & low times to determine the frequency and pulse width being used, if you don't want to read in analog levels from RC filtered signals per Grumpy_Mike's suggestion.
I will test both methods when I get my already ordered genuinino (or whatever its called outside US) and test which method works better. If I could understand, creating RC filter would be like this:
Input to capacitor
From capacitor comes the filtered output and the ground that goes through resistor.
I would run the filtered output to the analog pins (A0-A6)
The digital input method has one thing that I havent yet figured out. Can I connect the black ground wire from Hue+ to just normal digital pin like the other ones from Hue+?
And also will I destroy my Arduino if I plug it directly to Hue+ strips (Hue+ controllers output currency is around 5-8.5A with the voltage of 5V) In other words: is there any maxium INPUT the Arduino can read without burning down?
From capacitor comes the filtered output and the ground that goes through resistor.
I would run the filtered output to the analog pins (A0-A6)
No.
From the output a resistor, the other side of the resistor goes to the analogue input. Also a capacitor is connected between the analogue input and ground.