Questions tagged [potentiometer]

Electronic component forming a three-terminal resistor with a sliding contact. Acts as a variable resistor / voltage divider, manipulating the amount of current flowing through it.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
59 views

Arduino resets when 10k pot is set to max value [closed]

I have a simple circuit, where a use tone in order to send a melody to a speaker. Then I added a 10k potentiometer, along with a BJT, in order to control the volume. This is the schematic: A weird ...
user1584421's user avatar
  • 1,371
0 votes
2 answers
36 views

Why is my LED strip value always equal to 255 on my potentiometer?

I'm pretty new to Arduino and this is my first project I'm working on and I'm really struggling with why my code isn't working properly. The LED strip should be able to adjust the colour with one ...
user92341's user avatar
2 votes
2 answers
58 views

Using Internal Timer Interrupt to Read Analog Sensor

I'm having difficultly using an internal timer interrupt with my Arduino Nano to properly capture a specific value from a linear potentiometer and then instantly stopping the actuator. I basically ...
wickedhurricane's user avatar
1 vote
1 answer
68 views

Digital Pot with Arduino

I am a newbie in electronics. Please correct me if I am wrong. I am replacing a pot with a digital pot (DS3502) in a circuit. The Vcc of the circuit is 12V. But the digital pot can have a maximum of 5....
Teena's user avatar
  • 23
1 vote
0 answers
30 views

Troubleshoot/Diagnose Arduino circuit

I've built the attached circuit with the following changes: I used Arduino Nano I used 10K pot 12V is connected to VIN pin (instead of RAW) the Arduino was connected to the PC by USB for the use of ...
Takata's user avatar
  • 71
1 vote
1 answer
89 views

Avoid 1-LSB noise on ADC readings

I have a potentiometer connected to an ADC input of an Arduino Leonardo. The ADC resolution is 10-bit (0..1024), while I need just 7-bit (0..127). I use a simple filter to reduce the noise and then a ...
Mark's user avatar
  • 357
1 vote
0 answers
82 views

Digital potentiometer DS3502 question

I am using adafruit DS3502 breakout board for arduino. When I follow procedure written in https://learn.adafruit.com/ds3502-i2c-potentiometer/arduino My serial display shows correct voltage values. My ...
adeel asif's user avatar
-1 votes
1 answer
69 views

Pls help with this prompt. I've been struggling last 2 days with this and its due tomorrow [closed]

"Use an Arduino, two potentiometers, and an alarm. Make one of the potentiometers act like a volume control, and make the other potentiometer control the tone that the alarm makes." I added ...
Mahmodol's user avatar
1 vote
1 answer
1k views

How do I control the speed of a 2-wire fan with an Arduino and only a potentiometer?

I am trying to vary the speed of a 2-wire fan by using a Arduino Uno and only a potentiometer. Initially, I assumed that I could go about doing so by using a code that I used for dimming an LED. When ...
AI09's user avatar
  • 13
-1 votes
1 answer
77 views

How to connect Draw wire encoder to Arduino Uno?

Hello Stack Community, I am new to Arduino, and I am trying to figure out how to connect a draw wire encoder to Arduino and collect data from it. I have attached a link of the product that I currently ...
Shiv's user avatar
  • 3
-1 votes
1 answer
54 views

How to control 1 servo with 2 potentiometer?

I have been building a RC plane completely from scratch using an arduino but I am fairly new to this. Essentially I have been able to make my two arduinos communicate with each other so that when one ...
Anudeep Reddy's user avatar
-1 votes
2 answers
968 views

Perform Volume Control on arduino speaker

I am following this guide to produce tones with the arduino: https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneMelody This uses the tone() builtin function. The connections is that one pin of the ...
user1584421's user avatar
  • 1,371
0 votes
1 answer
118 views

ESP32 Potentiometer issue: Resolution mismatch of the potentiometer with unlimited resolution and reading the values with Wire.h

I have the problem, that the potentiometer goes from the range of 0 Volts to 3,3 volts. But within this range the measured value goes from about 0 to 65535 multiple times (over 10 cycles). When I ...
schnecktec's user avatar
-1 votes
1 answer
165 views

Can I change the text on the LCD by rotating the potentiometer?

I am working on a project on my Arduino Uno in which I want to change the text on the LCD every time the potentiometer has been rotated. In order to do this, I have stored the angle values into an int,...
Ana's user avatar
  • 1
-2 votes
2 answers
140 views

Emulate Joystick

I am trying to automate a existing system that uses Joystick as its input to move the Motors in x&y directions. I actually want to emulate arduino to exactly do what the joystick is doing by just ...
ASAD ALI's user avatar
1 vote
1 answer
162 views

Servo keeps rotating

I use a 360° servo with a program I made on an Arduino Uno. The program was meant to control two separate servos with two potentiometers on a breadboard. When I used 180° and 90° servos, it worked ...
aaron vu's user avatar
1 vote
1 answer
197 views

