Explore the Comments in the Code

  1. Find comments in the code by looking for text in gray.
  2. Read the text in the comments.

STEM Connections

Comments are for the benefit of computer programmers (the humans) and do not affect the code. Comments are helpful for making notes in complex codes. Comments not only help you as a programmer who is writing those codes, but they also help others who may use your code in the future. Comments change to gray when written with the correct syntax.

Explore the Materials

  1. Identify all the materials
  2. Refer to the video and identify each of the components in the completed circuit as one of the following:
    • 1 LED (Light Emitting Diode)
    • 1 100-400 ohm resistor
    • 1 Red wire
    • 1 Black wire
    • 1 Breadboard
    • 1 Arduino Uno board
    • 1 USB cable

Try New Things

  1. Warning: If the LED is plugged into the red row (5V) and black row (GND) the LED will break.

  2. Switch the direction of the LED, keeping it connected to the blue and black rows.

  3. Switch the direction of the resistor, keeping it connected to the red and blue rows.

STEM Connections

Switching the direction of the LED does change the outcome because it has polarity. Electric current can only flow through the LED in one direction.

Add the LED

  1. Warning: If the LED is plugged into the red row (5V) and black row (GND) the LED will break.

  2. Insert the positive (long) leg of the LED into any hole of the blue row.

  3. Insert the negative (short) leg of the LED into any hole of the black row.

Pages

Subscribe to Thinkabit Lab RSS