The engineering side of PutiMach — microcontrollers, servos, circuits, and instrumented experiments on the road to robotics and mechatronics.
A three-degree-of-freedom robotic arm driven by an Arduino Uno — base rotation, elbow articulation, and gripper actuation on three PWM servo channels, sequenced in C++ with tuned sweep timing for smooth, repeatable pick-and-place motion.
// 3DOF_Final.ino — base / middle / grip servo sequencing #include <Servo.h> Servo base; // pin 9 — base rotation 0–180° Servo middle; // pin 5 — elbow 0–80° Servo grip; // pin 6 — gripper 30–95° void loop() { for(i = 0; i <= 180; i++){ base.write(i); delay(7); } for(j; j <= 80; j++){ middle.write(j); delay(25); } for(k; k >= 30; k--){ grip.write(k); delay(40); } }