robot arm 5 axis control



Bismillah insha allah

15 minutes
https://howtomechatronics.com/tutorials/arduino/diy-arduino-robot-arm-with-smartphone-control/

https://howtomechatronics.com/tutorials/arduino/diy-arduino-robot-arm-with-smartphone-control/

design with solidworks

waist, elbow
MG996R Servo

wrist, gripper
SG90 micro server

stl files
---
banggood.com
3d printer
90% preassemble

control box
cables
l, upper
roller wheels tight
---
several hours, robot arms
---
should whole weight
sping is better
---
gripper mechanism
4mm nuts
---
waist, shoulder, elbow, writ roll
wrist pitch, gripper
---
motor
ground, +ve, command/data

6 motors
need 6 pins arudino
HC-05 bluetooth module
 communication with android phone
MIT app inventor
custom build android app

---
5v external power source
2am current
---
SoftwareSerial.h
Servo.h


current, prev position
---
servo1.write(servo1PPos)

servo position: 0 to 180
---
void loop(){

}
Bluetooh.avaiable() >0
dataIn = Bluetooh.readString()

datain.startsWith("s1")
dataInS = dataIn.substring(2, dataIN.length());
servo1Pos = dataIns.toInt()

if(servo1PPos > servo1Pos) {
for(int j=servo1PPos; j>=servo1Pos;j--) {
servo1.write(j);
delay(20);// defines the speed at which the servo rotates
}
}

// if previous position is smaller then current position
if (serv01PPos < servo1Pos) {
for(int j= servo1PPos; j <= servo1Pos;j++) {
servo01.write(j);
delay(20);
}
servo1PPos = servo1pos;
}
---
servo servo01;
servo servo02;
...

SoftwareSErial Bluetooth(3,4);

void setup(){
servo01.attach(5);
servo02.attach(6);
...
Bluetooth.begin(38400); //default baud rate of bluetooth module
Bluetooth.setTimeout(1);
delay(20);
serv01PPos = 90;
servo01.write(servo1PPos);
...
150, 35, 140, 85, 80;

---
MIT app inventer
connect

iamge, slider set right side
save, run, reset

slider min, max
---
lable no stesps

sendText
get thumbPosition

when x positionChanged

when save click
---
save button
servo01SP[index]=servo1PPOs;


reset
memset(serv01sp, 0, sizeof(servo01sp))
---
runServo()

whiel(dataIn != "RESET") {
for(int i=0;i    if(Bluetooth.available() >0) {
    dataIn = BluetoothlreadString();
    if (dataIN =="PAUSE") {
        while dataIn != "RUN"

    }
   }
}
}


---
3d printer
Creality CR-10
---
MG996R Servo Motor……………………….…. Amazon / Banggood
SG90 Micro Servo Motor ……..…….….……. Amazon / Banggood
HC-05 Bluetooth Module ………………….… Amazon / Banggood
Arduino Board ……………………………………. Amazon / Banggood
5V 2A DC Power Supply ………………….….. Amazon / Banggood

---
30k 3d printer
https://www.banggood.in/DIY-Creality-CR-10-3D-Printer-300300400mm-Printing-Size-1_75mm-0_4mm-Nozzle-p-1085645.html?p=4N130123074053201807&utm_campaign=23074053&utm_content=3312&cur_warehouse=CN

No comments:

Post a Comment