Difference between revisions of "PCF8591"

From Let's Control It
Jump to navigation Jump to search
Line 1: Line 1:
----
 
[[Bestand:PCF8591Module.jpg|320px]]
 
[[Bestand:PCF8591.jpg|320px]]
 
----
 
 
 
= Introductie =
 
= Introductie =
 
The ESP-01 module has no analog input. Only boards like the ESP-07 and ESP-12 break out the single ADC (TOUT) pin on the ESP chip. But we can provide all ESP modules with 4 analog inputs using the PCF8591 I2C ADC chip.
 
The ESP-01 module has no analog input. Only boards like the ESP-07 and ESP-12 break out the single ADC (TOUT) pin on the ESP chip. But we can provide all ESP modules with 4 analog inputs using the PCF8591 I2C ADC chip.
  
 
= Hardware =
 
= Hardware =
 +
[[File:PCF8591Module.jpg|320px]]
 +
[[File:PCF8591.jpg|320px]]
 +
 
The PCF8591 can be bought on eBay as a bare chip or a plug and play module.
 
The PCF8591 can be bought on eBay as a bare chip or a plug and play module.
  

Revision as of 08:59, 25 August 2015

Introductie

The ESP-01 module has no analog input. Only boards like the ESP-07 and ESP-12 break out the single ADC (TOUT) pin on the ESP chip. But we can provide all ESP modules with 4 analog inputs using the PCF8591 I2C ADC chip.

Hardware

PCF8591Module.jpg PCF8591.jpg

The PCF8591 can be bought on eBay as a bare chip or a plug and play module.

Software

Custom Sketch

ESP Easy

Use the device tab on the ESP Easy webinterface and create a new task by editing one of the available tasks. Select "PCF8591 Analog input" from the dropdown box and enter the IDX found in the Domoticz device page. Also select the port on the PCF8591 that you want to read (1-4). That should be all.

ESP Connexio

Command:

ExtWiredAnalog <poort>, <Variabele>
Parameter: Beschrijving: Bereik: Opmerking:
Poort 1 t/m 32
Variabele 1 t/m 15

Sample

ExtWiredAnalog 1,3