upm  0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Public Member Functions
INA132 Class Reference

API for the INA132 Differential Amplifier Sensor. More...

Detailed Description

The INA132 Differential Amplifier Sensor is designed for precise differential-input amplification.

This sensor was tested amplifying the signal from a Weight Sensor (Load Cell) 0-500g

ina132.jpg
// The was tested with the INA132 Differential Amplifier Sensor module.
// Instantiate an INA132 on analog pin A0
upm::INA132 *amplifier = new upm::INA132(0);
while (shouldRun)
{
cout << amplifier->value() << endl;
sleep(1);
}

Public Member Functions

 INA132 (int pin)
 
 ~INA132 ()
 
float value ()
 

Constructor & Destructor Documentation

INA132 ( int  pin)

INA132 constructor

Parameters
pinAnalog pin to use
~INA132 ( )

INA132 destructor

Member Function Documentation

float value ( )

Measures precise differential-input amplification from the sensor

Returns
Precise differential-input amplification

The documentation for this class was generated from the following files: