Hi there,
First post for me, I take the occasion to thank Dave! Thanks to the videos I understood a lot more about electronics. I'm a computer programmer, and I've been into electronics as a hobby for a little more than a year now, using mainly arduinos and ready to use modules. But I now take more and more interest into understanding the real basics of electronics.
As the videos regarding the uSupply design were really enlightening, I tried to implement a simplified version of it. Got myself an LT3080, an LM334 load... And the voltage regulation works quite well from the filtered PWM of the micro controller.
The problem though, comes from the current sensing circuit, which is actually the most interesting part of the whole design in my beginner view. To test the principle I used a 1R 5W resistor, 4 10k resistors and an LM358. The load I use is a 27R power resistor, in order not to blow anything if the current control doesn't work. None of the used resistors are precision ones, it's just for the sake of proving the design. The 10k resistors pair nicely though. The op amp output is floating (except for the negative feedback).
In my test the LM358 is powered by 12V/GND and the load is powered by the arduino 5V line (to avoid too much power being dissipaded).
If the load is not connected to ground the output is sitting at 0.68V
If the load is connected (and gets warm quick ^^) the voltage drop accross the 1ohm resistor is 160mV according to my measurement, and the opamp output doesn't change a bit.
I tried many combinations, but I can't get the opamp putting its output to 0V or 160mV as expected. Any idea would be welcome (even though I know I will go facepalm if I read that I made a silly mistake

).