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.
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