Poll
Question: Potentiometer vs Rotary Encoder
1 - 1 (100%)
2 - 0 (0%)
Total Voters: 1

Pages: [1]   Go Down
Author Topic: Potentiometer vs Rotary Encoder  (Read 3375 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello All,

I have question about Analog Input. I am using CD4067Be Mux.  

The analog signal to the arduino input is not stable at all.

Do you have any idea to make it stable? (I am using 10K pot. and, I ordered 50K and 100K pot. Can Bigger potentiometer make it stable?)

I tried Analog input smoothing with average value.. But...it is not working...

I am happy give me any idea....

I am also thinking about Rotary Encoder instead of Pot. What do you think about it?(need a led bargraph or ring Led..It will be another pain)

Thank you in advance..

I hope to hear from you.




Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 224
Posts: 13915
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Quote
The analog signal to the arduino input is not stable at all.
I assume you mean the Arduino's readings are not stable. If the source of the signal is not stable an Arduino cannot change it.

Quote
Do you have any idea to make it stable?
Do multiple readings and average them, be sure to use datatypes that can hold the sum. Also an often used practice is to do 2 measurements an ignore the first...

Quote
I tried Analog input smoothing with average value.. But...it is not working...
try - http://www.arduino.cc/playground/Main/Statistics - or - http://arduino.cc/playground/Main/RunningAverage

Quote
I am also thinking about Rotary Encoder instead of Pot. What do you think about it?
I think nothing as I don't know what your goal is.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

'round the world...
Offline Offline
Faraday Member
**
Karma: 42
Posts: 3290
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What readings are you getting from the analog to digital converter?

how did you connect the AD? What voltage reference are you using? How are you powering your board? What board is it?

A rotary encoder can work to create a kind of potmeter to be fed into a circular bargraph, although it will take a bit more than a potmeter and also won't have a reference value to start with.

Logged

Eu não sou o teu criado. Se respondo no fórum é para ajudar todos mediante a minha disponibilidade e disposição. Responder por mensagem pessoal iria contra o propósito do fórum e por isso evito-o.
Se realmente pretendes que eu te ajude por mensagem pessoal, então podemos chegar a um acordo e contrato onde me pagas pela ajuda que eu fornecer e poderás então definir os termos de confidencialidade do meu serviço. De forma contrária toda e qualquer ajuda que eu der tem de ser visível a todos os participantes do fórum (será boa ideia, veres o significado da palavra fórum).
Nota também que eu não me responsabilizo por parvoíces escritas neste espaço pelo que se vais seguir algo dito por mim, entende que o farás por tua conta e risco.

Dito isto, mensagens pessoais só se forem pessoais, ou seja, se já interagimos de alguma forma no passado ou se me pretendes convidar para uma churrascada com cerveja (paga por ti, obviamente).

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17303
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you show us a wiring drawing of how you are attaching the pot to power, ground and the arduino pin?
One can expect a count value of +/- minus a few counts, so what variation are you seeing?

 Going to a larger pot value will not help.

Lefty
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you so much All!!!

I do not know how to draw wiring... but, I can explain detail wiring.

I am using Arduino Duemilanove and Using USB as a power.

Digital Output 4,5,6,7 connect to CD4067Be control pin and 16 potentiometer(which is connected to ground and power) connect to each MUX input.

Mux output connect to Analog Pin 0.

I am using 10K potentiometer. It is my first Arduino project and harder than I thought. Fun, Though~

Thank you in Advance.

Logged

Pages: [1]   Go Up
Jump to: