I have a circuit where I use a PT4115 LED driver for lighting a 3W LED at 500mA.
The datasheet for the PT4115 LED driver is here.
The normal configuration for the PT4115 driving an LED is below:
I need to put the LED and an MCU away from the battery and LED driver, and I need to use a 4 pin 1 meter long USB cable to connect the LED and MCU to the battery and driver. I need to use this four wire cable. There´s no other option of using a cable with more wires inside. It has to be a four wire cable for this design.
I need a VIN line (for the MCU and LED+,) GND line, an output line from the MCU (to turn on, off and PWM the LED) and an LED- line, like this schematic below:
I want to know if I use the VIN line from the LED+, after it passes through the sense resistor (Rs), which limits the led current, I could supply an MCU and the LED+ altogether. The MCU would use the VIN and GND, and the LED would use VIN and LED-.
I know the sense resistor (Rs) would limit the LED (and then the MCU current) so I would need to calculate the current needed for the LED and for the MCU altogether and calculate a proper sense resistor to keep the LED at 500mA, because the MCU would draw some more milliamps. Does this make sense? Would it be possible to be done?
I made a small quick protoboard test and it seems to work, but I want to know if it´s safe to supply both the LED and the MCU using the same VIN branch (after the sense resistor Rs.)
Would my idea work?