I have a eflite blade MSR I would like to convert it from its coreless motors to brushless motors. I have all the hardware main and tail motors and two esc's here. What I need to do is convert the motor voltage into a servo pulse to control the brushless side. I can read a adc on a pic12f675 and convert it into a servo pulse in a crude form.
These are the settings for the ADC plus code;
DEFINE OSC 4
DEFINE ADC_BITS 10 'DEFINES RESOLUTION
DEFINE ADC_CLOCK 3 'DEFINES ACD CLOCK SPEED
DEFINE ADC_SAMPLEUS 50 'DEFINES SAMPLE TIME OF 50ms
ANSEL = %00001000 'TURNS ON A2D THREE
Main:
ANSEL = %00001000 'TURNS ON A2D THREE
ADCIN 3,pos 'READS A2D AND PUTS THE RESULT IN THE POS REG
pos = pos/8 '1024/8 = 128
pause 20
pulsout 2,72 + pos 'SERVO PULSE IS BETWEEN 0.72mS AND 2mS
goto main
Would the adc as configured be fast enough to read the fast changing tail motor voltage? If not what would the best way be to acheive this?
........thanks for your time
Bookmarks