Background
I'm trying to read a gyro chip and integrate the values to give "angle turned" fo a robot.
This is done on a dedicated 08M chip, and I wish to signal the angle to the main Picaxe chip.
I output the angle as 3 output levels on 3 output ports which are currently driving LEDs.
The sensor chip is run from a 9v battery and a 7805 regulator
Problem
The zero-rotation voltage reading from the gyro changes depending on the number of outputs,
and which outputs are active.
Current solution
I use pulseout on a single output, which works reasonably well (90 degrees drift in about 1-2 minutes)
Questions
a) will it work better if I use the internal Vref of an 08M2?
b) if I use DACLEVEL to output the reading will the adc suffer the same problems?
Thanks
John Fisher
(Pulse out Code attached)
I'm trying to read a gyro chip and integrate the values to give "angle turned" fo a robot.
This is done on a dedicated 08M chip, and I wish to signal the angle to the main Picaxe chip.
I output the angle as 3 output levels on 3 output ports which are currently driving LEDs.
The sensor chip is run from a 9v battery and a 7805 regulator
Problem
The zero-rotation voltage reading from the gyro changes depending on the number of outputs,
and which outputs are active.
Current solution
I use pulseout on a single output, which works reasonably well (90 degrees drift in about 1-2 minutes)
Questions
a) will it work better if I use the internal Vref of an 08M2?
b) if I use DACLEVEL to output the reading will the adc suffer the same problems?
Thanks
John Fisher
(Pulse out Code attached)
Attachments
-
1.6 KB Views: 7