Hello,
Very very new to any of this, this is not my wheel house what so ever, but I hope I'm not overstepping.
I am having a very hard time even trying to learn any coding, and looking for some help.
I am currently trying to build a trolling motor throttle control setup. I have simulated an operating board, potentiometer and a servo motor. It is wired pot to Analog Pin 1, servo wired to PWM Output 9.
Current coding is the Arduino prebuilt example, "Servo knob".
Currently working as I would expect. However, my end goal is to add a few functions, in which i have no idea where to start. Hopefully this can be explained easy enough, so here goes.
Idle/Resume function.
--Servo is controlled by potentiometer to desired position. (Trolling engine set to demanded rpm)
--With use of push button, servo returns to idle position overriding pot position. (trolling engine idles)
---->Push of same button (if momentary button) or unlatch button, servo returns to
setting defined by pot. (Trolling engine resumes speed.)
Hunting function
--Again, potentiometer is defining servo position (engine speed).
--Pushing of momentary or latching push button (switch), servo maintains potentiometer for defined time (IE 50 seconds) then increases by a defined amount (IE 20 percent) for a defined amount of time ( IE 10 seconds) and then return to potentiometer defined setting, and the cycle repeat.
Also, I want to code a second switch/button to do the exact same, but only decrease by the defined amount. The same time frames would be used.
I hope this makes sense, and again hope I'm not overstepping. I have a decent understanding of electronics and theory, as a career mechanic. However, creating logic/code is beyond my understanding.
Thanks a pile!
Bob