If voltage output is overloaded during Vout is switched on, usually it will shut off with good error message. But if it is overloaded after Vout was already on, then there is a not expected reaction.
For hard short circuit voltage immediate drops to 0V and current limits to ~300mA. After some seconds the currents starts to toggle between 0 and 300mA. Easy to reproduce with just a single wire from Vout to GND.
I have also tried with ca. 5 Ohm at output instead of hard short circuit. Current is ~400mA. The output voltage dropps first to 2V before it also starts to toggle. Voltage and current then periodically toggles between 0V/0mA and previous value.
But-Pirate meanwhile shows active output, while the measured voltage is 0/2V. It seems that overloaded voltage regulator is not detected by software. eFuse cannot detect that, as the current was never high enough. It was limited by regulator before. Also the toggling values seems to come from voltage regulator.
I have measured output current and voltage with oscilloscope. As a ânew userâ I canât upload the picoscope measurement files.
Missed one information. Vout was enabled with 5V and 500mA. Also reproducable with lower currents, but there the likelihood increases that eFuse will detect the short circuit.
Iâm not 100% certain, but I think the confusion might stem from the limits of the LDO vs the current sense.
The AP2127K regulator has a maximum output of 300mA. The current sense allows maximum 500mA limit, which is more than the regulator can output. Anything above ~300mA limit (not exact, lots of offsets here and there) will be handled by the LDO instead of the efuse.
There are a few reasons I chose 500mA fuse max instead of 300mA.
Inrush current when the supply is enabled/new loads attach can exceed 300mA while not being particularly dangerous. In this case we might want a higher limit to accommodate an acceptable level of inrush.
The op-amp offsets/component tolerances result in 10-20mA difference between devices. If we used a firm 300mA efuse then some devices could really only deliver 280mA or so.
As I recall the math/component selection was a bit cleaner with 0.5A, but I did all of that years ago and would need to review the design to tell you precisely which components were the limiting factors.
Thank you for the explanation. The mentioned behavior is caused by the lower limit of the regulator compared to efuse. But I would expect any reaction of buspirate firmware if the regulator cannot held the expected voltage on the output. At the moment it is possible to have enabled output, but with lower or toggling voltage on output.
@masterX244 had such an issue on 39C3 where he connected a broken multimeter to replace its battery supply by buspirate. It showed 412mA, but also 0,7V instead of 2,8V. It is also relevant if the load is connected before or while Vout is enable.
I forgot to keep my units straight Need to compare ADC to ADC counts and volts to volts
Code is implemented, but the power supply comes up slowly. We could introduce a longer delay during startup, but that seems annoying.
Instead Iâll add a new function for polling the voltage after startup, which will need a cycle counter so it doesnât hit on core 2 until the voltage has stabilized somewhat.
Sounds good. 10% as default value should also be good.
As an alternative to the delay after enabling the output, you can maybe debounce the measurement. So an alarm would only be triggered after some number of measurements or after some time if the voltage is not expected.
The final major issue is to completely rework the PSU monitor system. Itâs really only designed for a single error source, so I need to think through how do add the new under voltage alarm in a less hack-y way.
Youâre right, and everything should be a flag honestly. Maybe we can support both.
The new user experience of W 3.3 50 to setup a supply with current limit is pretty slick, no need to remember flags for the most common operation. Mixing positional and flags is ugly though, and a third positional seems excessive. Supporting both methods might be a good compromise.
If I understand it correctly you want to disable voltage monitoring for commands like W 3.3 or W 3.3 50? At least I donât see a monitoring setting in above pictures for these commands. Usually there is no reason to disable voltage monitoring as a wrong voltage on output is a faulty condition. So therefore I request to have it always enabled with e.g. 10% if nothing else is specified with -u.
To request disabled voltage monitoring I think it is good to support both -1 and 100.
They way it is setup now is that 10% under voltage limit is the default on all quick positional commands and also when using the prompts. You need to specify a -u to change it from 10%.