How can I change voltage instead of current?

Click For Summary
To change voltage instead of current in a microcontroller setup, it's essential to correctly connect all three terminals of the potentiometer. The clockwise pin should connect to 5V, the counterclockwise pin to ground, and the wiper to the ADC input pin on the microcontroller. This configuration allows for proper voltage readings between 0V and 5V. Additional components like resistors and capacitors can help stabilize the readings. Ensuring all connections are made correctly resolves issues with voltage detection.
kolleamm
Messages
476
Reaction score
44
TL;DR
change voltage instead of current.
I have a micro controller that reads voltages from 0V to 5V
I did some tests on a potentiometer and I couldn't seem to get any readings of values in between. (range is 0-255 ,, 0 is for 0 volts and 255 is for 5V)
Therefore I'm assuming the voltage is staying the same as it turns but the current is changing.

How can I get the voltage to change instead of the current?

Thanks in advance
 
Last edited:
Engineering news on Phys.org
kolleamm said:
Summary: change voltage instead of current.

I have a controller that reads voltages from 0V to 5V
I did some tests on a potentiometer and I couldn't seem to get any readings of values in between. (range is 0-255 ,, 0 is for 0 volts and 255 is for 5V)
Therefore I'm assuming the voltage is staying the same as it turns but the current is changing.

How can I get the voltage to change instead of the current?

Thanks in advance
It's not clear what your setup is. This "controller" is a power supply or a meter? You say it "reads" but maybe you mean it produces?
 
phinds said:
It's not clear what your setup is. This "controller" is a power supply or a meter? You say it "reads" but maybe you mean it produces?
My bad I meant a micro controller attached to a computer that reads input voltage values from it's pins.
 
kolleamm said:
My bad I meant a micro controller attached to a computer that reads input voltage values from it's pins.
OK, still very unclear
how about a schematic of your circuit, showing ALL component values
and what micro controller you are using

otherwise it is just a guessing game trying to figure out what you are trying to doDave
 
kolleamm said:
My bad I meant a micro controller attached to a computer that reads input voltage values from it's pins.
Reads input values from what? Is that device outputting a voltage or current signal? Typically you can change a voltage signal to a current signal by adding a resistor to the circuit...
 
kolleamm said:
I have a micro controller that reads voltages from 0V to 5V
I did some tests on a potentiometer and I couldn't seem to get any readings of values in between. (range is 0-255 ,, 0 is for 0 volts and 255 is for 5V)

The potentiometer has three terminals to solder to. It sounds like you connected to only two of these?
 
kolleamm said:
My bad I meant a micro controller attached to a computer that reads input voltage values from it's pins.
Hook it up like this. The "clockwise" (CW) potentiometer pin should connect to 5V, and the CCW pin should connect to ground. The wiper goes to your ADC input pin on the microcontroller (uC). R2 and C1 are optional, but will help to steady the readings you get.

https://www.w9xt.com/img_1224968365_15498_1331504476.png
245775
 
Last edited:
  • Like
Likes NascentOxygen and Asymptotic
NascentOxygen said:
The potentiometer has three terminals to solder to. It sounds like you connected to only two of these?
You were right, I had to attach all three to the board and that fixed it. Thanks all
 
  • Like
Likes Asymptotic and berkeman

Similar threads

  • · Replies 49 ·
2
Replies
49
Views
4K
Replies
68
Views
7K
  • · Replies 16 ·
Replies
16
Views
2K
Replies
30
Views
1K
  • · Replies 31 ·
2
Replies
31
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 23 ·
Replies
23
Views
5K
Replies
6
Views
2K
Replies
2
Views
2K