I'd like to control my boats engine trim gauge using an Arduino.
It's a Faria analog gauge that requires the following resistance:
Trim Gauge (Measured in ohms)
UP MID DOWN
160 38.7 10
The boats power supply is 12v.
From what I have read, I can use PWM and a N-Channel Mosfet sunk to ground to control it.
Is it really that simple?
The gauge has 4 pin connector (see attachment).
I assume I connect P1.1 (+ Positive) to the 12v (boat power) and P1.3 (Trim Signal) to an n-channel mosfet that is connected to the ground side of the gauge (P1.4) and one of Arduino's PWM pins driving the mosfet.
Then as I change the PWM output value, I should see the gauge change values...
Anything else I'm missing?