Digital input & output

Explain HIGH and LOW and how inputs and outputs differ.

← Back to syllabus
Illustrative engineering concept
AI-generated concept photo; not a wiring diagram.
Safety first

These activities are simulations. Physical experiments require a suitable low-voltage supply, checked wiring and adult supervision for children. Never connect to mains.

Controller

A microcontroller executes a program and interacts with hardware through its pins.

Digital output

A pin can drive a HIGH or LOW logic level within its voltage and current limits.

Digital input

An input reads a logic level. Pull-up or pull-down resistors can prevent a floating input.

Load control

A microcontroller pin cannot safely power arbitrary motors. Use a suitable rated driver and power supply.

Try it yourself

LOW — indicator off

Knowledge check

Can a microcontroller output pin directly power a large motor?

Independent challenge

Write pseudocode for an LED that turns on for one second and off for one second.

Next step →