Peripheral
The Peripheral menu in the unicontrol web interface is used to define the behavior and designation of all hardware peripherals. Before a hardware pin can be addressed as an Input or Output, it needs to be defined in a way that best describes the hardware device connected to it.
Digital
The digital pins native to ESP8266 are the GPIO pins labeled as D0-D8
.
These pins are available at all times and each digital pin's designation and behavior is defined by the Hardware setting.
If an IR remote sensor, an Impulse counter, or an RGB channel was selected as the Hardware,
the IR Remote edit page, the Impulse counter edit page, or the RGB driver edit, respectively, becomes available.
Due to various hardware and software constraints, each digital pin has different options available. For example, only D4
can serve as a system LED,
only D3
or D4
can be a DS18B20 bus, but most of the digital pins can carry a DHT11 sensor.
Analog
ESP8266 only carries a single ADC-capable pin A0
which can be extended by an Analog multiplexer to eight independent pins I1-I8
when set up accordingly.
While the value of A0
is measured in real-time, the I1-I8
pins are only measured 12 times per second each due to hardware constraints.
Native measurement is done in a range of 0V-3.3V
using the 10-bit ADC.
This raw value can be either turned into a logical HIGH/LOW
-Type input,
or transformed into an arbitrarily chosen unit of measurement using the Mapping function and a subsequent Calibration.
0V-1V
if a bare ESP8266 chip is used instead of a development board like WEMOS LOLIN D1 mini
or NodeMCU
.