Miniature Automated Door

by dev_09 in Circuits > Arduino

678 Views, 1 Favorites, 0 Comments

Miniature Automated Door

Miniature automatic door
20180507_103051.jpg

This is a model of a door that opens when you touch a force sensor located in front of it. The door will remain open for 3 seconds allowing time for you to pass through. To make it you will need:

  • Cardboard
  • Glue / Tape
  • An arduino
  • Wires
  • A servo
  • A force sensor (FSR)
  • A 9 volt battery and connector
  • A 10K resistor (or higher)
  • A bread board
  • A soldering iron and solder
  • Scissors / box cutter
  • A Wire cutter and stripper

Wiring

Automated door instructables drawing.jpg

Wire the servo and the FSR to the arduino as shown above using a bread board first to makes sure it works as expected before soldering anything together.

Upload Code

Screen Shot 2018-05-09 at 6.24.58 PM.png

Upload the code shown above to the arduino and check if it works. It If it doesn't check that the pin numbers in the code correspond to the pins you have populated on the arduino. If it still doesn't work open the serial monitor and look at the different values you get when you touch the sensor to fine tune the values for the if statements.

( I had to upload the code as an image because when I pasted it into the instructable it went all wonky)

Dressing It Up

20180507_103038.jpg

Solder the wires together to get rid of the bread board and plug in the battery so the arduino can work without being connected to your computer. You might need to spilt the 5v pin into two if you do not have enough 5v pins. You can do this by soldering wires into a 'y' shape so you get two wires out from the 5v pin. Next attach a piece of carboard to the servo to represent the door and construct some sort of floor surface to mount the FSR and the servo to. Test it and if it works you are done.