Secretdoor

by ArthurTaragola in Circuits > Raspberry Pi

374 Views, 3 Favorites, 0 Comments

Secretdoor

62503896_386863435257727_2510865351852425216_n.jpg
64717035_896491267385070_8157860074568548352_n.jpg
64694104_338553613452199_1373735832107614208_n.jpg
64322209_312079829733693_3868252781789839360_n.jpg

Secret door is a project that opens a hidden department in a bookshelf. a 12v motor powers the self to come out when requested.

Components/materials

64381517_1934677916633813_1686432772928831488_n.jpg
64319742_377318226226930_4931955433268051968_n.jpg
64456028_1303631513136953_4441945028239032320_n.jpg
64829528_448628679253242_3241113382488637440_n.jpg
61509557_1260954870747634_4996853634651127808_n.jpg
64934925_304187373801314_3348624449791328256_n.jpg
64364940_2196626233724941_8346579116488654848_n.jpg
64456656_401974113740556_8802903538964365312_n.jpg
64361117_2348685725212426_6465682456463802368_n.jpg

a list of the materials/components you should own before starting:

  • wooden plates/ closet(old)
  • books
  • screws, nuts and bolts
  • glue
  • 12v motor + adapter
  • RFID-tag
  • sound sensor
  • relais which will take 3.3v
  • raspberry pi
  • Photo-transistor and infrared led
  • resistors : 220
  • resistors : biggest you find (combined 1000+ Kohm)

Put the Closet Together

64322209_312079829733693_3868252781789839360_n.jpg
FigureC_0.png
64682859_660243374447137_5969063578529955840_n.jpg

putting the closet together

by sawing the wood. measure your books, based in this measurement you will decide the with of the shelf. i took 5 books of 5.5x 27 cm. so a width of 30cm, and a height of 58cm. then another plank for the bottom and the top and the middle.

once hooked up you can cut a hole on one side of the closet so a compartment can come out, also make a box that matches this compartment

Motor system
The motor gives us a rotation motion which we must transform into a horizontal movement. We will use the system displayed in the picture. Saw a circle out of wood and apply an other longer piece to it with nuts and bolts, make sure he long piece can still easily turn on its own.

now attach your motor to the circle so it is able to turn without any friction. I used a a long bolt for this which is attached to the motor and turns the circle.

attach the long piece with the box so the motor pushes out the box when turned on. Attach the motor along with his adapter and relais to you can now turn it on and off.

Setting Up Components

64347436_2063753243931226_5813577988523950080_n.jpg
64250815_2144418672525684_8130216767403327488_n.jpg
64456656_401974113740556_8802903538964365312_n.jpg
64694104_338553613452199_1373735832107614208_n.jpg

Hook up the component on the desired locations.

i chose the back for the rfid, the top front for the sound sensor (should be at front for maximal pickup). And the top middle for the photo-transistor.

hook them up to the right pins on your raspberry pi. check out the scheme for more info. only thing that is incorrect is the motor. i worked with a stepper motor at first. but it wasn't powerful enough so i switched to a 12v AC motor.

the photo-transistor needs to have great Resistance for it to give a high signal on incoming light.

a link to hook up the rfid: click here

Scheme

schema.png

A closer look on how the circuit should look like.

Code

a link to my github where you can find all the code:

https://github.com/ArthurTaragola/secretdoor