Eng Osama Omar
Published © Beerware

Controlling ARM GRIPPER using 1SHEELD

Full control on robotic arm gripper using Slider 1SHEELD app. on smartphones

Work in progress5,730
Controlling ARM GRIPPER using 1SHEELD

Things used in this project

Hardware components

1Sheeld Slider Shield
×1
Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Robot Arm Clamp Claw
Plugged into Pin 11, Power, and Ground
×1

Story

Read more

Code

file_14618.txt

C/C++
/*



Slider Shield Example



This example shows an application on 1Sheeld's slider shield.



By using this example, you can control the angle

of the servo connected to the ARM gripper using the app's slider.



*/



/* Include 1Sheeld library. */

#include <OneSheeld.h>



/* Define a variable to hold the value of the slider. */

int value;

/* A name for the Servo on pin 11. */

int servoPin = 11;



void setup() 

{

  /* Start communication. */

  OneSheeld.begin();

  /* Set the speaker pin as output. */

  pinMode(servoPin,OUTPUT);

}



void loop() 

{

  /* Always get the value of the slider and output it as PWM to pin 11. */

  value = Slider.getValue();

  analogWrite(servoPin,value);

}

Credits

Eng Osama Omar

Eng Osama Omar

2 projects • 10 followers
Head of embedded Systems at CECE lab Cairo university

Comments