Maker Pro
Maker Pro

Push button, start motor, turn off, start timer... Help with circuit and programming

Hello, I just recently got into electronic stuff. I've gotten an Arduino starter kit. And things are still a bit complicated for me.

So I just came up with a project that I would really love some help with. Hopefully, this will help me understand a bit more.
I'm calling this project a "fish timer" since I have a big family and since no one actually ever knows if the fish has been fed or not. I know there is an automatically fish feeder to buy. But nah.
Anyways, so I came up with this design, I'll try to explain my design, the picture is also available. I made it on Sketchup. And I'm thinking about to moving on to Solidworks. Sorry, back to explaining...
Imagine a rectangle box stand, and inside it, there is an another rectangle box attached to the midpoint. it has four faces and can be rotated 360° degrees inside. But in my design I want it to rotate only 90° degrees because to view the face instead of the corner or any other odd position. It has four faces, two faces say "Feed Me" and the other two says "Satisfied".
Now it stands "feed me", I give the fish food and now they've been fed so I push the button, and it will eventually turn 90° degrees, showing the other face with "Satisfied". Now comes the help I need.

Push button = starts motor for an amount of time
(I don't know the RPM of the motor yet. My RPM meter will come soon. So I'll calculate it with no problem.)

Calculated time = which will make 90° degrees turn and then the motor turns off.
Start the 12h timer
12h timer is over
start motor = 90° degree
motor turn off

And the process will start all over once I push the button again.

I did also put some thoughts on the "Servo Motor" and I believe it's a lot easier with it and much more precise angle than a regular dc motor.

I don't know what to type in programming, and I don't know what things I need for the circuit. Is it possible to have a microcontroller on this project? So I don't have to need a big Arduino next to the model and sucking in all of the battery. If you guys could make or explain the schematic of the circuit and programming lines of the idea of my model it would be fantastic. Or even make some change on the model, if it's an improvement.

Note:
The picture is just to show my thought.
I do have a 3D printer, one of the reasons I came up with this project.
This project is not for advertisement, it's just my own personal hobby.
I'm from Sweden and I'm 15 years old, so I pardon for my English and a lot of the help I need. Since our school does not teach us a single thing about electronic stuff. So I mostly have to find facts on websites which is in English.

Anyways, have a good day.
Best regards Simon.
Capture 1.jpg Capture 22.jpg

Those blurred things are "Lightup" Plugin on SketchUp for rendering. It's trial, that's why.
 
Last edited:
Use a small motor gearbox.
The way you have it drawn it will spin so fast you will not get consistent results from the rotation.

Second.... no real need for Arduino but you could do it that way.

Third.... instead of time, use a position switch like an opto or hall effect.
 
As Bluejets said, rotating by time will not work, it will get out of sync eventually and be in between the two messages.

A servo would work. These rotate to a specific angle based on the signal sent to them, and they already have the gearing that Bluejets mentioned you would need.

Using a Arduino is not unreasonable, especially if you are going to use a servo motor. It is a fairly complicated circuit to do without a microcontroller, but fairly simple with one.

Bob
 
One other way to do this that would be somewhat easier, and wouldn't require motors would be to use two different colored LEDs to project through different messages onto a white screen, or maybe even the wall. Just 3d print rectangles with both 'feed me' and 'satisfied' cut out, so an LED behind each of them will project the words onto the wall, and use the arduino to select either one or the other LED based on time and button pushes.

Your arduino sketch looks for the button push, turns on the 'satisfied' LED, and waits 12 hours. Once 12 hours are up, just turn off the 'satisfied' LED, turn on the 'feed me' LED, and wait for the button push. You don't even need to 'debounce' the button. You can use internal pullups, and just have the button close a path to ground on the logic input. Very simple, no real moving parts except the button, and you get to use your 3d printer to build the enclosure, signs, and such!
 
Top