I have an Arduino Nano v3.0, TIP120 transistor and a 60W 12V transformer. Now I would like to PWM a 12V 6.5W LED spotlight from 0 to 12V. The most circuits I have seen are using 175, 1K or 2K2 resistors. I have tried them all, but when I PWM PIN 11 with the value 1 it's output is already around 6V. The output of PWM 255 is 11.34V, so that's fine.
Does anybody know if it's possible to switch a TIP120 from 0 - 12V with PWM? If so, what resistor should I use?
Leave it connected and measure the voltage. (Between the 2 connections of the LED, or, if you want, between +12V and the collector of the TIP120 - WITH ALL CONNECTED).
Leave it connected and measure the voltage. (Between the 2 connections of the LED, or, if you want, between +12V and the collector of the TIP120 - WITH ALL CONNECTED).
I disconnected it during the measurement, so I was sure that the LED spot was not consuming power
If you have an analog meter, it may give you a pretty good approximation, but -only- if you have the LED in circuit. The meter movement itself acts to average out the PWM pulses. Without the LED in circuit, it depends on a number of factors, but it may not give you a meaningful reading. Keep in mind the TIP120 as a darlington pair drops out about 1.4V.
With a digital multimeter, all you are likely to get is nonsense readings.
Leave it connected and measure the voltage. (Between the 2 connections of the LED, or, if you want, between +12V and the collector of the TIP120 - WITH ALL CONNECTED).
I disconnected it during the measurement, so I was sure that the LED spot was not consuming power
OK. Maybe you know what you are doing. (or maybe not)
There must be a load connected, or you will get a nonsensical reading from the collector of the TIP120. Otherwise, it pulls low, then it is open, then it pulls low, then it is open. Through a lowpass filter, that gives you... zero.
Even with the LED, a lowpass filter may not give you an accurate reading, because of the voltage threshold of the LEDs.