Understanding Inputs and Outputs in Controllers
For controllers to perform their functions effectively, they must process inputs, execute logic, and generate outputs to achieve the desired control. Internally, most older microprocessors operate on a 5V DC system, powering the processor and all its I/O. Modern controllers often use 3.3V, but this only affects scaling—not functionality.
However, real-world applications require controllers to interface with devices operating at different voltages. This necessitates additional circuitry between the connection terminals and the processor pins to handle the voltage differences.
Types of Inputs and Outputs
1. Digital Inputs
Digital inputs detect discrete states—open or closed. In buildings and plant rooms, these include:
Pulse Inputs
Some digital inputs register pulse signals, like flow meters or speed sensors. These are processed using interrupt pins, which momentarily halt the controller’s main program to increment a counter each time a pulse is received. Since only a few pins support this functionality, they must be assigned carefully.
2. Digital Outputs – ON/OFF
Digital outputs switch equipment ON or OFF, commonly used for:
For staged control (e.g., multi-step heating elements), multiple digital outputs are grouped to provide step-wise activation.
3. Digital Outputs – PWM (Pulse Width Modulation)
PWM is a technique where a digital output switches rapidly between ON and OFF, varying the duty cycle to create a modulating effect. It is commonly used for:
How PWM Works
A 50% duty cycle means the signal is high for half the time, resulting in an effective voltage of 2.5V on a 5V system. Likewise, a 25% duty cycle translates to 1.25V if you measure it with a multimeter. On an oscilloscope however, you will see a block wave.
Most controllers, like an Arduino, offer 8-bit PWM resolution, meaning the duty cycle can be adjusted in 255 steps. While sufficient for most applications, finer control may require higher resolution.
领英推荐
4. Analog Inputs
Analog inputs measure continuous values such as:
Common Analog Sensor Standards
5. Analog Outputs
Analog outputs provide modulating signals to control:
Controllers typically offer 0-10V or 4-20mA outputs, converted from PWM signals via additional circuitry. While PWM outputs can mimic analog signals, true D/A (Digital-to-Analog) conversion provides smoother operation.
6. Fire Alarm Panels: Specialized Controllers
Fire alarm panels operate similarly to standard controllers but differ in input/output architecture. There are two main types:
Conventional Panels
Addressable Panels
Addressable panels trade slightly slower response times for improved scalability and reliability. Each sensor acts as a mini-controller, with its own communication port and I/O handling.
Conclusion
Understanding digital and analog I/O is fundamental in designing reliable control systems. What matters though, is that fundamentally there are 4 and only 4 types of I/O's. This is exactly how simple it is. Regardless of the controller in front of you, they are all the same kind of animal.