My setup wont give me low voltage either. The orignal problem uses 12.2v and a downstream N-channel MOSFET. That setup will only go from 12.2 down to 11.8.
Im using this setup (not the same MOSFET, but a type that worked before).
So to solve the problem i did the same setup on a lab board. This setup runs the arduino 5 volts and power an LED. This setup, with the same code will only go between 2 and 4 volts...
I looked at your wiring diagram. The +60 and -60 volt wires seem poorly defined. Are you using 12v and 0v on those two nodes? I expect that the MOSFET you are using has a Vt threshold voltage of 4v. That is too high. Chose a MOSFET with Vt near 2v, like in the wiring diagram: rfp30n06
How can you not be using the solenoid (or something else that is switched on and off)? The "rest of the setup" is designed to switch something. What is it you are switching? It can't be "nothing", or there will be a big hole in your circuit and it's no wonder it's not working.
Please show the actual circuit you are working with, not the circuit that you based your circuit on.
How can you not be using the solenoid (or something else that is switched on and off)? The "rest of the setup" is designed to switch something. What is it you are switching? It can't be "nothing", or there will be a big hole in your circuit and it's no wonder it's not working.
Please show the actual circuit you are working with, not the circuit that you based your circuit on.
Im building a variable Power supply. Are you telling me i can't messure 0-12v without load on the circuit??
I think you are going about your project the wrong way. You want to vary a voltage, but instead you are rapidly switching on and off a ground connection. The two are not the same thing.
I think what you really want to do is to create a 12V square wave PWM signal and then low-pass filter that to create a voltage.
Yes, a schematic would help lots.
But, if you are just wanting a variable voltage, without a load (current), you can get 0 - 5 volts off a pwm pin. If you want it filtered, add a resistor and capacitor.
What is your goal?