Go Down

### Topic: voltage divider ground problem (Read 786 times)previous topic - next topic

#### Andrew04R6

##### May 03, 2012, 06:27 pm
Hello all!

I have a 12V power source, which powers a arduino as well as a mosfet that controls a 12v computer fan.
I wanted to measure the voltage after the mosfet in relation to my pwm signal.
I created a voltage divider on the mosftet output using 100K (+ side) and 47K resistors (- side) of which the output runs to an analog pin on the arduino.
When the output of this divider is not connected to the arduino, i get what i expect, about 3.8v when the output of the mosfet is 12v.
However, when connected to the arduino analog pin, the voltage soars as the mosfet output voltage goes down. I think I'm lucky that i haven't fried it.
I am obviously not understanding how the ground is working through the arduino.

Can someone lend a hand?
Thanks everyone for you time!
-Andrew

#### Grumpy_Mike

#1
##### May 03, 2012, 06:30 pm
Is the -ve side also connected to the arduino's ground?

#### Andrew04R6

#2
##### May 03, 2012, 07:22 pm
I believe in one of my "experiments" to figure out what was going on, i tied the - mosfet output side to the arduino ground pin.
I wish I could remember, but it was very late last night.
Next time I will have to record my steps.

Would that normally be the correct way to do this?

#### Grumpy_Mike

#3
##### May 03, 2012, 10:33 pm
As you said:-
Quote
100K (+ side) and 47K resistors (- side)

with the junction between the two resistors going to the analogue input AND the -ve of your 12V going to the arduino's ground.

#### Andrew04R6

#4
##### May 04, 2012, 12:12 am
Hi, yes, misunderstood what you meant.
+12v --100k--<to A0>--47k--ground

I will post a full wiring diagram tomorrow since I have a low pass filter on the pwm and some other things, I dont think they are affecting the system, but obviously i'm missing something.

Thanks!

Go Up

Please enter a valid email to subscribe