So here's the scenario: I have an output on my board that normally goes to an RC car's Electronic Speed Control (ESC), which takes a signal that is identical to that of a servo-- 1500us is neutral, 1000us is MAX_REVERSE_SPEED, and 2000us is MAX_FORWARD_SPEED.
Now, problem is that the robot we're working with does not have such an ESC (mainly because it's a riding lawnmower and we're already voiding the warranty by doing this
) It has its own controller that can just take a PWM signal directly.
So, since I can't modify the code in the control board, and the riding lawnmower takes a PWM signal, I was thinking of just reading in the servo signal and turning it into a PWM signal. How do I do that? I'm aware that I could just consider the servo signal to be a PWM signal and read it like an analog voltage into something like an arduino, but the voltage range of that would be 0.26V to 0.46V and we'd not have enough resolution on an ADC.
Any thoughts? Is there an easy way to write code that just counts when the servo signal is received and turn that into a more useful signal?
(I put this in software because I always consider coding the solution before making a circuit. I guess it can easily go into electronics as well)