Difference between revisions of "TCR5000"
Grovkillen (talk | contribs) m (Some typos) |
Grovkillen (talk | contribs) m |
||
Line 9: | Line 9: | ||
A simple ESP8266 module like the ESP-01 is sufficient. We will use a TCR5000 optical sensor that is widely available. Connect pin 3 (DO) to some GPIO on the ESP and power up both the ESP and the sensor. | A simple ESP8266 module like the ESP-01 is sufficient. We will use a TCR5000 optical sensor that is widely available. Connect pin 3 (DO) to some GPIO on the ESP and power up both the ESP and the sensor. | ||
− | = | + | = 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 | 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 | ||
Line 23: | Line 21: | ||
That should be all. | That should be all. | ||
− | + | == Optional settings == | |
[[ EasyFormula | Use of formulas]] | [[ EasyFormula | Use of formulas]] | ||
Line 35: | Line 33: | ||
[[File:Domoticz_PowerUsage_Chart.png]] | [[File:Domoticz_PowerUsage_Chart.png]] | ||
− | |||
− | |||
− |
Revision as of 13:06, 20 June 2017
Introduction
The ESP8266 module can be used as an general purpose digital pulse counter device for various digital sensors. Think about optical sensors with a digital output. To be used for things like gas, water, electricity, door open/close counters, etc.
In this example we will connect an optical sensor. Connect the digital output to some chosen GPIO pin on the ESP module. Load the firmware and follow the firmware specific instructions.
Hardware
A simple ESP8266 module like the ESP-01 is sufficient. We will use a TCR5000 optical sensor that is widely available. Connect pin 3 (DO) to some GPIO on the ESP and power up both the ESP and the sensor.
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
Enter the IDX found in the Domoticz device page. Also select the GPIO pin that you have used to connect the pulse counting device.
With the current release, you need to REBOOT the ESP Easy to get the show running. (we will change this requirement in the next release). That should be all.
Optional settings
And the final result if using Domoticz: