aakash jaiswal
Published

Automatic page turning machine

we'll show you how to make an automatic page-turning machine using the Arduino platform. This machine can be used to turn pages in books, ne

IntermediateFull instructions provided2,125
Automatic page turning machine

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
DC Motor, 12 V
DC Motor, 12 V
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
Rechargeable Battery, 12 V
Rechargeable Battery, 12 V
×1

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Schematics

Connection diagram

Code

coding.ino

Arduino
// this coding provided by technical romboz 
// tutorial video https://www.youtube.com/watch?v=53ykX3utPtw&t=28s

#include <Servo.h>
#define echoPin 14
#define trigPin 12
#define motor 2 // relay pin to operate motor 
Servo myservo;  // create servo object to control a servo

long duration;
int distance;
void setup()
{
  Serial.begin(9600);
  pinMode(trigPin,OUTPUT);
  pinMode(echoPin,INPUT);
  pinMode(motor,OUTPUT);
  myservo.attach(5,500,2500);  // attaches the servo on pin 9 to the servo object

}
void loop()
{
  digitalWrite(trigPin,LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin,HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin,LOW);
  duration=pulseIn(echoPin,HIGH);
  distance=(duration*0.034/2);
  Serial.print("Distance : ");
  Serial.print(distance);
  Serial.println(" cm ");
  delay(100);
  
  if (distance <=50)
  {
    digitalWrite(motor,LOW);
    delay(1000);
    myservo.write(180);  
    delay(2000);
    digitalWrite(motor,HIGH);
    delay(1500);
    myservo.write(0); 
    delay(1000);          
  }

  else
   digitalWrite(motor,HIGH); 
}

Credits

aakash jaiswal
17 projects • 26 followers
Contact

Comments

Please log in or sign up to comment.