Adam Radjabov
Published © GPL3+

Waving hand project

This is a tiny robot project that can only wave.

BeginnerShowcase (no instructions)1 hour48
Waving hand project

Things used in this project

Hardware components

SG90 Micro-servo motor
SG90 Micro-servo motor
×1
Arduino UNO
Arduino UNO
×1
Modulo Joystick
Modulo Joystick
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×3
Male/Male Jumper Wires
×5

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Custom parts and enclosures

project diagram

the diagram

Schematics

project diagram

this is the diagram

Code

waving project code

JavaScript
this is the code
#include <Servo.h>

Servo arm;

const int joystickPin = A0;

void setup() {
  arm.attach(9);
  arm.write(90); // Center position
}

void loop() {

  int joy = analogRead(joystickPin);

  // Push joystick right to wave
  if (joy > 700) {

    for (int i = 0; i < 3; i++) {
      arm.write(45);
      delay(300);

      arm.write(135);
      delay(300);
    }

    arm.write(90);
  }
}

Credits

Adam Radjabov
8 projects • 0 followers

Comments