Week 9: Input Devices
Before starting
Input devices are components responsible for capturing information from the physical environment (such as temperature, pressure, motion, or light) and converting it into electrical signals that can be interpreted by electronic systems like microcontrollers (ESP32, Arduino) or industrial controllers (PLC).In automation and prototyping environments, these devices especially sensors play a key role by enabling systems to monitor real world conditions and transform physical variables into usable data, allowing machines and projects to respond intelligently, optimize processes, and operate safely and efficiently.
Common Sensor Types
Temperature sensors such as DHT22, LM35, or PT100 are used to measure thermal conditions in applications like climate control, fabrication processes, or material testing. Humidity sensors, including capacitive and digital types, are widely used in environmental monitoring and storage control. Pressure sensors, often implemented as transducers, are essential in pneumatic and hydraulic systems, while current and voltage sensors are used for energy monitoring and electrical protection.Capacitive sensors are commonly used for level detection or proximity sensing without direct contact. Simple input devices like buttons allow manual interaction with systems. Proximity sensors, including ultrasonic and infrared types, are widely used in robotics and automation to measure distance. Other important sensors include flow sensors for liquid measurement, light sensors for automated lighting systems, gas sensors for safety applications, and accelerometers for motion detection in dynamic systems. In general, analog signals represent continuous values, while digital signals represent binary states, and both are fundamental in data acquisition systems.
Common Communication Types
Analog Communication Analog communication is based on continuous signals such as voltage (0–5V, 0–10V) or current (4–20 mA), where the signal level directly represents the measured variable. It is widely used in industrial environments due to its robustness and resistance to electrical noise, especially over long distances.
Digital Communication Digital communication uses discrete signals (0 and 1) to transmit information, allowing for higher precision and reduced susceptibility to interpretation errors. It is the foundation of most modern electronic and embedded systems.
I²C (Inter-Integrated Circuit) I²C uses only two communication lines: data (SDA) and clock (SCL), enabling multiple devices to share the same bus using unique addresses. It is efficient in pin usage and commonly used with sensors, displays, and peripheral modules.
SPI (Serial Peripheral Interface) SPI is a high-speed communication protocol that uses four main lines (MOSI, MISO, SCK, and CS). It provides faster and more reliable data transfer compared to I²C, making it ideal for high-performance sensors, memory devices, and displays.
UART (Serial Communication) UART is a simple point to point communication method that uses two lines (TX and RX) for transmitting and receiving data. It is widely used for communication with computers, Bluetooth modules, GPS devices, and other peripherals.
Modbus (Industrial Protocol) Modbus is a widely used industrial communication protocol, often implemented over RS-485, that allows multiple devices to communicate over long distances. It is known for its reliability and is commonly used in PLC systems and SCADA networks.
CAN Bus CAN Bus is a robust communication protocol designed for distributed systems, especially in automotive and industrial applications. It allows multiple nodes to communicate efficiently with strong error detection capabilities, making it ideal for critical systems.
Finally, power consumption must be considered, especially in embedded or portable systems, where efficiency must be balanced with performance.
For further information about this topic and the machines at IBERO Puebla, please consult this week’s group page.