Proteus potentiometer value always highest

#include <Servo.h> #define potpin A0 int savebutton=2; int button1=3; int button2=4; int button3=5; Servo servo1; Servo servo2; Servo servo3; int servo1ipos=90; int servo2ipos=90; int ...
Raybom's user avatar
  • 29
0 votes
1 answer
146 views

Multi turn potentiometer are a pain should I use a incremental encoder instead?

I built a robotic arm, the problem is I want to rotate the base more than once in order to complete a job, so I figured out I could use multi turn potentiometer. The problem I am facing is the ...
Ritesh Sharma's user avatar
10 votes
4 answers
2k views

How do you handle sensor drift?

I have a pair of potentiometers, on the Arduino, the output seems to drift, by one or 2 digits, back and forth. I would prefer they were read as one fixed value, without variation when their knobs are ...
j0h's user avatar
  • 882
2 votes
1 answer
137 views

Question regarding using Arduino and MIDI

I'm using an Arduino Leonardo for sending MIDI In and Out messages to Ableton Live. Components include a Potentiometer, a Capacitive Touch Sensor, and a DC Motor, which I'm powering with a L298N Motor ...
zRockafellow's user avatar
2 votes
2 answers
296 views

Assistance with PID DC Motor Acceleration

I'm working on a project that uses an Arduino UNO and a motorized fader to send and receive MIDI data from my computer/musical keyboard. I'm trying to set up my motor with PID to control the position ...
zRockafellow's user avatar
1 vote
1 answer
1k views

DC Motor Acceleration with PWM

I'm not sure why this has been so difficult for me, but I'm trying to control the acceleration of a 10v DC motor with an Arduino UNO and an L298n H-Bridge. Using a 12v regulated power supply to power ...
zRockafellow's user avatar
2 votes
1 answer
83 views

Touch Sensor and Potentiometer - Need some help

I'm using an Arduino Nano with a capacitive touch sensor and a potentiometer. I'm trying to get my code to differentiate between three different program states. One is when my touch sensor is NOT ...
zRockafellow's user avatar
1 vote
0 answers
48 views

BLDC motor erroneous running with digital potentiometer

I am using this digital potentiometer http://www.farnell.com/datasheets/31917.pdf to control a BLDC motor with Arduino Mega. When I am running the below code, the motor runs at the lowest speed when I ...
Shyam Parmar's user avatar
2 votes
2 answers
142 views

Can anyone help be get readings off of my potentiometer with a push of a button?

Hi I'm trying to get my Arduino Uno code to work with a in a specific way where if I push a button, the Arduino will read the raw potentiometer value once and if I don't push it nothing happens. https:...
Matt's user avatar
  • 31
0 votes
2 answers
697 views

How can I add a potentiometer and more buttons to my custom game controller?

I'm new to using Arduino, and know next to nothing about programming. I'm currently trying to add a potentiometer, and possibly a few more button inputs to my 3D-printed guitar controller project It ...
taj1994's user avatar
1 vote
4 answers
723 views

Can I control LED brightness with potentiometer without any code, as well as reading the potentiometer value?

I am just getting back into electronics and have started to play around with making my own button box. I am trying to control an LED's brightness using a potentiometer, while also reading the ...
HectorBart's user avatar
1 vote
1 answer
1k views

RGB LED using potentiometer and push button

I'm currently working on an assignment which has to turn on an RGB LED using a potentiometer and button. The problem I currently have is that the button is supposed to change the color I want the LED ...
Matt Weber's user avatar
0 votes
1 answer
974 views

ATTINY85 and POT

I need to read a potentiometer value from an ATTINY85. I have big fat 10K POT but for this use case I need it to be very small so I used a salvaged 2.4K one, the kind that is soldered directly onto a ...
Georges Legros's user avatar
0 votes
1 answer
42 views

What is this potentiometer for?

I am working on an anemometer project using Arduino. I don't know barely anything from Arduino and I am following this tutorial. I have some doubts on the making part. This is what I have to make: ...
sonlas10's user avatar
  • 101
-1 votes
1 answer
67 views

Using HC-SRO4 sensor and looking for obstacle

I am working in TinkerCAD, I want to design and simulate a circuit in which there are following components: 1.)An Arduino board. 2.)A potentiometer 3.)An HC-SRO4 sensor 4.)An LED. So, the sensor ...
Mahima Pareek's user avatar
0 votes
0 answers
232 views

Tapered log potentiometer to linear formula

I have a tapered log 10K potentiometer. I would like some function which returns tapered log value to linear values. The potentiometer is a slider. When connected to the Arduino the wiper displays the ...
user66825's user avatar
1 vote
1 answer
172 views

very small PWM when timer says zero

I'am getting a little PWM signal when my potentiometer is at zero and OCR2B always reads zero on the serial monitor. My LED has low forward voltage but I still get a little PWM on the pin when I prob ...
northershoveler's user avatar
2 votes
2 answers
882 views

Arduino PID controller for Triac

