What's wrong with this 6DOF joystick circuit?

3 views
Skip to first unread message

Dan Royer

unread,
Mar 24, 2013, 4:19:05 PM3/24/13
to vhs-g...@lists.hackspace.ca
http://www.marginallyclever.com/blog/2013/03/what-is-wrong-with-this-6dof-joystick-circuit/

Taking a break to recover from last night's fun?
Looking for something bite-sized to play with?
Consider this electronic puzzle.

Thank you!

Dan Royer : Marginallyclever.com : Robots & 3D Printing : +1 604 916 2281

befl...@gmail.com

unread,
Mar 24, 2013, 8:51:05 PM3/24/13
to vhs-g...@lists.hackspace.ca
No idea how your servo/pot is internally wired, but with a normal pot you'd hook Vcc & Gnd to the fixed terminals and connect the wiper to your ADC.  Maybe start by checking the resistance from the wiper to the fixed terminals.  Are you getting what you expect?  Then hook it up and check voltage at the ADC pin while you move the wiper.

Dunno if that's at the level you're asking about, but that those are my first thoughts.

- Bruce

Derek Anderson

unread,
Mar 24, 2013, 11:22:46 PM3/24/13
to vhs-g...@lists.hackspace.ca
Do you have weak pull-ups enabled on the chip? What happens when you do:

digitalWrite(A???, LOW);

For each pin you are using?

Joseph Lunderville

unread,
Mar 25, 2013, 3:31:56 AM3/25/13
to vhs-g...@lists.hackspace.ca
1. The photo doesn't show the pot wiper connected to AN0? It shows it connected to the PWM output. I think. That would entirely explain your problem.

2. What is your reference voltage? I think the reference default on the Arduino Uno might be 3.3V, in which case the whole top 1/3 of the pot's travel will read as 1023. You should be able to read the reference voltage directly off the AREF pin with a meter.
Reply all
Reply to author
Forward
0 new messages