Project showcase
NOTslider

NOTslider © GPL3+

Automatic doors are a well-known solution. But here is the door of the ancient store, which I cannot open without touching! Let's solve it!

  • 9 views
  • 0 comments
  • 0 respects

Components and supplies

Necessary tools and machines

Apps and online services

About this project

This pandemic made us take a fresh look at everyday things. Not every small store can afford the installation of a sliding door. This pen is touched by EVERY person who enters a store or building. This should not be, especially in the context of the fight against a pandemic.

A simple and reliable solution should have been around. And this is definitely a decent 3D printers and Arduino solution.

Therefore, this project was proposed. It could be expanded on the door of a taxi.



Ultrasonic connection


Connection motor part



Code

CodeArduino
// Include the Arduino Stepper Library
#include <Stepper.h>
const int trigPin = 3;
const int echoPin = 2;
const int detect_range = 100; // 1 m
const int door_timer = 10000;

bool is_opened;
int run_timer = 0;

long duration;
int distanceCm, distanceInch;

// Number of steps per output rotation
const int stepsPerRevolution = 200;

// Create Instance of Stepper library
Stepper myStepper(stepsPerRevolution, 4, 5, 6, 7);


void setup() {
	pinMode(trigPin, OUTPUT);
	pinMode(echoPin, INPUT);
	is_opened = false;
	myStepper.setSpeed(60);
}
void loop() {
	digitalWrite(trigPin, LOW);
	delayMicroseconds(2);
	digitalWrite(trigPin, HIGH);
	delayMicroseconds(10);
	digitalWrite(trigPin, LOW);
	duration = pulseIn(echoPin, HIGH);
	distanceCm= duration*0.034/2;

	if (distanceCm < detect_range)
	{
		open_door();
	}
	if ((run_timer > door_timer) && is_opened){
		close_door();
	}

	run_timer++;

}


void open_door(){
	is_opened = true;
	run_timer = 0;
	myStepper.step(stepsPerRevolution*5);
	delay(500);
}

void close_door(){
	is_opened = false;
	myStepper.step(-stepsPerRevolution*5);
	delay(500);

}

Schematics

Motor/battarey connections
Show how to connect motor with driver, arduino and battarey
2 uw1bwxq0nj
ultrasonic connection
Shows how to connect ultrasonic to arduino
3 eo5itg3fse

Comments

Similar projects you might like

Joy Robot (Robô Da Alegria)

Project tutorial by Igor Fonseca Albuquerque

  • 6,184 views
  • 6 comments
  • 36 respects

SimAr The Humanoid Robot

Project showcase by TECHEONICS and Gaurav Kumar

  • 113 views
  • 0 comments
  • 1 respect

Hands-Free Soap, Water and Paper Towel Dispenser

Project showcase by Samuel Adranyi

  • 4,318 views
  • 3 comments
  • 21 respects

Gesture Drive: Accelerate with Freedom

Project tutorial by Shahariar

  • 4,066 views
  • 0 comments
  • 13 respects

Otto DIY+ Arduino Bluetooth robot easy to 3D Print

Project tutorial by Team Otto builders

  • 83,401 views
  • 136 comments
  • 227 respects

PlayStation Remote Controlled Wireless Car

Project showcase by Jasmeet Singh

  • 9,201 views
  • 5 comments
  • 20 respects
Add projectSign up / Login