0% found this document useful (0 votes)
129 views

3 Floor Elevator Arduino

This document provides instructions for building a 3 floor elevator system controlled by an Arduino. It describes the main Arduino board with 6 optoisolated inputs and 2 outputs. It includes the Arduino code, which uses proximity sensors on each floor and buttons on each floor and in the elevator to control the motor relays and move the elevator between floors. Wiring diagrams and part files are also included to complete the project.

Uploaded by

Bobby Lantion
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
129 views

3 Floor Elevator Arduino

This document provides instructions for building a 3 floor elevator system controlled by an Arduino. It describes the main Arduino board with 6 optoisolated inputs and 2 outputs. It includes the Arduino code, which uses proximity sensors on each floor and buttons on each floor and in the elevator to control the motor relays and move the elevator between floors. Wiring diagrams and part files are also included to complete the project.

Uploaded by

Bobby Lantion
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Food Living Outside Play Technology Workshop

3 floor elevator arduino


by usb-e-kits on June 26, 2014

Table of Contents

3 floor elevator arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: 3 floor elevator arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: The arduino main board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 2: Arduino code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 3: Electrical wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

http://www.instructables.com/id/3-floor-elevator-arduino/
Author:usb-e-kits VISIT my SITE!!!!!
I am from Thessaloniki Greece! I love the world of electronics in every step of my life! I am electronic engineer and my hobby is my job!

Intro: 3 floor elevator arduino


Hi there.

Me and 2 friends created this elevator for the grandmother of one of my friends.

George knows very well the metal construction and it is his job.

Bagios is electrician and i am electronic engineer. And voila!

The main board contains the necessary i/o optoisolation and the arduino mini pcb.

3 floors-3 buttons on each floor-3 sensors on each floor-3 buttons and an alarm inside the elevator and 2 terminal safety switches are included for the main installation.

The motor is 230vac and the main board drives it via 2 relay outside the main board to avoid noises from contact relays.But before the current reach the motor it passes
through 2 terminal switches in the upper and lower construction.

http://www.instructables.com/id/3-floor-elevator-arduino/
Step 1: The arduino main board
SIx optoisolated inputs and 2 outputs

arduino mini

a pcb mini siren

a bridge rectification stage so to operate with ac power.

http://www.instructables.com/id/3-floor-elevator-arduino/
File Downloads

elevator one pcb.pdf (852 KB)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'elevator one pcb.pdf']
Step 2: Arduino code
To program the mini you need a usb to serial module.

/*
Elevator project with arduino pro mini 328 5v 8mhz - This is a simple elevator project using a single-phase ac motor. - There are 3 floors and a button is placed in every
floor and are connected in paraller with 3 button inside the elevator. - 3 proximity switches are attached on every floor to indicate where the elevator is and to stop it. - A
buzzer is connected to warn for movement or -alarm stop inside the elevator is attached directly to the reset button. code by:Fanis Katmadas site:oramasolutions.com
[email protected] */

const int floor1 = 7;//proximity switch attached on floor1 const int floor2 = 6;//proximity switch attached on floor2 const int floor3 = 5;//proximity switch attached on floor3
const int callbutton1 = 4;//push button on the floor1 and in paraller the button for floor 1 in the elevator const int callbutton2 = 3;//push button on the floor2 and in paraller
the button for floor 2 in the elevator const int callbutton3 = 2;//push button on the floor3 and in paraller the button for floor 3 in the elevator const int relayup = 12;//the
relay that drives up the elevator const int relaydown=10;//the relay that drives down the elevator const int buzzer = 11;//a buzzer warning movement or alarm stop const
int poweron=13;

// variables will change: int callelevator1 = 0; // variable for reading the pushbutton status of the floors int callelevator2 = 0; // variable for reading the pushbutton status of
the floors int callelevator3 = 0; // variable for reading the pushbutton status of the floors int floor1sense = 0; // variable for reading the proximity status of the floors int
floor2sense = 0; // variable for reading the proximity status of the floors int floor3sense = 0; // variable for reading the proximity status of the floors

// the setup routine runs once when you press reset: void setup()

{ // initialize the digital pins inputs. pinMode(floor1, INPUT); pinMode(floor2, INPUT); pinMode(floor3, INPUT); pinMode(callbutton1, INPUT); pinMode(callbutton2,
INPUT); pinMode(callbutton3, INPUT);

// initialize the digital pins outputs. pinMode(relayup, OUTPUT); pinMode(relaydown, OUTPUT); pinMode(buzzer, OUTPUT); }

// the loop routine runs over and over again forever: void loop()

