Uses 0.05Ω shunt resistor, value read is 15x actual voltage
Value read is 1/2 actual voltage
Input port 1 pin 6
Input port 1 pin 1
Input port 2 pin 6
Input port 2 pin 1
Input port 3 pin 6
Input port 3 pin 1
Input port 4 pin 6
Input port 4 pin 1
Output port C pin 5
Output port D pin 5
Was motor current on pre-release hardware
In lsm2012, you will see scaling of the value read from the ADC by 4096
(12-bits) instead of by 1024 (10-bits). This is because they are not shifting
the value read to the right 2 bits. Since this is a 10-bit chip, the 2 least
significant bits read will always be 0.
A TI employee wrote a hwmon driver for the ADS7957 (source)
which is used by lm-sensors. This interface is generally for low-speed
(on the order of 1Hz) polling of fan speeds, temperatures, voltages, etc.
This does not really fit our needs for ev3dev, so we borrowed some code and
wrote our own driver.
www.ev3dev.org (with the exception of the projects pages)
is licensed under
You are free to copy the text and images, but please be courteous and acknowledge the source.
LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this site