Available · 50 piece · 1-3 days
Available · 1 piece · 1-3 days
Available · 5 piece · 1-3 days
Available · 3 piece · 1-3 days
Available · 23 piece · 1-3 days
Available · 11 piece · 1-3 days
Available · 35 piece · 1-3 days
Available · 100+ piece · 1-3 days
Available · 88 piece · 1-3 days
Available · 30 piece · 1-3 days
Available · 100+ piece · 1-3 days
Available · 1 piece · 1-3 days
Available · 1 piece · 1-3 days
Available · 14 piece · 1-3 days
Available · 15 piece · 1-3 days
Input: for your microcontroller
Input modules are essential components in electronics development and when working with microcontrollers. They make it possible to convert physical interactions—such as button presses, rotary movements, or touches—into electrical signals that can be processed by the microcontroller.
Typical input devices include push buttons, potentiometers, joysticks, switches, or touch modules. These can be used, for example, to control robots, implement menu navigation, or regulate analog values. They form the interface between the user and the system and are therefore central to interactive microcontroller projects.
By integrating these modules, a rigid system becomes a reactive one—for example, for controlling LEDs, motors, or displays.
How to use input modules with microcontrollers
Most input modules can be connected directly to a microcontroller such as an Arduino, Raspberry Pi Pico, or ESP32 via digital or analog pins.
Push buttons provide digital signals (on/off), while potentiometers or joysticks output analog voltage values. Control is handled via libraries or custom routines in programming languages such as C/C++ or MicroPython.
Example: A push button is connected to a digital GPIO pin and equipped with a pull-down resistor. The software checks the pin state and triggers corresponding actions—such as turning on an LED or starting a motor.
For I2C-based modules, a connection via just two data lines is usually sufficient, which is particularly common with more complex modules such as touch panels or sliders.
Comparison of common input modules
| Image | Module | Input type | Input values | Connection |
|---|---|---|---|---|
| Push button | Digital | On / Off | Digital GPIO | |
| Potentiometer | Analog | Dependent on total resistance (voltage value) | Analog pin or I2C | |
| Joystick | Analog + Digital | X/Y axes + button | 2× Analog, 1× Digital | |
| Slide switch | Digital | Position 1 / Position 2 | Digital GPIO | |
| Touch button | Digital / I2C | Touch detected / not detected | Digital GPIO or I2C | |
| Infrared remote control | Digital | Button codes | IR receiver on GPIO |
What should you consider when buying and using them?
When selecting input modules for microcontroller projects, the most important factor is compatibility: not every module works directly with every microcontroller. Pay attention to voltage levels (3.3V or 5V), interfaces (digital, analog, I2C, UART), and available libraries.
Another important aspect is ease of mounting: some modules come with pre-assembled connectors, while others require soldering. During installation, ensure clean signal routing and debouncing (for buttons).
For beginners, it is recommended to use plug-and-play capable breakout boards or Grove/Qwiic-compatible modules to get started quickly and without errors.