#### Huttojb1

##### Member

not been on here for a while, I have picked my project up recently and actually stuck on the same issue I had previously.

I have a analogue gauge that outputs (on a needle) a value dependable on resistance. When I connect the gauge signal pin to the resistance box and reference on ground I get a range of vales from 10ohms to 240ohms.

240 ohms gives me 0

216 ohms gives me 20

176 ohms gives me 40

153 ohms gives me 50

124 ohms gives me 60

92 ohms gives me 70

60 ohms gives me 80

40 ohms gives me 90

10 ohms gives me 100

I would like to control the value via a PIC, I sure I got this working before when I put a transistor across a 240ohms resistor and PWMed the Transistor to ground. But this is not working. Is there another way?

thank you in advance and stay safe all

Jason