Blink

What you will learn

How to write and basic program to control leds and how to uplaod that code to the Arduino.

Bill of Materials

kit

Blocks

Coding Video

Wiring Diagram

wiring diagram

Steps First LED

1. Have the front of the Arduino face towards 1 of the breadboard.

step1

2. Connect a wire from - of the breadboard to a GND pin on the Arduino.

step2

3. Connect a wire from (28, A) to the - of the breadboard.

step3

4. Insert the led's short (-) wire into (28, E) and the led's long (+) wire into (29,E).

step4

5. Connect a resistor from (29, D) to (31, D).

step5

6. Connect a wire from (31, A) to pin 7 on the Arduino.

step6

7. Connect the Arduino into the computer.

step7

Steps Second LED

1. Connect a wire from (40, A) to the - of the breadboard.

step1

2. Insert the led's short (-) wire into (40, E) and the led's long (+) wire into (41,E).

step2

3. Connect a resistor from wiring (41, D) to (43, D).

step2

4. Connect a wire from (43, A) to pin 4 on the Arduino.

step2

Review

  • What is an led?
  • What is the first block that gets executed in the loop block?
  • What does the delay block do?
  • What is a breadboard?