Sunday, 10 September 2017

control - Using a motor to open doors


I have made a wooden case to hold both my Xbox 360 and my PS3. It's as wide as both consoles laid down next to each other and as high as the console. it has 2 doors on the front, one for each console. They're both hinged separately from the bottom. What I want to do is to use a hobby motor to open (push) and close (pull) the door open to 90 degrees. The best way I can see is using plastic cord that has teeth on it and a motor that a teethed head on it to lower and pull the door up.


The problem is:



  • how can I control the motor to run for a certain time (so it doesn't just keep running) and

  • how with just one button I can press it and it lowers to 90 degrees and press it again and it will pull the door back up and stop



Answer



I'd suggest a much simpler solution: buy a hobby servo, attach a long-ish horn to it, and connect a rod from the end of the horn to the door. By adjusting the position of the rod on the horn and the door, you can ensure that at full extension, the servo opens the door completely.


Servos have built in position feedback, so you can control one with a microprocessor and instruct it to move to 'open' and 'close' positions as desired.



No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...