I have two projects that I been trying to figure out. The first one might be very simple for a lot of you on the forums here.
The first project is a "single button" to make a servo work just like the eject button on a cd , dvd rom on a coumputer.
It will extend and retract "but" only with the press of the "single button." Is this feasible to do by programming a IC chip using arduino?
keep in mind it has to run off of battery, and the whole thing will be housed on my wrist. For those of you asking yourself why on his wrist?
It's part of my predator outfit. Any an All feedback is welcome!
This can't be too difficult, but don't expect people to write the code for you.
You need to keep track of where you are.
Take it step by step, and you're good to go.
First, set all states you need to keep track of.
These are at least the actual button state, the last button state and the state of your servo.
Figure out how to check the button is pressed or not.
If you know that, then have a look to see if the button has been released.
A pressed and then released button, enables the switch to the next state for the servo, and another press then actually moves the servo.
This should be a very simple piece of code, much less than 100 lines including comments and instructions (as comments) on how to connect.
When I stated "very new to arduino" I mean just that! I have opened the box checked out the software an did the blink sketch.
I never asked for anyone to write the code for me, yet I didn't make it clear enough that I'm hoping someone can point me in the right direction.
(i.e., a project that someone else has done that is similar to what I'm trying to do.)