3 floor elevator

I have an engineering exploration project using Arduino mega 2560 ..The project is an automated 3 floor elevator.The main idea of this project is to lift a load of 200-300 gms up and down according to the user.
So I have used a 60 rpm dc motor and a pulley to lift the cabin of the load.There are two limit switches.There are 3 mini button switches for 3 floors. The code is designed in such a way that if we pressed any lift number between 1,2 and 3 then the cabin should stop there and the door of the cabin should open 180 degree with the help of servo motor(Sg90).Then again by pressing the lift number the cabin should go to the respective floor and stop and open the door for 3 secs..

I have made the body of the elevator and cabin of the elevator with the help of foam sheet.
The size of the elevator is 40 cms and each floor is 10 cms.

Welcome to the forum

Why did you start a topic in the Uncategorised category of the forum when its description is

:warning: DO NOT CREATE TOPICS IN THIS CATEGORY :warning:

Your topic has been moved to the Project Guidance category

1 Like

Sorry I'm a newbie..,I don't know where to add this ..So Plz can u tell where I should add this .

It is very unlikely that anyone will do this even if they wanted to because you have not given enough detail

What programming and Arduino experience do you have ?

I have an experience of 1-2 months learning the Arduino code . Actually I'm a engineering student and we have a project to build a bot using Arduino mega and basic engineering exploration project components.
So my topic is 3 floor elevator and it should lift around 500 gms weight up and down .. accordingly to the user requirement

Elevators are a somewhat popular project. A search of the forum and the net should turn up what others have done.

Google search for "arduino elevator project"

1 Like

I have an engineering exploration project using Arduino mega 2560 ..The project is an automated 3 floor elevator.The main idea of this project is to lift a load of 200-300 gms up and down according to the user.
So I have used a 60 rpm dc motor and a pulley to lift the cabin of the load.There are two limit switches.There are 3 mini button switches for 3 floors. The code is designed in such a way that if we pressed any lift number between 1,2 and 3 then the cabin should stop there and the door of the cabin should open 180 degree with the help of servo motor(Sg90).Then again by pressing the lift number the cabin should go to the respective floor and stop and open the door for 3 secs..I have made the body of the elevator and cabin of the elevator with the help of foam sheet.
The size of the elevator is 40 cms and each floor is 10 cms.So please can u give a Arduino ide code for this project and also the connections with Arduino board.

A DC motor and a paternoster.
Paternoster_animated

2 Likes

Elevators normally have a switch that is pressed by the car to indicate the car is centered for the doorway. Have you noticed how an elevator hunts for the switch if it moves passed it? Then and only then can the door open.

Elevators generally will have a counterweight somewhere around the weight of the elevator itself plus half the maximum load.

There should be multiple examples of elevator code, that is a fairly common project.

You would be better off starting from another point.
Make code for the DC motor, running it back and forth.
Add code reading the switches stopping the movement.
Add code reading the command buttons.

Done sir ..i will surely work on it..

As was mentioned in your other (cross) post, no one is likely to give you code for this. We will gladly help you to write the code. We will gladly help you with the hardware. But the work has to be done by you.

Post your attempt at the code. Please read the forum guidelines to see how to properly post code and some information on making a good post.

Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in a code block.

Post a schematic or wiring diagram. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies.

Post technical data for the components. Data sheets or manuals.

With the proper information and some work from you, we can get your project to work.

1 Like

No!
The goal for forum is to help members learn and grow in programming. It's not a factory producing code for You.

1 Like

@dhruvjain,

Your two or more topics on the same or similar subject have been merged.

Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.

Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.

Repeated duplicate posting could result in a temporary or permanent ban from the forum.

Could you take a few moments to Learn How To Use The Forum

It will help you get the best out of the forum in the future.

Thank you.

Read about arrays and state-machines.
Those will help you design a stable and reliable elevator project.

Of course, you also need to understand reading, writing pins along with millis() timing
As a newbie, I hope you’ve got a week or more to get it all together
More if you’re just getting started.

Really it’s a bit close to cheating if this is a task you’ve been given and you want someone else to do the hard part .
How will you explain the coding to someone else or modify it ??

1 Like
  1. Make a DC motor run. LINK
  2. Add a button to start and stop the DC motor. LINK
  3. Add a button to make the DC motor change direction. (see #2)
  4. Add switches to automatically stop (and start) at each floor. (see #2)
  5. Add door servos that open when any floor is reached. LINK
  6. Add buttons to select the floor. (see #2)

11 posts were split to a new topic: Discussion re: Students using the forum to cheat on school projects

//#include<Servo.h>
//Servo myservo;
void setup() {

// put your setup code here, to run once
//myservo.attach(24);

int x,y;
x = digitalRead(2);
y = digitalRead(3);
pinMode(10,OUTPUT);
pinMode(11,OUTPUT);

pinMode(2,INPUT);
pinMode(3,INPUT);
}

void loop() {
if(digitalRead(2)==1 && digitalRead(3)==1 || digitalRead(3)==0)
{
digitalWrite(11,LOW);
digitalWrite(10,HIGH);
delay(4500);

}
if(digitalRead(2)==1 && digitalRead(3)==1 || digitalRead(3)==0)
{
digitalWrite(10,LOW);
digitalWrite(11,HIGH);
delay(4500); }

}

I am facing a difficulty here.
When I am pressing the limit switch the dc motor stops for a while but is not rotating in opposite direction.
I needed if the limit switch is pressed the dc motor should run in opposite direction..
Can anyone help me out!??