ok, here is the situation, I have an RC boat with a brushed motor, just normal DC. It worked through a servo pressing a switch so every time you pushed the gas it would just fly of. Because of this I wanted to make an Arduino speed controller to take the servo signal through an Arduino/MSP430, through a MOSFET, into the engine. but how do I write the software? I have no idea about the incoming PWM signal, but that's why I'm asking you! so the main question is to help me with the software.