Learn

Short Arduino lessons in the browser: light an LED, read a button, fade with PWM, read a knob, talk over serial. Each step is checked by running what you made.

  • Light an LED: Put an LED and its resistor on the bench, wire them to a pin, and make it blink.
  • A button lights the LED: Read a pushbutton with the board’s own pull-up, and light the LED while it is held.
  • Fade with PWM: Dim and brighten an LED with analogWrite, and watch the pin on the scope.
  • Read a knob: Read a potentiometer on A0 and print it on the serial monitor.
  • Talk over serial: Say hello on the serial monitor, then answer what is typed to the board.