Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5183

General • Re: Can I use a Pico to drive the PWM pin of an LED driver that has a weak internal pull-up to 5V without damaging the P

$
0
0
Another option to interface this LED driver is a NPN transistor like 2N2222. Use a 1k base resistor, emitter to GND and collector to the LED driver input. Of course the pico GND, transistor emitter and GND of LED driver need to be connected.
Signal will be inverted by the transistor. A high on base will result in low output, but this can be easily handled in software.

Connecting pico GND to GND of another power supply, here for the LED, can cause strange effects. An optocoupler like 4n25 could be used to fully isolate pico from the LED power supply. No transistor needed then.

Statistics: Posted by ghp — Fri Mar 15, 2024 8:24 pm



Viewing all articles
Browse latest Browse all 5183

Trending Articles