few updates:
- I have tried another new board, but same result happens. Also, I noticed that the 3.3v mosfet is really hot even at no load.
Hun?
Please measure the impedance of the mosfet pads to GND on the PCB. No mosfet. You should see 100 ohm, our current default pull-down resistor. Definitely not enough to make a to220 mosfet get 'hot'.
Again, those 'Gate' voltages sound wrong. A 1.35v from gate to GND should not output 3.436v, if anything, it should be close to 0v.
I measured the resistance of mosfet drain pad to ground (with no mosfet installed), result is 50.7k ohm. those gate voltages happen when no load, but when load is put they become reasonable.
I don't understand your posts. Here you show 12V directly connected to the drain of the MOSFET and yet you previously said the voltage was around 5V. Did the previous measurements have a 5V regulator in the path to the drain?
So what are the measurements in this configuration? Whichever configuration you wish to trouble shoot let's stick with it and not jump around confusing the matter.
here is the one configuration I stick with:
No load test of 3.3v rail:
v_gate = 1.35v
v_drain =4.64v from external buck module using same 12v source.
v_output_3.3v = 3.436v
v_opamp_supply = 12.38 supplied directly from 12v supply.
v_opamp_feedback = 3.446v
7805_5v_voltage_ref = 5.044v
7805_3.3v_voltage_ref = 3.360v, see note below.
v_12v_input = 12.38v.
It would help if you included pin numbers so we know we aren't working around a communication error, but this is ok for now.
NOTE: I noticed that before connecting power to mosfet drain, the 3.3v reference voltage which is derived from the resistor divider is only about 1.4v while the 7805 voltage is 5.044v. when connecting the mosfet drain power, it becomes 3.3v.
When you have no power on the MOSFET the output is a load on the feedback circuit. The diode D3 connected that load to the V_3.3 signal which is a resistor divider and so is subject to change in value with loading. When the FET is powered the circuit keeps the output very near the reference and the diode does not conduct. I'm not sure the diode is required, but it should not hurt. This is why V_3.3 is dragged down with no power on the FET drain or you will see the same thing if the op amp doesn't drive the FET.
I was having a brain cramp. I was reading gate voltage at 1.35V and thinking it was a bit low, but ok, then I realized that's not with a source at ground but at 3.4V!!! So this is impossible. The FET would be fully turned off and the source pulled down to ground by the 100 ohm R22.
It is hard to think of a way you could have 1.2V between the source and drain when the gate is pulled so low. if the source and drain were swapped you would see the body diode turn on, but the voltage between them would be well less than 1V with 33 mA of current. Still, this almost has to be a wiring error with the FET or it is not the right part or a counterfeit part.
I see you got parts from LCSC. I don't know if their parts are real or counterfeit. They sell Xilinx parts at less than a quarter of other distributors. How can they do that if they are buying them from Xilinx?
3.3 ohm load test of 3.3v rail:
v_gate = 6.77v
v_drain =3.9v from external buck module using same 12v source. maybe it drops due to higher current
v_output_3.3v = 3.28v
v_opamp_supply = 12.11 supplied directly from 12v supply.
v_opamp_feedback = 3.337v
7805_5v_voltage_ref = 5.044v
7805_3.3v_voltage_ref = 3.331v, see note below.
v_12v_input = 12.11v.
buzzing completely gone
however, the post you quoted was another test after that, so let's stick with the ones written here.
Ok, a drop in Vd of over 0.7V with 1 amp of current from a 2 amp supply is pretty poor performance. With over 3V Vgs and 0.6V Vds the FET should be passing 15 amps. Again, something is very wrong with the FET or your load resistor is not what you think it is.
I expect to see the two inputs to the op amp at virtually the same voltage. The spec on the op amp is for low single digit mV input offset, so a difference of 14 mV should not be seen. You also have 10 mV across the 3.3K feedback resistor which indicates 3 uA of bias current which is far above the low nA spec of the LM358.
Any chance your op amp is a counterfeit part? Did you buy them from a reputable source?
well, lm358 bought from JLCPCB and LCSC, Chinese parts. I have previously bought ones but also from the same source. no way I can get ones now.
voltages on input pins of the opamp are different only when no load, but when putting load it gets nearly the same as shown in measurements... only few mV of difference.
the problem is that all 125 boards have the exact same parts, i could try to remove one opamp and install one of my older ones to see if it makes a difference.
[/quote]
You had 125 boards made before you debugged the circuit??? Wow!
Vfb is about the same as Vref, but 6 mV offset is still outside the op amp spec even if only a little. However the feedback is 60 mV off from the 3.3V output voltage so 18 uA into the -input on the op amp, well out of spec, about 1000x out of spec. The diode will pass a tiny current, but much smaller than this when the voltage is only a few mV.
To be sure of what you are measuring, please make the measurements directly on the pins of the op amps and the FET pins. I see I was looking at the wrong op amp circuit previously. This op amp circuit is pins 5, 6, 7. The FET is still pins 1, 2, 3, or it might be more clear to call them G, D and S respectively. Go back to your data sheets to make sure there's no mistake in the pin out.
Clearly something is wrong and you need to rule out every assumption possible. Debugging is like being a detective. Collect evidence and figure out what info is right and what info is wrong. Someone in the circuit is lying to you. Who can it possibly be? Right now the FET looks to be the guilty party. Try to verify the wiring and pin numbers.