Hope you’re all well in these trying times?
I’m new to Arduino and was hoping I could get some help with my project cos i’m just confusing myself more everytime i try a different approach to the code.
So here’s the deal…
2 button remote and a receiver with a relay attached to it
Arduino Uno board
At rest the relay should be open
If button A pressed, the relay should close and the servo should turn x degrees
If button B pressed, relay should return to open and servo rotate back to original position
I’ve gone through so many different attempts that i don’t even know what’s happening regarding the code, but my test outputs are giving incorrect results. The input from the relay is changing everytime the loop runs without me even pressing any buttons. So i’m confident my code is a complete MESS.
I’ve set the relay input to Digital Pins 2 & 3, the Servo is hooked up to Dpin 9.
So, would anyone be able to help me get to some working code please? Is it even possible to do what i’m trying to with the bare minimum components i’ve got listed here?
Thanks for your time.