LJ12A3

From Let's Control It
Revision as of 10:30, 13 May 2017 by Jjansen85 (talk | contribs) (Created page with "= Introduction = The ESP8266 module can be used als a general purpose digital pulse counter device for various digitale sensors. Think about optical sensors with a digital out...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

The ESP8266 module can be used als a general purpose digital pulse counter device for various digitale sensors. Think about optical sensors with a digital output. To be used for things like gas, water, electricity, door open/dicht counters, etc.

In this example we will connect an inductive proximity switch (LJ12A3-4-Z.)

Hardware

LJ12A3-4-Z.jpeg

A LJ12A3-4-Z module can be used in order to detect metal. For example in your water consumption meter.

Schematic LJ12A3-4-Z.png

Use the schematic above in order to connect the sensor to an ESP8266 module.

Software

Arduino ESP Easy

Use the device tab on the ESP Easy web interface and create a new task by editing one of the available tasks. Select "Pulse Counter" from the dropdown box

EasyConfigPulse.png

Enter the IDX found in the Domoticz device page. Also select the GPIO pin that you have used to connect the pulse counting device. That should be all.