Loading...
Welcome,
Guest
. Please
login
or
register
.
May 21, 2013, 08:38:30 am
|
Arduino Forum
::
Using Arduino
::
General Electronics
:: Damn Pot
« previous topic
next topic »
Pages: [
1
]
Go Down
Print
Author
Topic: Damn Pot (Read 319 times)
0 Members and 1 Guest are viewing this topic.
yanito
Gibraltar
Offline
Newbie
Karma: 0
Posts: 37
Damn Pot
«
on:
February 10, 2012, 06:51:31 am »
Bigger
Smaller
Reset
Afternoon all,
Trying a simple analog read on an arduino uno analog pin 2 from a potentiometer, and then using the Serial.print to display this input, the problem I have is the reading keeps fluctuating when the pot is stationary, I have changed the pot and still the same issue.
Any ideas what could be causing the issue? Tried a resistor on the wiper but no improvement.
Thanks,
Mark
Logged
Runaway Pancake
Offline
Edison Member
Karma: 23
Posts: 1372
Now, More Than Ever
Re: Damn Pot
«
Reply #1 on:
February 10, 2012, 09:00:04 am »
Bigger
Smaller
Reset
How much is is fluctuating?
Could be coupling noise (AC - it's all around us)...
Tried shorter leads?
A 0u1 bypass?
Logged
Don't Be Upset By The Results You Didn't Get With The Work You Didn't Do
yanito
Gibraltar
Offline
Newbie
Karma: 0
Posts: 37
Re: Damn Pot
«
Reply #2 on:
February 10, 2012, 12:52:46 pm »
Bigger
Smaller
Reset
Hi runaway_pancake,
The values keeps jumping from 150 to 134 then 161 then back again, the leads I'm using are short breadboard connector leads, but there were close to the laptop at the time, I will set it up again and try it.
"A 0u1 bypass?" - Sorry totally lost me there
Many thanks for your help.
Mark
Logged
jwatte
Offline
God Member
Karma: 3
Posts: 812
Re: Damn Pot
«
Reply #3 on:
February 10, 2012, 01:11:51 pm »
Bigger
Smaller
Reset
Quote from: yanito on February 10, 2012, 06:51:31 am
Trying a simple analog read on an arduino uno analog pin 2 from a potentiometer
Schematic?
And how much is it fluctuating?
Logged
liudr
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5918
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
Re: Damn Pot
«
Reply #4 on:
February 10, 2012, 01:29:04 pm »
Bigger
Smaller
Reset
What is the value (total resistance) of the pot? Do you have a multimeter to measure it? Maybe the contact inside is bad.
Logged
Serial LCD keypad panel
,
phi_prompt user interface library
,and more
retrolefty
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15314
Measurement changes behavior
Re: Damn Pot
«
Reply #5 on:
February 10, 2012, 01:31:40 pm »
Bigger
Smaller
Reset
If the value of the pot is too high then it can effect the stablity of the reading. No higher then a 10k ohm pot is recommended. And any noise on the voltage feeding the pot will also be seen as noise on the measurement.
Lefty
Logged
MarkT
0
Offline
Tesla Member
Karma: 71
Posts: 6603
Arduino rocks
Re: Damn Pot
«
Reply #6 on:
February 10, 2012, 02:52:52 pm »
Bigger
Smaller
Reset
Computers put out oodles of interference.
Logged
Daanii
Northern California (by San Francisco)
Offline
Full Member
Karma: 1
Posts: 238
Re: Damn Pot
«
Reply #7 on:
February 10, 2012, 03:32:09 pm »
Bigger
Smaller
Reset
Just to give you a benchmark, I've been working with a 5k pot using analogRead, and if I don't move the pot wiper it stays on a value, sometimes flipping between two values (like from 243 to 244 and back). I've never seen the sensed values moving + and - over 1% like you are seeing.
My pot is hooked to a breadboard about six inches from the Arduino, and the Arduino is on a six-foot USB cable from my computer.
Logged
Pages: [
1
]
Go Up
Print
« previous topic
next topic »
|
Arduino Forum
::
Using Arduino
::
General Electronics
:: Damn Pot
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
Using Arduino
-----------------------------
=> Installation & Troubleshooting
=> Project Guidance
=> Programming Questions
=> General Electronics
=> LEDs and Multiplexing
=> Displays
=> Audio
=> Motors, Mechanics, and Power
=> Sensors
=> Networking, Protocols, and Devices
=> Interfacing w/ Software on the Computer
-----------------------------
Topics
-----------------------------
=> E-Textiles and Craft
=> Robotics
=> Science and Measurement
=> Home Automation and Networked Objects
=> Device Hacking
=> Education and Teaching
=> Interactive Art
=> Product Design
-----------------------------
Development
-----------------------------
=> Suggestions for the Arduino Project
=> Other Hardware Development
=> Other Software Development
-----------------------------
Community
-----------------------------
=> Website and Forum
=> Products and Services
=> Gigs and Collaborations
=> Workshops and Events
=> Local Groups
=> Exhibition / Gallery
=> Bar Sport
-----------------------------
International
-----------------------------
=> Deutsch
=> Español
=> Français
=> Italiano
=> Portugues
=> Scandinavia
-----------------------------
Forum 2005-2010 (read only)
-----------------------------
===> Uno Punto Zero
===> Bar Sport
===> Frequently-Asked Questions
===> News
===> Exhibition
===> Workshops
===> Interfacing
===> Bugs & Suggestions
===> Development
===> Troubleshooting
===> Portugues
===> Deutsch
===> Español
===> Français
===> Italiano
===> Scandinavia
===> Development
===> Interfacing
===> Syntax & Programs
===> Bugs & Suggestions
===> Troubleshooting
===> Report Spam at Arduino.cc
===> Forum
===> Playground Wiki
=> General
=> Hardware
=> Software
=> International
=> Web/Forum/Email/Spam
-----------------------------
Using Arduino
-----------------------------
=> Storage
=> Microcontrollers
-----------------------------
International
-----------------------------
===> Humor y Debate
===> Talleres, Encuentros, ...
===> Tutoriels et cours
===> Réalisations et Projets Finis
===> Le bar
=> Nederlands
===> Software
===> Hardware
===> Proyectos
===> Documentación
=> India
===> Hardware
===> Software
===> Megatopic
-----------------------------
Products
-----------------------------
=> The Arduino Starter Kit
=> Arduino Due
-----------------------------
International
-----------------------------
===> Generale
-----------------------------
Products
-----------------------------
=> Arduino Esplora
=> Arduino GSM Shield
-----------------------------
Maker Faire Rome - The European Edition
-----------------------------
=> Makers
=> Events and Tour
Loading...