switch mode power supply design of current load sense circuit

Not rated 6,404

switch mode power supply design of current load sense
switch mode power supply design of current load sense

A suitable method to sense when some LEDs in a garage door opener are illuminated. A power source, potentially the same as Vout, connects to a 1.5 kΩ resistor, which then connects to six LEDs followed by a transistor. This transistor is grounded and connected to pin 7 on a PIC18F4520 microcontroller. Pin 7 serves as a digital output, implying that PWM is utilized to dim the LEDs. The garage door opener is intended to control an external light by repeating the PWM signal for enhanced dimming. The external light is a 12V, 1W LED strip, and the power for this strip is expected to be sourced from the opener's Vout using a buck converter. Existing components in the opener include V2 (Vout and/or the LED power source), R1 (the current-limiting resistor), and D1-D6 (the existing LEDs). Additional components for the circuit comprise R3 and R4, which form a voltage divider to power the MOSFET. The chosen MOSFET is M1 (FQP27P06), with a similar alternative selected in LTSpice. V1 represents the 12V output from the D24V3AHV buck converter, and R5 acts as a simulated load for testing in LTSpice, which will later be replaced with the external light. Power for the buck converter will be derived from Vout and ground. A primary concern is the variability of Vout, as it does not appear to be a constant voltage source. Additionally, modulating the load on the buck converter may lead to voltage fluctuations. The available data from Pololu regarding the buck converter's behavior is limited. The buck converter operates at over 80% efficiency when the input voltage is 24V, driving 12V at 48mA for the LEDs. With 24V at 55mA equating to 1.32W, it is calculated that a safe draw of 80% is 1.056W, leaving minimal margin for error. However, testing to determine how the regulator responds to voltage supply changes or loading has not yet been conducted due to unavailability of parts. There is uncertainty regarding the approach being taken, particularly with the complexity of extracting a signal from the four connection points, as most components are SMD, and confidence in soldering to the PIC pin is lacking. Additionally, there is a query about utilizing the SHDN pin on the buck converter to reduce power consumption during inactive periods, which does not appear feasible with the current design.

The circuit design involves a series of interconnected components that work together to achieve the desired LED dimming and external light control functionality. The initial stage includes a power source connected to a resistor, which limits the current flowing through the LEDs. The six LEDs are arranged in a configuration that allows their brightness to be controlled via the PWM signal generated by the PIC18F4520 microcontroller. This microcontroller's pin 7 is crucial for modulating the signal, which is necessary for achieving the dimming effect on the LEDs.

The transistor acts as a switch, controlling the current flow to the LEDs based on the PWM signal. The choice of a suitable transistor is essential to ensure that it can handle the current required by the LEDs without overheating or failing. The grounding of the transistor is a critical design choice, as it allows the microcontroller to effectively control the operation of the LEDs.

The integration of the external 12V LED strip introduces another layer of complexity. The intention to use a buck converter to step down the voltage from the opener's Vout to power the LED strip is a practical solution, but it necessitates careful consideration of the converter's efficiency and load characteristics. The use of a voltage divider to supply the MOSFET adds another level of control, allowing for the external light to be turned on or off in response to the PWM signal.

Concerns about the stability of Vout are valid, as fluctuations could impact the performance of both the LED dimming and the external light control. Testing the circuit under various load conditions will be critical to understanding how these variables affect the overall functionality. The desire to utilize the SHDN pin for power management during inactive periods is a forward-thinking approach, aimed at enhancing energy efficiency, though it may require further circuit modifications to implement effectively.

Overall, this circuit design presents a robust method for controlling LED lighting within a garage door opener system while also enabling the operation of an external light source. Careful attention to component selection, circuit stability, and power management will be essential for achieving the desired performance outcomes.A suitable method to sense when some LEDs in my Garage Door Opener are on. A power source (perhaps the same as Vout below) runs to a 1. 5Kohm resistor which runs to 6 LEDs then a transistor of some sort. The transistor is attached to ground and pin 7 on a PIC18F4520. Pin 7 on the PIC is a digital out thus I`m assuming PWM is used to dim the LEDs. To use the Opener as a control signal to control an external light repeating the PWM for fancy dimming. The external light is a 12V 1W LED strip. Power for the external light I was hoping to also take from the Opener`s Vout using a buck converter. Existing parts in the Opener: V2 = Vout and/or the LED power source (not sure if they`re one and the same) R1 is the current limiting resistor D1-6 are the existing LEDs Additional components for my circuit are: R3, R4 voltage divider to power the mosfet.

M1 FQP27P06 mosfet, I`ve chosen another mosfet in ltspice which should be similar. V1 12v out from the D24V3AHV buck converter. R5 simulated load for testing in ltspice. This will be replaced with the external light. What I`m not showing here is the power coming into the buck converter. This will come from Vout and Gnd. My primary concern here is that my output will be all whack because Vout is not a constant voltage source it seems. That and I will be modulating the load on the buck converter meaning it`s voltage might go all over the shop.

There doesn`t seem to be any data available from Pololu on the exact behaviour. The buck converter is > 80% efficient when Vin is 24v and driving 12v @ 48mA for the LEDs. Given 24v @ 55mA is 1. 32W I calculate that I can safely draw 80% of this which is 1. 056W. Not much room for error however I haven`t yet received the parts I will be using for this so I haven`t tested how the regulator is affected by changes in voltage supply or loading. The info on the site hasn`t been much help. I`m wondering if there`s a better way of doing this I`m probably causing myself headaches by trying to pull a signal from these four connection points.

The problem is that nearly everything is SMD and I`m not confident enough with an iron to wire into the PIC pin or anything there. Also, I was wondering if there would be a way to also use the SHDN pin on the buck converter to draw less power when the system is inactive.

With my current draft I can`t see it being possible. 🔗 External reference