Overview

Pins as inputs: Switches and push-buttons


Students completing the module will be able to:

    • Recognize basic Arduino Uno functions and programming structures
    • Understand the define of pins as input
    • Design and implement simple circuits with switches and push-buttons

Students should

    • have knowledge of wiring electronic components in breadboard (link1)
    • have basic programming knowledge in C language (link2)
    • be familiar with the Tinkercad environment (link3)


Τhe duration of this module is 3 hours


Tip 1. When the switches are open the Arduino Uno reads “0”, while when they are closed the Arduino Uno reads “1” - pay attention to the wiring/topology

Tip 2. The voltmeter is always connected in parallel with the circuit

Tip 3. The RGB LED in Tinkercad is a common cathode

Tip 4. For the button: if it is not pressed, terminal_1a is short-circuited with terminal_1b and terminal_2a with terminal_2b. When it is pressed, all 4 ends are short-circuited


Last modified: Saturday, 20 November 2021, 12:55 PM