Difference between revisions of "INA219"

From Let's Control It
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
= Introduction =
 
= Introduction =
The ESP module can read voltage and current from a DC supplied circuit, using the INA219 I2C voltage and current sensor.
+
This ESP module can read voltage and current from a DC supplied circuit, using the INA219 I2C voltage and current sensor.
  
The INA219 sensor needs to be connected to a the I2C pins on the ESP module. These pins can be configured on the hardware tab.
+
The INA219 sensor needs to be connected to the I2C pins on the ESP module. These pins can be configured on the hardware tab.
  
 
== Hardware ==
 
== Hardware ==
 
The INA219 sensor can be connected directly to an ESP module by using the two pins SDA and SCL.
 
The INA219 sensor can be connected directly to an ESP module by using the two pins SDA and SCL.
  
The circuit that needs to be measure connects to the screw terminal header. Maximum values are 32 volts and 3.2 Ampere.
+
The circuit that needs to be measured connects to the screw terminal header. Maximum values are 32 volts and 3.2 Ampere.
  
 
----
 
----
[[File:INA219.png|320px]]
+
[[File:INA219.jpg|550px]]
 
----
 
----
  
= Software =
+
== Wiring ==
  
== Custom Sketch ==
+
Wiring example with a Wemos D1 mini.
  
== ESP Easy ==
+
[[File:INA219_S.jpg]]
 +
 
 +
= ESP Easy =
 
The INA219 communicates with the ESP8266 through the I2C interface, so first use the Hardware tab in the web interface of ESP Easy to find out what pins are being used for SDA and SDC. They can be altered if required.
 
The INA219 communicates with the ESP8266 through the I2C interface, so first use the Hardware tab in the web interface of ESP Easy to find out what pins are being used for SDA and SDC. They can be altered if required.
  
Line 26: Line 28:
 
Enter the IDX found in the Domoticz device page. That should be all.
 
Enter the IDX found in the Domoticz device page. That should be all.
  
=== Optional settings ===
+
== Optional settings ==
  
 
[[ EasyFormula | Use of formulas]]
 
[[ EasyFormula | Use of formulas]]
  
 
[[ EasyValueNames | Use of value names]]
 
[[ EasyValueNames | Use of value names]]

Latest revision as of 12:15, 6 August 2017

Introduction

This ESP module can read voltage and current from a DC supplied circuit, using the INA219 I2C voltage and current sensor.

The INA219 sensor needs to be connected to the I2C pins on the ESP module. These pins can be configured on the hardware tab.

Hardware

The INA219 sensor can be connected directly to an ESP module by using the two pins SDA and SCL.

The circuit that needs to be measured connects to the screw terminal header. Maximum values are 32 volts and 3.2 Ampere.


INA219.jpg


Wiring

Wiring example with a Wemos D1 mini.

INA219 S.jpg

ESP Easy

The INA219 communicates with the ESP8266 through the I2C interface, so first use the Hardware tab in the web interface of ESP Easy to find out what pins are being used for SDA and SDC. They can be altered if required.

Next use the device tab on the ESP Easy webinterface and create a new task by editing one of the available tasks. Select "Voltage & Current - INA219" from the dropdown box.

EasyConfigINA219.png

Enter the IDX found in the Domoticz device page. That should be all.

Optional settings

Use of formulas

Use of value names