|
| 1 | +.. _adafruit_ina237: |
| 2 | + |
| 3 | +Adafruit INA237 Shield |
| 4 | +###################### |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The `Adafruit INA237 DC Current Voltage Power Monitor Sensor Shield`_ features |
| 10 | +a `TI INA237 current sensor`_ and two STEMMA QT connectors. |
| 11 | +It measures current and bus voltage. |
| 12 | + |
| 13 | +.. figure:: adafruit_ina237.webp |
| 14 | + :align: center |
| 15 | + :alt: Adafruit INA237 Shield |
| 16 | + |
| 17 | + Adafruit INA237 Shield (Credit: Adafruit) |
| 18 | + |
| 19 | + |
| 20 | +Requirements |
| 21 | +************ |
| 22 | + |
| 23 | +This shield can be used with boards which provide an I2C connector, for |
| 24 | +example STEMMA QT or Qwiic connectors. |
| 25 | +The target board must define a ``zephyr_i2c`` node label. |
| 26 | +See :ref:`shields` for more details. |
| 27 | + |
| 28 | + |
| 29 | +Pin Assignments |
| 30 | +=============== |
| 31 | + |
| 32 | ++--------------+-------------------+ |
| 33 | +| Shield Pin | Function | |
| 34 | ++==============+===================+ |
| 35 | +| SDA | INA237 I2C SDA | |
| 36 | ++--------------+-------------------+ |
| 37 | +| SCL | INA237 I2C SCL | |
| 38 | ++--------------+-------------------+ |
| 39 | +| ALRT | INA237 ALERT out | |
| 40 | ++--------------+-------------------+ |
| 41 | + |
| 42 | +See :dtcompatible:`ti,ina237` for documentation on how to adjust the |
| 43 | +devicetree file, for example to adjust the sample averaging. |
| 44 | + |
| 45 | + |
| 46 | +Programming |
| 47 | +*********** |
| 48 | + |
| 49 | +Set ``--shield adafruit_ina237`` when you invoke ``west build``. For example |
| 50 | +when running the :zephyr:code-sample:`sensor_shell` sample: |
| 51 | + |
| 52 | +.. zephyr-app-commands:: |
| 53 | + :zephyr-app: samples/sensor/sensor_shell |
| 54 | + :board: adafruit_qt_py_rp2040 |
| 55 | + :shield: adafruit_ina237 |
| 56 | + :goals: build |
| 57 | + |
| 58 | +.. _Adafruit INA237 DC Current Voltage Power Monitor Sensor Shield: |
| 59 | + https://learn.adafruit.com/adafruit-ina237-dc-current-voltage-power-monitor |
| 60 | + |
| 61 | +.. _TI INA237 Current sensor: |
| 62 | + https://www.ti.com/product/INA237 |
0 commit comments