5/20/12

Arduino automatic door opener

    

    This project can be attached to a door phone so that when the doorbell button is pressed the door opens automatically.
    Very useful for doctors offices with many patients like hematology lab. This hardware is for the building's main entrance (you can leave your office door open...:)  )

    While doorbell button is pressed you can pick an AC voltage in the speaker of the door phone. You can measure this trigger voltage using  a DC voltage sensor.
    Why a voltage sensor? Cause you isolate your arduino from voltages that could go as high as 12Vdc or 24Vdc. My voltage sensor also divides input voltage by ratio 5 to 1, so max input voltage is 25V.
    In my case I have a trigger of 6.5VAC. This trigger voltage goes to a AC to DC diode bridge converter and then through the DC voltage sensor to the analog input A0.If analog input A0 returns a reads more than 4 Volts then  digital I/0 pin 12 becomes high and triggers the 5V relay which is connected to button of door phone that opens the door.


Hardware
  Arduino Nano V3

  Battery 9V

  DC Voltage Sensor Module



  1 Channel Relay Module Board 5V Module


  Diode Bridge


Circuit
Battery:  Connect to Vin and GND of arduino(careful do not connect battery when you also have usb connected)

AC to DC diode bridge: AC pins goes to door phone's speaker pins, DC pins to DC voltage sensor.

Voltage sensor: Input + VCC goes to + pin of diode bridge, input GROUND goes to - pin of diode bridge, output S to pin A0  , output +Vcc to 5V pin, output ground to GND pin of arduino.

Channel relay: Trigger to Digital I/O Pin 12, +Vcc to 5V pin, Ground to GND pin of arduino.








Code:


// set pin numbers:
const int ledPin =  13;           // the number of the LED pin
const int relayPin= 12;           // the number of the Realy pin
const int AnalogInputPin = A0;    // Sensor analog input pin

void setup()
{
  pinMode(ledPin, OUTPUT);        //set digital pin LED OUTPUT
  pinMode(relayPin, OUTPUT);      //set digital pin RELAY OUTPUT
  Serial.begin(9600);             //for checking input of voltage sensor when connected to PC
}//end void setup



void loop()
{
  float sensorValue =0;
  sensorValue = analogRead(AnalogInputPin);        //Reads analog input A0 and returns value from 0 to 1023 (10 bit AD converter).
  //float sensorRatio= ((5*5)/1023);               //This one should have worked but didn't (5v max analog input * 5 times ratio of output to input of DC voltage sensor / 1023 max of A0 )
float sensorRatio= 22.646/1000;                  //!!!!Checking with serial monitor and using 2 batteries(1,2V & 9V) I measured their voltage with voltmeter I made this correction ratio. Before connection the diode bridge.
float voltIs = (sensorValue * sensorRatio)+ 0.6; // 0.6v is a diode's bridge average threshold voltage when there is no rectifier such as this case.
Serial.println(voltIs);                          // for checking voltage with serial monitor of arduino 1.0 software.
delay(200);                                      // delay for 0,2 second to keep processor cool and noise free.

  //When push button of door is pressed a 4,5V voltage is appearing in the door phone's speaker.
 
  if ( voltIs > 3.95 && voltIs < 08.05)             //Speaker voltage = 6,5 volts  (yes I could have been more precise but had to make sure that door opens)
      {  digitalWrite(ledPin,   HIGH);                //LED indication that relay circuit is closed
         digitalWrite(relayPin, HIGH);                //relay circuits is closed so door mechanism is on
         delay (3500);                                      //Delay door opening magnetic mechanism for 3,5 seconds so that patient passes through entrance.
        
         digitalWrite(ledPin,   LOW);               // turn off Led
         digitalWrite(relayPin, LOW);              // relay back to NO
         delay (20);                                       // precaution delay
      }
 else
     {
       sensorValue=0;                           //precaution just in case there is anomaly not to open door.
       voltIs = 0;                                 //precaution just in case there is anomaly not to open door.
     } //end if voltIs     

}//end void loop



/*
      Created @ 2012 by
     Pagonidis Alexandros
www.BiomedicalTechnology.gr

*/



The final project in a box:




Well try not to use a metal box because you will need too much glue to isolate the circuits.












   

