Robotic Arm

How my robotic arm looks? Interesting? Let's do it together!

Introduction

Robot arms (not robotic hand) are a type of mechanical arm programmed with functions similar to those of a human arm. The arm may be the whole mechanism or it may be part of a more complex robot. Let’s try to make a simple Robotic Arm using servo and controlled by a joystick ?.

Video

This video will show you how to make a robotic arm using servo on Arduino.

Hardware Preparation

This is the hardware connection and the components needed.

Sample Code

Arduino

#include <Servo.h>
Servo Servo_X;
Servo Servo_Y;
Servo Servo_Grip;
#define Joy_X A0
#define Joy_Y A1
#define BUTTON 2
int Joy_Val = 0;
boolean state = false;
void setup()
{
Servo_X.attach(3);
Servo_Y.attach(5);
Servo_Grip.attach(6);
pinMode(BUTTON, INPUT_PULLUP);
}
void loop()
{
Joy_Val = analogRead(Joy_X);
Joy_Val = map(Joy_Val, 0, 1023, 180, 0);
Servo_X.write(Joy_Val);
Joy_Val = analogRead(Joy_Y);
Joy_Val = map(Joy_Val, 0, 1023, 0, 180);
Servo_Y.write(Joy_Val);
delay(15);
if (digitalRead(BUTTON) == LOW) {
if (state == false) {
state = true;
Servo_Grip.write(0);
delay(500);
} else {
state = false;
Servo_Grip.write(90);
delay(500);
}
}
}
view raw roboticArm.ino hosted with ❤ by GitHub

Thank you

Thank you for reading this tutorial and we hope it helps your project development. If you have any technical inquiry, please post at Cytron Technical Forum.

1 thought on “Robotic Arm”

  1. Thank you for the tutorial. It was easy to understand. Can I have your schematic diagram of your robotic arm?

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorial

Remote (SSH) Raspberry Pi Zero 2 W using VS Code
Is it possible to program Maker UNO with Python?
Camera and DSI Driver on the Latest Raspberry Pi Bullseye OS
Remote Control ZOOM:BIT using Grove 8266 WiFi and Blynk
Icon Case with Heatsinks & Fan Stressberry Test
Tutorials of Cytron Technologies Scroll to Top