free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems
Can anyone show me how to design a system that has 3 components : 1. a door bell , 2. a button to open up the door , 3. an electrically controlled lock The point is to make the system that operates a door , when the door bell is rang u can choose to push the button and open the lock. Must be written in Keil C. Any suggestions, solution or pointers are much appreciated. Thanks in advance.
It is more or less a didactic example , so i can understand the basics for a more complicated project. And i need to figure out how to create simulation in Proteus Isis for it . Maybe think about it as if it were a basic package where u can add more options later like an alarm, different ringtones for the bell or a fingerprint scanner to open the door etc. Just the very basic would help me a lot to understand right now . Thanks for the interest again and waiting for a reply.
Connect the button to an input pin of your micro. Add a pull up resistor(1K) to keep the pin HIGH until the button connects it to ground.
Use a transistor or purpose made driver chip such as the ULN2003 to switch your door latch.
Door latches are basically relays,so follow any advice given here for switching relays. IE check that the current is not too high for the driver, and always fit a diode across the coil.
Connect your driver (transistor or ULN2003) to an output pin of your micro.
Most pins on a micro can be made input or output. (read the data sheet). It's simplest for now to make all pins on one port IN and all on one port OUT.
Write a very simple program that goes in a loop.
StartLoop:
Read the IN port.. IF the button pin is low (button pressed), set the relay pin of the OUT port high... (open the door). IF not (ELSE) set the OUT pin low (door locked) Jump back to StartLoop
Thanks a lot ExperimenterUK , i am trying to implement it right now , I really apreciate your help . I was thinking of a way to make things more interesting , like considering that the door has a spring to keep it locked , I could add a sensor to detect whether the door is closed or being help open , and only when it is closed to automaticly close the door latch. To this end I was thinking of a timer of something like 5 secs in witch the latch is kept open prior to the button being pressed , giving the person outside a limited time to open the door. After the person sitting outside the door , opens the door , the system will wait for the sensor to indicate that the door is closed before closing the latch again. Was also trying to think of a smart way to connect the door bell but nothing comes to mind thus far. So looking forward to seeing your suggestions or possible solutions. Thanks again and waiting on your answers.
You might have came across the doors with magnetic locks.. did you?
they are same as you are trying to make. there is an access system outside and inside the door. outside normally a swipe card or keypad to for code and inside a switch to open the door. door is locked using a high power magnet, magnet deactivates if correct code is entered or if the door open switch is pressed from inside the room. and after the door is closed magnet activates again.
So in your case, are you trying to have any access system or just a simple door open switch on both sides (inside and outside)? you can make use of IR sensors to detect the position of door (close or open).
so pseudo code will be something like this..
button pressed. open door.. wait for door open or 5 sec timeout.. if 5 sec timeout first then close the latch again, or if door is opened, wait for door close and then active the latch. www.rickeyworld.info If you feel satisfied with the user's forum reply please click on the thank button.
Thanks Ajay , magnetic locks seem perfect for what I had in mind. However i am still new with working in this environments and I am working a bit slow having limited time to dedicate to this .So i am having some problems with making the relay activate as I want it to and also I am sometimes getting a warning that the CPU is too highly solicitated , will post what i have done so far , so you can give me some hints I uploaded it all here
and btw could i introduce a motor to close and open the door in the simulations in ISIS ?
Contact Ajay Bhargav by PM or email at contact@8051projects.net
Anonymous | 17 Mar : 12:46
anyone knows who can I get in contact with to get permission to use this http://www.8051projects.net/lcd-interfacing/lcd.png for my senior design report?
Correction... http://www.8051projects.net/lcd-interfacing/lcd-4-bit-programming.php That gave me headaches... Mismatched coding between the 4-bit and 8-bit sections.
8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems