I want to control a servo with an IR remote. I can make the servo move with any button and all that but I am struggling with this spesific project. I want the program to move the servo (to which ever direction I program it to go) while I hold the button down of the infrared remote and when I release it the servo should stop in that current position. I tried alot of things but I just can not get it right. Can someone please help
while I hold the button down of the infrared remote and when I release it the servo should stop in that current position
I hope you are aware that the remote sends one code when the switch becomes pressed, and may, or may not, send a different value if the switch is held down.
I hope you are aware that the remote sends nothing when the switch becomes released.
If, when the switch becomes pressed, you send the servo to position 120, why would it be anywhere else when you release the switch?
I tried alot of things but I
don't intend to post any code or explain what it did, or did not do.