آسانسور سه توقف

دانلود فایل سورس

Hi to all…

So I have come to a point where I was able to think about a certain circuit design and write the Assembly code program for my 3 level mini elevator project… I personally have chosen this project for my final lab activity in school…

So I used the AT89C2051 microcontroller to facilitate the elevator action… In this design, I have a schematic shown below…

For the software part, I made a program in Assembly language code… However, the program does not seem to work… Because of this, I placed comments on it so that everyone can help me…

For the hardware part, the schematic is fairly easy to understand… Let me summarize them:
۱٫ The right part of the microcontroller has all the input switches corresponding to their names… The ones with the Up and Down are like the switches outside the elevator, while the Level are the switches inside the elevator…

۲٫ Two of port 3’s pins are connected to the 6V DC Motor, which I know would not work since I have got to construct an H-bridge there first… I consulted with the people in this forum and they were a huge help to me… (thank you all of you)… However, I am yet to construct the H-bridge…

۳٫ For the detection of the floors, three of port 3’s pins are designated to detect the elevator at each level… You may say that I could have used some proximity sensors or IR transmitter-receivers, but as of now, I lack time for it… Sorry about that… But I have been a little resourceful by connecting the elevator with a wire connection such that when that wire touches the other wire from the microcontroller pin, then they will all conduct to the ground, which I believe will give an input to the micrcontroller… For the first floor detection, the image below shows how it is done…

Please help me…

Also comment on my design… Do I have to add resistors, diodes, more capacitors? I purposefully exhausted almost all the pins of this microcontroller so that when I create another elevator, I should be able to have more time and more thinking about reducing these stuff. Thus, maybe sooner, I can make a real elevator…

Again, please help me…

*I have only attached my code here but it seems that the way my computer presents it is not very readable… Use Keil instead…

پاسخ دهید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *

*

code