http://www.instructables.com/id/3-floor-elevator-arduino/
{ digitalWrite(poweron, HIGH); // read the state of the pushbuttons value: callelevator1 = digitalRead(callbutton1); callelevator2 = digitalRead(callbutton2); callelevator3 =
digitalRead(callbutton3); // read the state of the proximity value: floor1sense = digitalRead(floor1); floor2sense = digitalRead(floor2); floor3sense = digitalRead(floor3);

//start by checking the 3 call buttons. //we read the input and if we have signal we wait for the release before starting. //after the release a pause of a second is added
before beggining the motion of the elevator if (callelevator1 == HIGH)// if the floor 1 call button is pressed { delay(200);//software debounce of the button
while(callelevator1 == HIGH) { callelevator1 = digitalRead(callbutton1);//check the value of the button again delay(10);//keep running smoothly }//wait for the relese of the
button to continue delay(1000); floor1function();//go to the floor 1 fuction of the elevator } else if(callelevator2 == HIGH)// if the floor 2 call button is pressed { delay(200);
//software debounce of the button while(callelevator2 == HIGH) { callelevator2 = digitalRead(callbutton2);//check the value of the button again delay(10);//keep running
smoothly }//wait for the relese of the button to continue delay(1000); floor2function();//go to the floor 2 fuction of the elevator } else if(callelevator3 == HIGH)// if the floor 1
call button is pressed { delay(200); //software debounce of the button while(callelevator3 == HIGH) { callelevator3 = digitalRead(callbutton3);//check the value of the
button again delay(10);//keep running smoothly }//wait for the relese of the button to continue delay(1000); floor3function();//go to the floor 3 fuction of the elevator }
digitalWrite(relayup, LOW); //keep the relay for up motion inactive digitalWrite(relaydown, LOW); //keep the relay for down motion inactive digitalWrite(buzzer,
LOW);//keep the buzzer quite delay(10);//a few delay just to keep running smoothly }

void floor1function() { if(floor1sense != HIGH) // check the proximity sensor of the first floor to see if the elevator is there {//if the elevator isn't there call it while(
floor1sense==LOW) //check that the proximity of the first floor is low //the motor begins and stops when the appropriate floor proximity give the signal {
digitalWrite(relaydown, HIGH);//drive the elevator down digitalWrite(buzzer, HIGH);//some noise in the mic floor1sense = digitalRead(floor1); delay(10);//a few delay to
keep running the routine smoothly } } }

void floor2function() {

if(floor3sense == HIGH) // check the proximity sensor of the third floor to see if the elevator is there {//if the elevator is there call it while( floor2sense==LOW)//the motor
begins and stops when the appropriate floor proximity give the signal { digitalWrite(relaydown, HIGH);//drive the elevator down digitalWrite(buzzer, HIGH);//some noise in
the mic floor2sense = digitalRead(floor2); delay(10);//a few delay to keep running the routine smoothly } } else if(floor1sense == HIGH) // check the proximity sensor of the
first floor to see if the elevator is there {//if the elevator is there call it while( floor2sense==LOW)//the motor begins and stops when the appropriate floor proximity give the
signal { digitalWrite(relayup, HIGH);//drive the elevator up digitalWrite(buzzer, HIGH);//some noise in the mic floor2sense = digitalRead(floor2); delay(10);//a few delay to
keep running the routine smoothly }

}}

void floor3function() { if(floor2sense == HIGH || floor1sense == HIGH) // check the proximity sensor of the first and second floor to see if the elevator is there {//if the
elevator is there call it while( floor3sense==LOW) //the motor begins and stops when the appropriate floor proximity give the signal { digitalWrite(relayup, HIGH);//drive the
elevator up digitalWrite(buzzer, HIGH);//some noise in the mic floor3sense = digitalRead(floor3); delay(10);//a few delay to keep running the routine smoothly }

}}

File Downloads

elevator.ino (10 KB)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'elevator.ino']
Step 3: Electrical wiring
This is the electrical diagram.

I would like to inform you that before 2 days i launched a campaign in indiegogo with a beutiful arduino project.

if you want check it out and share it..

https://www.indiegogo.com/projects/usbeduino-the-arduino-project/x/6872674

Thanks a lot.....

http://www.instructables.com/id/3-floor-elevator-arduino/
Related Instructables

Aquaponics:
432 MHz Online Relay
Home wireless Control by
Automation sensors and Home Arduino room
Smart IAquaponics
using Arduino & power outlets Automation with automation!
Home [BLUETOOTH/SOUND/REMOTE
Android phone. for home Automation with HomeGenie by
automation mrx23dot CONTROLLED]
(video) by ALP Voice command
using Arduino by treyes4
Electronic by ALP
Innovation (Photos) by Electronic
janisalnis Innovation

Advertisements

Comments
3 comments Add Comment

mikeasaurus says: Jun 26, 2014. 11:12 AM REPLY


This is a great project for your grandmother. She must be very happy (and the ride looks thrilling!)

usb-e-kits says: Jun 26, 2014. 11:32 AM REPLY


Thanks my friend...
Oh yes the elevator helped her because is to old for the stairs...
Imagine that the grandpa is 92 years old...
Now they don't have to leave their home for the remaining of their life because of the difficulty of the stairs...

http://www.instructables.com/id/3-floor-elevator-arduino/
amekdala says: Jun 26, 2014. 11:20 AM REPLY
awesome

http://www.instructables.com/id/3-floor-elevator-arduino/

You might also like