I need help making a servo open a hatch for a period of time then closing. Once a day
greenanole
Posts: 13
Do ya'll have any ideas on how to accomplish this...?
Comments
What kind of power source do you have? Does this need to be powered by a battery?
How precise does it need to be?
BTW, Welcome to the forum.
It is a small door on a project that flips open. Like a door in a house. Does this make sense...??? I'm not sure.
That can mean a lot of different things. Small is relative. It is best to give some approximate dimensions. If you can't do that then compare the size to something that is commonly known such as - "a door the size of a pack of playing cards".
I need to build a box that has a 2 x 2 in door on it. (The door will open from the bottom of the box)
I will need it to open at a certain time of day for x amount of seconds. I don't need it to be extremely accurate. I still need to figure how long it needs to be open by trial and error.
The box itself is about a 1 foot square. 5-6 in deep.
The problem is, it needs to be powered from the wall most likely because he goes out of town for weeks at a time.
So I basically need info on making it turn a servo 45-70 degrees once a day. The arrow in the CAD is pointing to the door which will open about about 45-70 degrees. Exact angle has not been determined yet.
If this does not clarify my project, just tell me. (I'm new to this forum and not too experienced)
Thank you
Sorry for not being detailed at the start.
Powering from the wall is not a problem. This power supply would work well: http://www.parallax.com/StoreSearchResults/tabid/768/List/0/SortField/4/ProductID/73/Default.aspx?txtSearch=power+supply
I would consider a different mechanism for opening the door. It seems that it would be better to have a small hole in the wall separating the cricket chamber from the electronics rather than a slot that little crickets can get through. I would use a push rod to actuate the door. Much the same way as is used on RC airplanes to control the control surfaces.
Does it matter if the time off day gets shifted a bit each day? The Basic Stamp can keep approximate time. It will accumulate errors. For example, you might program it to actuate every 24 hours but in reality it may operate every 23 hrs and 55 minutes (gross estimate, I have no idea how much off it would be). After a few weeks it would be hours off. This may be of no consequence in this application. Also, you can tune your timing based upon observation to better match the real time.
another copy of the last 4 lines above to do this.
Never mind this post.
A couple minutes drift over a week (per Mike Green) is not horrible at all in my opinion, pretty good actually.
Servos, are very easy to use with a microcontroller.
I don't know how precise time kept by a Propeller wouild be but it should keep it will enough it keep your friends reptile happy.
You could use QuickStart board and use its LEDs as a binary countdown to feeding time. If the time were noticeably off, you could use the touchpads to correct the time.
I used the QuickStart's touchpads as inputs to control a servo in my QuickStart servo tester. I also used its LEDs as a way to indicate the various parameters of the tester.