I've uploaded a code example, of how I am monitoring voltage, and
capturing temperature outputs from each servo. The example is based on
the stock output of NUKE. You can grab it from the files section here
on the group (it's called power.pde, of course, it's also the only
file over there....)
Also, all members have access to upload files, so feel free to upload
example code you've written for your ArbotiX.
-Fergs
-Fergs
This is how I read them:
bytes = ax12GetRegister (voltageTemperatureId, AX_PRESENT_VOLTAGE,
2);
voltageTemperatureId++;
if (voltageTemperatureId > MAX_SERVO_ID)
voltageTemperatureId = 1;
systemVoltage = lowByte (bytes);
systemTemperature = highByte (bytes);
- Jon