I am designing a new soldering station which will use a 24 V ac soldering iron. I started to make some research and I designed a few steps of the soldering station. I will use a 24Vac/100VA toroidal ...
beard999's user avatar
1 vote
0 answers
69 views

Potentiometer motor system is not working

I am setting up a potentiometer system that includes a motor that is supposed to spin with the potentiometer changing the speed of the spin and a button to reverse it. I checked the coding and it is ...
Lea French's user avatar
0 votes
0 answers
250 views

Multiple devices on 5v pin

Im soldering an LCD screen to my Arduino as I don't have a breadboard and plan on it being permanent. I'm wondering how I should connect the potentiometer (to control contrast). If I connect it as ...
user avatar
1 vote
2 answers
305 views

Substitute multiple potentiometers for push buttons and single potentiometers

this is my first post here. For some time I have been struggling with a problem and would like to know if anyone has a solution to share. I am building a 4 tone sequencer, where I use 4 ...
Sushyoshi's user avatar
2 votes
2 answers
208 views

Arduino Uno lag in simple loop

I have a simple Arduino sketch which I have been playing with on my Uno. The idea is simple, the user turns a potentiate (pin A2), when they pass a certain threshold a LED is turned on (pin 7). Here ...
Hoppy's user avatar
  • 159
0 votes
2 answers
220 views

Set slide potentiometer values

I am using the Grove - Slide Potentiometer (http://wiki.seeedstudio.com/Grove-Slide_Potentiometer). How can I set the potValue so that at maximum it will 128? int potPin= A0; int readValue; int ...
dkin's user avatar
  • 27
1 vote
2 answers
197 views

How to use a potentiometer to access data within a 2 dimensional array?

I'm trying to create a 2D array of notes that are split into 3 scales. There are 3 notes in each scale. There are 3 buttons to play each note and I want to use an available potentiometer to select ...
Robbie Perry's user avatar
1 vote
0 answers
2k views

How would i add PID control to this servo motor control program. potentiometer

I have installed an AutoPID library (by ryan downing version 1.0.3) to my arduino IDE, but im not sure which parts i will have remove to get the PID to control the servo angle. Thanks for the reply, ...
Somerled's user avatar
1 vote
0 answers
89 views

Trying to get a servo motor to move to certain setpoints when a control potentiometer shows certain values

Here's my Code so far: void setup() { Serial.begin(9600); } void loop() { float a; float angle; int setpoint; a = analogRead(A1); angle = map(a, 0, 1023, 0, 180); if ( (angle>0) &...
Somerled's user avatar
2 votes
2 answers
801 views

ignoring potentiometer value variations

I've got a 50k potentiometer connected to an Arduino Uno. The user should adjust the hue of an Adafruit NeoPixelStrip. I've got the following code inside the loop function: int hue = analogRead(...
WalterBeiter's user avatar
0 votes
2 answers
98 views

Cycling through switch states

I'm making a desk lamp out of 2x WS2811 strips (attached to the triple ports at top right of board below). The brightness of the strips is controlled by a potentiometer, and the colour by a switch. ...
Jim421616's user avatar
  • 188
1 vote
1 answer
119 views

Arduino UNO - Fluctuation of inputs and outputs

I have some pots (100K) on my Arduino board. When I raise the value of one those resistance other pots are being changed (Not too much but it's significant). I have no idea what's going on. I tried to ...
X4748's user avatar
  • 113
0 votes
1 answer
114 views

Possible to have different torque levels on MG966R servo with Rotary Potentiometer?

I want to apologise first and foremost, and say that I am very new to Arduinos! I wanted to control the torque on a MG966R servo so that I can separate it into 4 different torque levels. I read that ...
CaptainLemon's user avatar
0 votes
2 answers
2k views

Value read is not changing while rotating pot in arduino?

I am trying to read voltage using analogRead in Arduino Uno from a voltage divider circuit consisting of 1k resistor and 10k pot. The Pot used is bourns 3296. The values obtained only range from 1011 ...
Megh's user avatar
  • 1
1 vote
0 answers
245 views

Digital Potentiometer (TPL0501) Control Issues

I'm using SPI library in my code for controlling a digital potentiometer (TPL0501) with Arduino Mega. The code I have is: #include <SPI.h> byte address = 0x80; const int CS = 53; int SCLK = ...
George's user avatar
  • 11
0 votes
1 answer
750 views

PWM Control, How to stop LED from Flickering?

What is required is controlling the brightness of an LED using both Buttons and a Potentiometer, Button A: Increase Button B: Decrease /Dim Potentiometer: Increase and Decrease, This however must ...
Boi G's user avatar
  • 1
0 votes
1 answer
939 views

Control 2 ESC with a potentiometer with arduino

I have 2 ESC (electronic speed controller) which control these brushless motors: Hobbyking Donkey ST3511 Brushless Motor I would like to make them work with a poentiometer, under arduino. I have a ...
Pierre Portron's user avatar