Pages: [1]   Go Down
Author Topic: Strange readings from analog pins using potmeter  (Read 332 times)
0 Members and 1 Guest are viewing this topic.
Norway
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
<3 Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

I've just took out my arduino boards again, and I tought I should start with just the easy Knob tutorial to refresh my arduino skills smiley-razz

Anyhow, I've noticed the servo didn't respond like it should. So I put
a serial.print on the reading just to see the value. And it's stuck around 250-300, no matter how I adjust the pot.

So first I changed to another 10k potmeter, same there. Then tried another arduino board. Same there. Also tried changing to another analog pin, but same thing there...

Then I tried the good old Arduino Diecemila(or how its written). Then it read the values perfectly!

Why wont my Picos, Nanos, Boarduino, BareBonesBoard show the correct value from 0-1023 when adjusting the pot? And only the old
diecemila. It's very strange, and I'm very confused right now ....

Cause I wanted the Modified Pico or some other board like the Boarduino to control some servos.

Only the good old arduino diecemila. Thats strange.

I use 5+ and GND for the outer pins, then the center pin I got on analog2.

Picture of the simple wiering on a Modified Pico



Uploaded with ImageShack.us

White is center pin, red & black are gnd and 5v
« Last Edit: September 04, 2010, 05:22:11 am by Stigern » Logged

I'm from Norway!

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26538
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What are those unconnected pins across the top of the board labelled "A0", "A1" etc?
« Last Edit: September 04, 2010, 05:50:07 am by AWOL » Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Norway
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
<3 Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

HAHA!

My god, how can I be so stupid smiley-razz

I blame the in-activity lately, it's like 5 months since I last used my arduino boards.

thanks!

Works fine now smiley-razz
« Last Edit: September 04, 2010, 05:52:14 am by Stigern » Logged

I'm from Norway!

Pages: [1]   Go Up
Jump to: