Go Down

Topic: how to program servo motor for robotic arm (Read 31579 times) previous topic - next topic


For the beginner like me, its difficult to build Robotic Arm, I tried the code given in first few posts, that was easy to understand but didn't worked well.
I found a nice technique (new for me:| source: Robotic arm arduino), to easily control the servos for robotic arm. This guy connected the servos to ADC channels, and mapped the servo angle values with the voltage values using map function. This way we can attach potentiometer for each servo and can move the servos just by rotating Pots. Voltage values will be converted to angle values using 'map' function and servo will rotate.
Code: [Select]
  sensorvalue0 = analogRead(A0);
  sensorvalue0 = map(sensorvalue0, 0, 1023, 0, 180);
  sensorvalue1 = analogRead(A1);

Its good to build a first robotic arm with this. Now Building a improved design with this technique.
Can someone tell me if I build more fingers using this, it will be very bulky arm? so how can i reduce the size and weight?


That's just using the servo knob approach, in the IDE examples.
Yes, this is exactly what he did, thanks for the link. Can you also help me in reducing the weight and size of that arm, are there any micro servos?


Do  a search for  micro servo, many pop up. Adafruit carries one for example.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up