Trying to use a counter with a servo motor
hi,
i started using arduino , got stuck on projects on kit tried take bit further
what did hook 2 buttons arduino , goal was, lets example:
i push button 1 3 times, arduino count three
then push button 2 3 times, motor move.
i tried writing code it, attached picture of, not working.
extra:
i attached 5v both buttons , on both buttons sent signal digital inputs 2 button 1 , 3 button 2
i made sure attach buttons ground using 10k resistors
i started using arduino , got stuck on projects on kit tried take bit further
what did hook 2 buttons arduino , goal was, lets example:
i push button 1 3 times, arduino count three
then push button 2 3 times, motor move.
i tried writing code it, attached picture of, not working.
extra:
i attached 5v both buttons , on both buttons sent signal digital inputs 2 button 1 , 3 button 2
i made sure attach buttons ground using 10k resistors
no screen shots please.
attach sketch between code tags appear after select icon in image below:
attach sketch between code tags appear after select icon in image below:
Arduino Forum > Using Arduino > Programming Questions > Trying to use a counter with a servo motor
arduino
Comments
Post a Comment