WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

Phidget/DC50A.h

Phidget 50A DC current sensor.
phidget 50a.jpg
This must be connected to an ADC pin. It may be defined using:
Phidget_DC50A sensor = MAKE_Phidget_DC50A(ADC0);
Where F0 is changed to be the required ADC input pin.
The sensor should be initialised in appInitHardware using:-
currentInit(sensor);
The sensor can then be read using:-
currentRead(sensor);
and then the current in amps, -50 to +50, will be in sensor.current.amps

Valid XHTML 1.0 Transitional