Blink

What you will learn

  • How to build a highfive machine
  • How to make an Arduino respond when something happens
  • If Blocks
  • Electrical components like servos and push buttons

Bill of Materials

kit

Blocks

Wiring Diagram

wiring diagram

Coding Video

Building Highfive Machine

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

step1

2. Connect a wire from (27, A) to the - of the breadboard.

step2

3. Connect one of the buttons to hole (27, E) and the other wire to (30, E).

step3a

step3b

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

step4

5. Connect a wire from (39, E) to the ground wire on the servo. On these servos, the ground wire is brown.

step4

6. Connect a wire from (40, E) to the power wire on the servo. On these servos, the power wire is red.

step4

7. Connect a wire from (42, E) to the data on the servo. On these servos, the data wire is orange.

step4

8. Connect a wire from (39, A) to the - of the breadboard.

step8

9. Connect a wire from (40, A) to the + of the breadboard.

step9

10. Connect a wire from (42, A) to pin 3 on the Arduino.

step10

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

step11

12. Connect a wire from + of the breadboard to a 5v pin on the Arduino.

step12

13. Trace and cut out your hand from a piece of posterboard.

step13a

step13b

14. Tape a popsicle stick the back of your posterboard hand.

step14

15. Tape the plastic wing to the popsicle stick.

step14

16. Tape the servo to the table.

step14

17. Connect the servos wings to the servo.

step14

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?