Project tutorial
robot arm(arduino 101) TEAM√3

robot arm(arduino 101) TEAM√3

A robot arm that can be used to grab small objects.

  • 4,112 views
  • 0 comments
  • 6 respects

Components and supplies

Necessary tools and machines

driver
hand

Apps and online services

About this project

if (typeof(lightBoxImages) == 'undefined') { lightBoxImages = {}; } lightBoxImages['68e3d53ab4'] = [{ URL: 'https://hackster.imgix.net/uploads/attachments/306169/18596411_1915695985315515_861368500_o_angFydhlCo.jpg?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '완성', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/306168/18618495_1915695111982269_393199884_o_CziG9VQk9y.jpg?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: 'MY TEAM', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/306166/18641225_1915695151982265_751689243_o_fcttDqwy3n.jpg?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '모터 테스트', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/306167/18641882_1915695211982259_1581566912_o_RuAYzwWA9N.jpg?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '만드는 중', type: 'image' }];

if (typeof(lightBoxImages) == 'undefined') { lightBoxImages = {}; } lightBoxImages['51035bcc65'] = [{ URL: 'https://hackster.imgix.net/uploads/attachments/306170/18575913_1915699825315131_1746778571_o_i75MQs9JF1.jpg?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '설명서2', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/306171/18596233_1915699891981791_1610567805_o_(1)_b2jSzPF5tz.jpg?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '설명서 1', type: 'image' }];

서서

what is 自我

성공!!
if (typeof(lightBoxImages) == 'undefined') { lightBoxImages = {}; } lightBoxImages['c5953b930d'] = [{ URL: 'https://hackster.imgix.net/uploads/attachments/306173/18641350_1915703358648111_992839736_o_LX6SHBcSzY.jpg?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' }];

Code

arduino codeArduino
없다.
/*
 차량 장착용 수평집게
*/
#include "CurieIMU.h"

#include <Servo.h>
Servo servo1;  // 집게 서보
Servo servo2;  // 올리는 서보
#define Servo1Pin 5	  // 집게 서보 모터 오렌지핀에 연결
#define Servo2Pin 6   // 올리는 서보 모터 오렌지핀에 연결  

void Accelerometer(){
	int x, y, z, accX, accY;
    x = CurieIMU.readAccelerometer(X_AXIS); // X축 가속 읽기
    y = CurieIMU.readAccelerometer(Y_AXIS); // Y축 가속 읽기
    z = CurieIMU.readAccelerometer(Z_AXIS); // Z축 가속 읽기

	// 가속기 최소 최대 범위 제한 설정
	if(x > 15000)  x=13000;
	if(x < -15000) x=-13000;
	if(y > 15000)  x=13000;
	if(y < -15000) x=-13000;

	// 가속기 최대 최소값을 0~179 범위내로 변환
	accX = map(x, -13000, 13000, 10, 169);
	accY = map(y, -13000, 13000, 10, 169);

	servo1.write(accX); // 변환된 X 값 서보에 적용 동작
	servo2.write(accY); // 변환된 X 값 서보에 적용 동작

	Serial.print(accX);
	Serial.print(" / ");
	Serial.println(accY);
	delay(100);
}

void setup() {
    Serial.begin(9600);                   // 시리얼 초기화
    CurieIMU.begin();                      // 가속기 초기화
    CurieIMU.setAccelerometerRange(2); // 가속기 범위 설정
    pinMode(Servo1Pin, OUTPUT);           // 서버1 핀 출력설정
    pinMode(Servo2Pin, OUTPUT);           // 서버2 핀 출력설정
	servo1.attach(Servo1Pin);               // 서버1 핀 연결설정
	servo2.attach(Servo2Pin);               // 서버2 핀 연결설정
}

void loop() {
	Accelerometer();
}

Schematics

Comments

Similar projects you might like

MeArm Robot Arm - Your Robot - V1.0

Project tutorial by Benjamin Gray

  • 41,726 views
  • 4 comments
  • 57 respects

Amazing 6WD Off-Road Robot | Arduino RC Robot

Project tutorial by Jithin Sanal

  • 21,272 views
  • 1 comment
  • 82 respects

Scriba Robot - A Printing Robot

Project in progress by RobinB

  • 7,292 views
  • 1 comment
  • 18 respects

MK2 Plus Robot Arm Controller

Project tutorial by Samira Peiris

  • 23,224 views
  • 7 comments
  • 37 respects

Robot Arm Controlled Through Ethernet

Project tutorial by Balázs Simon

  • 17,396 views
  • 5 comments
  • 66 respects
Add projectSign up / Login