Nikolaos Babetas
Published

Finger on the app - Robot

A robot that can play Mr Beast's latest 25K$ challenge "Finger on the app" for days!

IntermediateShowcase (no instructions)4 hours764
Finger on the app - Robot

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×2
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Driver DRV8825 for Stepper Motors for Theremino System
Driver DRV8825 for Stepper Motors for Theremino System
×1
Stepper Motor, Bipolar
Stepper Motor, Bipolar
×1
Servo Module (Generic)
×1
9V 1A Switching Wall Power Supply
9V 1A Switching Wall Power Supply
×2
DC Power Connector, Straight
DC Power Connector, Straight
×1
Capacitor 1000 µF
Capacitor 1000 µF
×2
688zz Ball Bearing 8x16x5mm
×2
3D printer Stepper Motor 5x8x25mm Flexible Coupling Coupler (Blue)
×1
8mm-30CM linear shaft chrome rod
×1
T8x300mm trapezoidal Lead Screw with Brass Nut
×1
wood
×1
touch stylus / aluminium fo
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
optional
saw

Story

Read more

Schematics

Circuit Diagram

Code

drv8825.ino

Arduino
Code for the Arduino controlling the stepper motor with drv8825 driver
// Define pin connections & motor's steps per revolution
const int dirPin = 2;
const int stepPin = 5;
const int enablePin = 8;


const int stepsPerRevolution = 1200;

void setup()
{
  // Declare pins as Outputs
  pinMode(stepPin, OUTPUT);
  pinMode(dirPin, OUTPUT);

  pinMode(enablePin, OUTPUT);
  digitalWrite(enablePin, LOW);

  
}

void loop()
{
  // Set motor direction clockwise
     
  digitalWrite(dirPin, HIGH);

  // Spin motor slowly
  for(int x = 0; x < stepsPerRevolution; x++)
  {
  
    digitalWrite(stepPin, HIGH);
    delayMicroseconds(1000);
    digitalWrite(stepPin, LOW);
    delayMicroseconds(1000);
  }
  delay(400); // Wait 
  
  // Set motor direction counterclockwise
  digitalWrite(dirPin, LOW);

  // Spin motor quickly
  for(int x = 0; x < stepsPerRevolution; x++)
  {
    
    digitalWrite(stepPin, HIGH);
    delayMicroseconds(1000);
    digitalWrite(stepPin, LOW);
    delayMicroseconds(1000);
  }
  delay(400); // Wait 
}

Credits

Nikolaos Babetas

Nikolaos Babetas

4 projects • 15 followers
My name is Nikolas and I am 15 years old. I love making things with electronics and 3D printing to satisfy my imagination and curiosity!

Comments