Conducting foam controlled servo's

This video shows the use of conducting foam as an input for the Arduino Duemilanove. The output consists of 2 servo's which, eventually, will control a robotic hand.
The conducting foam was taken from a pcb-case (originally to prevent static build up).
The Arduino scetch is found in extended->servo->knob and doubled (or tripled etc.) for control of more than 1 servo.

Thanks very much for the code, I'll try it later, no time this week. Anyway I'll let you know how it works !
nice idea , but u might wanna smooth out the shakiness in the servos <br>witch can easily be done with an if statement and some math .<br>lemme know if u want to know the code , even though idk if it is arduino compatable ( c++ code like)
I'm an electronics man myself so any code to improve the electronics is welcome !
heres an example for a single servo and input<br> <br> i did a little research on how arduino works&nbsp; so it may actualy work right away , but its compleatly untested<br> <br> <br> #include &lt;Servo.h&gt;<br> <br> Servo myservo;<br> <br> <pre> void setup() { myservo.attach(9); myservo.write(90); // set servo to mid-point } </pre> void loop() {<br> <br> int calibrate = [ a number to mess around with ]<br> int an0 = map(analogRead(0) , 0,1025 ,0,180)<br> <br> If (an0 =&gt; (an0 + calibrate )&nbsp; )<br> {<br> &nbsp;&nbsp; myservo.write(an0 )<br> }<br> else if ( an0 =&lt; (an0 - calibrate ) )<br> {<br> &nbsp;&nbsp; myservo.write(an0 )<br> }<br> <br> }<br> <br> <br> what this does is checks to see if the the analog pin ( after being mapped to work with a servo ) is within [calibrate] range . if its not in that area , it will change the servo's position ... i hope<br> <br> lemme know if it works =D<br>
&gt;&lt; just noticed <br><br>add a semi colon to the end of every statement except the if , and else if <br><br>example :<br><br>void loop() { &lt;--- not here<br><br>int calibrate = 5 ; &lt;---- here <br><br>If (an0 =&gt; (an0 + calibrate ) ) &lt;--- not here <br>{<br> myservo.write(an0 ) ; &lt;--- here too <br>}
what vid?
Sorry, I'm a newbie here, must be ok now !
yup its there
!!!! Coincidence : I see you're in Norway, so am I at the moment (well out on the North Sea that is...).
kools, im in the north XD

About This Instructable


6 favorites


More by Renaissance-man: Conducting foam controlled servo's
Add instructable to: