First Steps

Hardware

Setting up IDE + Board

  • Launch Arduino IDE V2.3.4
  • Install board driver
  • Connect board to computer via USB + Install boot loader so the board accepts program upload from the computer
  • Select board in the IDE
  • Compile & upload an empty program to ensure all is ok

Digital Output + Setup Function

Write a program that turns ON the builtin LED Use setup() function alone

LED ON/OFF

Write a program that turns ON the builtin LED, then turn it OFF. Use setup() function alone

  • What issue do you observe?
  • How to address the issue?

LED ON/OFF with Delay

Write a program that turns ON the LED, wait for 1 second then turn it OFF Use setup() function alone.

Repeated Blinking

Write a program that blinks the builtin LED repeatedly and forever.

Integer Variable + if

Write a program that makes the builtin LED blinks faster, i.e. minimize delay.

  • Start with a delay of 1000,
  • Decrement by steps of 50,
  • Upon reaching 0ms restart with the maximum delay