50 comments:

  1. I really love your weblog, Its great to find not absolutely everyone is just posting a ton of rubbish these days!
    garage door repair san diego

    ReplyDelete
  2. Thank you for informative blog. I m waiting for your next blog. Kindly visit my site Automatic doors

    ReplyDelete
  3. I am very enjoyed because of this blog. Its an educational topic. It help me quite definitely to solve some problems. Its opportunity are so fantastic and working style so speedy.Pintu High Speed

    ReplyDelete
  4. Thank you for informative blog.Well done keep up the good work & waiting for your next blog. Visit for install Best home surveillance systems

    ReplyDelete
  5. Great article. The concept The secret to creating magnetic, high-traffic blog contentreally is well explained and has helped me a lot. thank you for submitting this article. Automatic Swing Doors

    ReplyDelete
  6. Fantastic article as always. Such a nice article which you post its dam good. Kindly visit my sites
    Garage Doors Repair

    ReplyDelete
  7. Thanks for posting the useful information to my vision. This is excellent information.
    Automatic Garage Doors Repairing

    ReplyDelete
  8. An Automatic Sliding Door is required for effective parking management system. TSS security offers best quality boom barriers, call @+91 98407 55444.

    ReplyDelete
  9. we are one of the most efficient sliding gate . Being an experienced player in this line, we understand the needs of our customers and provide them the high-quality product according to their preferences.

    ReplyDelete
  10. Boom Barriers Gate. are utilized to control the movement of vehicles going in and out of places like residential buildings, business parks, shopping malls etc.

    ReplyDelete
  11. Thanks for the post! loved the mechanism of the automatic openers. We make automatic doors and gates for industrial purposes check out Aircraft Hangar Doors

    ReplyDelete
  12. Loved the post such useful information. Thank you and would love to see more of your blogs!
    Boom Barrier

    ReplyDelete
  13. Great post! You've explained the mechanism very well.
    Check out our Auto Swing Door

    ReplyDelete
  14. Thanks For sharing such a beautiful Info with us.I hope you will share some more Info .Please keep sharing.
    Automatics Doors

    ReplyDelete
  15. Great Blog, there is so much reality written in this content and everything is something which is very hard to be argued. Top notch blog having excellent content.
    automatic gate opener suppliers

    ReplyDelete
  16. I found your this post while searching for information about blog-related research ... It's a good post .. keep posting and updating information. centralina cancello automatico

    ReplyDelete
  17. You have provided a nice article, Thank you very much for this one. And I hope this will be useful for many people. And I am waiting for your next post keep on updating these kinds of knowledgeable things gate opener manufacturers

    ReplyDelete
  18. Nice to be visiting your blog again, it has been months for me. Well this article that i've been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share. DevsData

    ReplyDelete
  19. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often.
    Garage Door Repair Near Me

    ReplyDelete
  20. Gestione accessi parcheggi di hotel, alberghi e campeggi con tessere o portachiavi codificati fino a 2000 utenti. automazioni per parcheggi hotel rimini

    ReplyDelete
  21. Truly I love this blog.Directly I am found which I truly need. please visit our website for more information about Artificial intelligence development company in Australia

    ReplyDelete
  22. Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. Best consulting firms for private equity

    ReplyDelete
  23. The post is written in very a good manner and it contains many useful information for me. commercial interior doors

    ReplyDelete
  24. In the parking systerm field, the best solution immediately proved to be the installation of TOF laser sensor for the barrier gates at the entrance to the facility.

    First of all, let’s understand the principle of parking lot vehicle detector and ground induction coil:

    Ground induction coil vehicle detector is a vehicle detector based on the principle of electromagnetic induction. It usually has a toroidal coil buried under the roadbed of the same lane, and passes a certain working current as a sensor. When the vehicle passes the coil or stops on the coil, the iron on the vehicle itself will change the magnetic flux in the coil, causing a change in the inductance of the coil loop. The detector detects the change in the inductance to determine the state of the passing vehicle .

    System composition

    In the parking lot system, to determine the function of the ground induction coil, we must first know the location where the ground induction coil is installed. The ground induction coil is generally installed in the following four positions:

    1. At the entrance ticket box (entrance control machine);

    2. One at each entry and exit barrier;

    3. Exit ticket box (export control machine)

    As for the entry and exit barriers, It has two aspects

    1. Anti-smashing, the bar will not fall when there is a car on the ground;

    2.The car passes and falls

    And what is TOF laser sensor?

    Our laser sensor offers an alternative to induction loops.

    Laser radar technology is to detect vehicles and pedestrian accurately. The barrier only opens when a vehicle is approaching. Pedestrians in the opening field are screened. Compared to IR detection, it reduces false trigger and more secure.

    What’s more, the laser’s service life is 3-5years, while the loops is around 1-2 years. small size make installation and maintainance more easier and save labor cost. So our laser sensor is cost efficiently and secure options for your gate solution.
    https://www.u-sensors.com/product/18.html

    ReplyDelete
  25. This comment has been removed by the author.

    ReplyDelete
  26. Sometime few educational blogs become very helpful while getting relevant and new information related to your targeted area. As I found this blog and appreciate the information delivered to my database.IPTV Reselling

    ReplyDelete
  27. Thanks for sharing such an informative post. Please keep it up the great work and surely come back for more information. Please visit us here as well to learn more about access control.

    ReplyDelete
  28. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Thanks... best door access system

    ReplyDelete
  29. This blog is really great. The information here will surely be of some help to me. Thanks!. auto sliding gate bd

    ReplyDelete
  30. We are highly experienced and certified electric gates and fences company. Let us experience you the best automatic gates installation and repair company."

    Visit here : Automatic Gate Repair

    ReplyDelete
  31. This article is an appealing wealth of informative data that is interesting and well-written. I commend your hard work on this and thank you for this information. You’ve got what it takes to get attention. automatic doors in dubai

    ReplyDelete
  32. Electric Gate Masters is The best simplest way to find and book your Gate installation, Automatic Gate Repair, Gate Motor installer, and Front gate Repair expert.

    Visit here : Gate opener install

    ReplyDelete
  33. This comment has been removed by the author.

    ReplyDelete
  34. If you need iron gate installation, security gates repair, and electric gate repair in Seattle. then We have an expert team who can do your gate installation and repair.

    Visit here : Automatic Gate Repair in Seattle

    ReplyDelete
  35. Hi there! Technest.ae is a great website for anyone looking for the latest technology news and reviews. They provide comprehensive, unbiased coverage of the latest tech trends and products, so you can make informed decisions about the products you use. They also offer helpful tips and advice to help you get the most out of your technology. Thanks for stopping by!
    buy Indoor Wi-fi Security Camera

    ReplyDelete
  36. It's great to join your blog, I can refer to your products.
    We invite you to view and cooperate with us here: motor cửa cổng 2 cánh

    ReplyDelete
  37. Investing in YouTube subscribers in rupees offers a seamless and advantageous strategy for Indian creators looking to enhance their channel's performance and reach. It provides a quick and effective way to increase a channel's subscriber base, which in turn elevates the channel's visibility and authority on the platform. Such a boost is instrumental for new creators aiming to gain traction in a saturated market. With custom packages available, creators can choose an option that best fits their budget and needs, ensuring they receive optimum value for their investment. This service simplifies the growth process, allowing creators to focus on producing high-quality content that resonates with their target audience. Additionally, the cost-effective pricing in rupees makes it an accessible option for a wide range of creators, from beginners to more established YouTube personalities. This approach not only enhances the channel's credibility but also lays down a solid foundation for long-term success and community building.
    https://www.buyyoutubesubscribers.in/

    ReplyDelete
  38. In Delhi, Lasik eye surgery emerges as a beacon of hope for those burdened with vision impairments. Utilizing the latest in laser technology, this surgical procedure meticulously reshapes the cornea, the eye's clear, front layer, aiming to correct refractive errors such as nearsightedness, farsightedness, and astigmatism. The capital's top-tier clinics offer a blend of advanced equipment and skilled ophthalmologists, who work closely with each patient to customize the surgery based on their unique ocular conditions. The meticulous attention to detail extends from the initial consultation through to the post-operative care, ensuring a comfortable and supportive experience. Remarkably, the majority of individuals who undergo Lasik in Delhi report a dramatic enhancement in their vision, often surpassing their expectations. This has firmly established the city not just as a hub for excellence in eye care but as a place where many regain the joy and freedom of clear sight.
    https://www.visualaidscentre.com/

    ReplyDelete
  39. Buying YouTube subscribers is a tactic some content creators use to artificially inflate their subscriber count, aiming to make their channels appear more popular and authoritative than they naturally are. This method involves paying a third party to deliver a set number of subscribers over a certain timeframe. The main allure of this approach is the perceived boost in social credibility, potentially making the channel more attractive to organic viewers and subscribers. However, this practice harbors significant risks, such as the violation of YouTube's terms of service, which can result in punitive actions including the suspension of the channel. Additionally, these purchased subscribers are typically disengaged, leading to poor interaction metrics, since they have no real interest in the content being produced. This lack of genuine engagement can hinder a channel's ability to grow organically, affecting its overall health and sustainability on the platform.
    https://sites.google.com/view/buyytsubscribers/

    ReplyDelete
  40. Purchasing YouTube views can serve as a strategic move for those looking to quickly escalate their video’s apparent popularity. It's a process where content creators pay for a certain number of views, aiming to make their content appear more attractive and engaging to potential organic viewers. This tactic is particularly appealing to new creators who are struggling to get their content noticed amidst the vast sea of videos on the platform. However, the effectiveness of buying views largely depends on the integrity and authenticity of the service provider, as YouTube's sophisticated algorithms are continuously evolving to identify and penalize inauthentic engagement. While this method might offer a temporary boost in numbers, it cannot replace the value of genuine viewer engagement, such as likes, comments, and shares, which are critical for sustained growth and viewer retention on YouTube. Therefore, creators should weigh the potential risks against the benefits and consider focusing on creating high-quality content that naturally attracts viewers.
    https://www.buyyoutubeviewsindia.in/

    ReplyDelete
  41. Cheap web hosting in India is not just a cost-effective option; it's a launchpad for small businesses and individual creators to make their mark on the digital landscape. It combines affordability with a suite of essential features, such as ample disk space and bandwidth, ensuring that websites operate smoothly and efficiently. These hosting services prioritize uptime, guaranteeing that sites are always available to their audience, which is crucial for building and maintaining a digital presence. With scalable plans, they accommodate the growth of websites, adapting to increased traffic and content needs. Additionally, the inclusion of user-friendly interfaces makes website management accessible to users of all skill levels, from tech-savvy individuals to beginners. This approach to web hosting opens up the digital realm to a wider audience, promoting inclusivity and diversity online. Therefore, cheap web hosting in India stands as a pivotal tool for anyone looking to establish a footprint on the internet without extensive investment.
    https://onohosting.com/

    ReplyDelete
  42. Nursing jobs in Singapore offer a blend of professional growth and personal satisfaction within a globally acclaimed healthcare system. Nurses here engage with diverse patient populations, making each day a learning opportunity and a chance to experience varied medical practices. The government's investment in healthcare translates into advanced facilities and resources for nurses to deliver top-notch care. Additionally, the professional environment is structured around respect, collaboration, and a shared commitment to excellence. Nurses benefit from structured career paths that encourage specialization and leadership roles, fostering both personal and professional development. Singapore’s strategic location and multicultural society also provide a unique backdrop for nurses to work and live, enriching their cultural understanding and global medical perspectives. The city's safety, cleanliness, and efficiency make it an ideal setting for healthcare professionals to thrive.
    https://dynamichealthstaff.com/nursing-jobs-in-singapore-for-indian-nurses

    ReplyDelete
  43. At the forefront of Mumbai's medical community, a distinguished Breast Specialist Lady Doctor exemplifies unparalleled dedication and expertise in the realm of breast cancer treatment. Her clinic emerges as a pinnacle of innovation, where advanced treatments meet compassionate patient care. Specializing in cutting-edge therapies, she crafts individualized treatment plans that address both the physiological and emotional aspects of healing. Her profound commitment to her patients transcends clinical boundaries, as she actively engages in breast cancer research and public education to enhance awareness and outcomes. With a nurturing approach, she offers a sanctuary for her patients, providing a holistic path to recovery. This specialist's devotion to combining medical excellence with empathy has solidified her reputation as a pioneer in the fight against breast cancer in Mumbai, making her an inspiring figure of hope and resilience.
    https://drnitanair.com/

    ReplyDelete
  44. In the vibrant city of Ahmedabad, a Colorectal Cancer Specialist stands out for their pioneering approach in the fight against colorectal cancer. Equipped with a profound knowledge of oncology and access to state-of-the-art treatment modalities, they are at the forefront of delivering individualized care. This specialist’s methodology is grounded in the integration of advanced surgical interventions, innovative chemotherapy regimens, and breakthrough targeted therapies, ensuring that each patient receives the most effective and personalized treatment available. Recognizing the complexities of colorectal cancer, they underscore the importance of a multidisciplinary approach, engaging with a team of experts to offer comprehensive care. Their commitment to patient education, coupled with a compassionate bedside manner, empowers patients and their families, guiding them through the challenges of treatment with empathy and support. The specialist's dedication to clinical research further enhances their ability to bring the latest discoveries into clinical practice, significantly improving outcomes for those they serve in Ahmedabad.
    https://drvirajlavingia.com/

    ReplyDelete
  45. The Breast Specialist Doctor in Gurgaon epitomizes the pinnacle of innovative and compassionate care in the realm of breast cancer treatment. Merging the latest in medical advancements with a patient-first philosophy, they offer a beacon of hope to those navigating the complexities of cancer treatment. This doctor's approach is deeply holistic, considering every aspect of the patient's health and well-being, from the biological effects of cancer to the emotional turmoil it can cause. Their commitment to using minimally invasive techniques wherever possible minimizes patient discomfort and speeds up the recovery process, aligning with their mission to enhance quality of life. Beyond the clinic, the specialist is a vocal advocate for breast cancer awareness, dedicating time and resources to educate the community about the importance of early detection and preventive measures. This dedication has not only placed them at the forefront of oncology in Gurgaon but has also made them a cherished member of the community, respected not just for their medical expertise but for their unwavering commitment to their patients' overall well-being.
    https://www.breastoncosurgery.com/

    ReplyDelete
  46. Our leading breast specialist doctor in Pune offers expert care for a range of breast conditions. With a wealth of experience, they utilize advanced diagnostic tools and personalized treatment plans to meet the unique needs of each patient. The clinic is equipped with cutting-edge technology to ensure accurate diagnoses and efficient treatments. Patients benefit from a holistic approach that emphasizes overall well-being and compassionate care. Conveniently located in Pune, the clinic provides a welcoming and supportive environment for all patients. Trust our esteemed breast specialist doctor for exceptional medical care and dedicated patient support throughout your health journey.
    https://www.drshonanagbreastcancer.in/

    ReplyDelete
  47. Australia's hair regrowth treatments combine scientific precision and innovative approaches to restore hair health and density. Key treatments include Minoxidil, a topical solution that stimulates follicle activity, and Finasteride, an oral medication that blocks hair-thinning hormones. Advanced solutions like Platelet-Rich Plasma (PRP) therapy utilize the patient's plasma to rejuvenate the scalp. Hair transplant surgeries provide lasting results by redistributing healthy hair follicles. Personalized care plans often feature nutritional guidance and biotin-infused shampoos. Endorsed by dermatologists and trichologists, these treatments ensure safety and effectiveness. With nationwide availability, Australians have access to cutting-edge hair restoration solutions.
    https://generichealth.com.au/minoxidil-3/

    ReplyDelete
  48. Our mobile app development company in Delhi crafts bespoke, high-performance applications for iOS and Android platforms. Utilizing the latest technologies, we ensure secure, scalable, and robust solutions tailored to your business needs. Our expert developers excel in creating user-centric designs with intuitive interfaces for seamless experiences. Adopting agile methodologies, we guarantee timely and efficient project delivery. Our comprehensive services include thorough app testing, ongoing maintenance, and regular updates. We transform your ideas into powerful mobile solutions that drive business growth. Choose us for reliable, cutting-edge app development in Delhi. Trust our expertise for exceptional mobile technology results.
    https://olycoder.com/

    ReplyDelete
  49. Peer-to-peer (P2P) lending platforms in India are reshaping financial accessibility by connecting borrowers directly with lenders, bypassing traditional banking systems. These platforms enable individuals and small enterprises to secure loans at competitive interest rates, while investors enjoy potentially higher returns on their capital. By leveraging advanced analytics, these services assess the creditworthiness of borrowers, ensuring informed lending decisions. Regulated by the Reserve Bank of India, P2P lending instils a level of trust and security in transactions. The platforms are user-friendly, allowing investors to easily track and manage their portfolios. With a focus on financial inclusion, they cater to a diverse range of borrowing needs, making finance more approachable. As part of the evolving fintech landscape, P2P lending is becoming increasingly integral to India's economic growth. Overall, these platforms are a modern remedy to the challenges associated with conventional lending.
    https://www.perannum.money/

    ReplyDelete