I am new here and currently working on a school project. It is a long-time project but let me start by asking if this is even possible to do.
We own one of these motors: http://www.electricmotorsport.com/motenergy-me1117-pmac-motor-24-48v-6-hp-cont-19-hp-pk.html
The motor runs on its own controller: http://www.electricmotorsport.com/sevcon-gen4-36-48-275.html
As of right now, we control the speed of the motor through a potentiometer.
Our idea is to use the Mega 2560 + PID controller to create a closed feed-back system base on the reading from the Voltage of the battery. What we thought was just to send signals from one of the analog pins to replace the use of the potentiometer. I don't know if this is even possible so correct me if I am wrong.
If this sounds it can be done, would there be any extra items/parts/devices required to start this?
Any comments/ideas are highly appreciated.