I have added a few lines to the eggbot extension to be able to "read" the motor voltage.
See this link; (See updated link in post below)
Anyone brave enough to test my code?
Is it OK to post a link to "unofficial" code or does it have to go through "Evil Mad Scientist" for check first?
The EBB also reports motor current as a reference voltage, does anyone know the "factor" for this number?
In the EBB command manual it is only described as a 10 bit number from 0 to 1023.
The schematics for the V2.1 Board have some info:
0.0V = 46mA
2.58V = 1.35A
Can we assume a linear range?
What "raw" value does the EBB report for 1.35A?
My EBB shows a "raw" reading of 513 for a (idle or holding) current of 0.56A,
(1.917V across a 3.4Ω winding).
The table for the motor voltage given in the EBB command manual seems quite accurate with a max error of around 0.1V on my EBB using a Fluke 89IV for actual measurement.
My code interpolates from the table given in the manual.