Reading motor voltage
mmor101
Posts: 8
I have two motors hooked togehther, one that powers the other motor and one that generates. I'm trying to read the voltage coming of the generated motor and display it in a debug window. Would I have to use an ADC chip?
Comments
2. You probably SHOULD use an ADC chip, as you want the ADC chip's high impedance so it will affect the motor's output as little as possible.
Main:
GOSUB ReadADC
GOSUB WriteOutput
PAUSE 100
GOTO MAIN
ReadADC:
' Whatever code it takes to read your ADC chip
ADCData = 1
RETURN
WriteOutput:
DEBUG DEC ADCData, 13
RETURN