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.
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
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.
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.
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.
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.
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.
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 ??
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!??