ayatec logo
Home Store Blog Contact
unicontrol user guide by ayatec
Home Store Blog Contact

Topics

  1. Welcome
  2. Getting started
    1. What is unicontrol
    2. How it works
    3. Connectivity
    4. Integration options
    5. Default hardware
    6. Hardware extensions
    7. Special sensors
    8. RGB driver
    9. Audio driver
    10. Network API - HTTP
    11. Network API - MQTT
    12. Network security
    13. Downloads
  3. Web Interface
    1. Processes
      1. Process
      2. Name
      3. Main state
      4. Initial state
      5. Display
      6. Constraints
        1. Process timer
        2. Variable contraints
        3. Force output
      7. Input
        1. Input source
        2. Channel
        3. Control period
        4. Value
        5. Publish
        6. Frequency
        7. Subtopic
      8. Events
        1. On/Off event
        2. Condition
        3. Idle/running time
        4. Delay on/off
        5. Fade in/out
        6. High/low input
        7. Mid point/Tolerance
        8. Out on when
      9. Output
        1. Primary output
        2. Action
        3. Type
        4. Invert
        5. Duty cycle
        6. Mem value
        7. High/low output
        8. Folder/Track
        9. RGB mode
        10. RGB color
        11. RGB brightness
        12. RGB speed
        13. Publish
        14. Subtopic
        15. Secondary outputs
      10. Cycle
        1. Cycles
        2. High/Low phase
      11. On/Off button
    2. Peripheral
      1. Hardware
      2. Type
      3. Calibration
      4. Mapping (edit)
      5. IR remote (edit)
      6. Impulse_counter (edit)
      7. RGB driver (edit)
      8. DS18B20 (edit)
    3. Device
    4. Network
    5. System
    6. License
  4. Tutorials
    1. First boot
    2. First process
    3. Connect to MQTT
    4. Process sequencing

    5. DIY Project: Bath Fan

In this article

  • Introduction
advert
unicontrol > Web interface > Peripheral

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.

The measurement range reduces to 0V-1V if a bare ESP8266 chip is used instead of a development board like WEMOS LOLIN D1 mini or NodeMCU.
© 2024 ayatec.eu • Found a mistake?  Let us know!