need help with project
I am currently working on a project with the board of education rev c. The project requires me to use a servo and 2 push buttons to make a windshield wiper. The wiper has to have 6 speeds, it starts at the slowest and controlled by the 2 push buttons. If the in3 is pressed, the speed goes up by one, if the in4 is pressed, the speed goes down one. I tried to do this one alone but can't figure out he answers, if anyone have the solution or tips, please post it here. Thanks
Comments
Typically for a project like this, you have to break down the project into small pieces and come up with solutions for each piece before you try to combine them. For example, you should make a program first that simply senses when a pushbutton is pressed and when it's released. Then do the same for two pushbuttons where the program can sense when either pushbutton is pressed or released. A second piece might be to make the servo sweep the way you need it, then extend that program to have your six speeds. Next project would be to use the two pushbuttons to keep a counter the way you described. Remember to set it up so there are limits going up and going down (so you get 1 to 6). Then you combine the pieces and get the combined program to work.
If you come up with some source code and have a question about it, use the "Post Reply" button and the Attachment Manager that shows up to upload your source code. DO NOT just cut and paste the source code into a message.