Canada Learning Code - Introduction to Circuitry With Arduino - Lesson 2
Canada Learning Code - Introduction to Circuitry With Arduino - Lesson 2
Breadboard
Resistor
Wires
Ground
(-ve)
Digital Pin 8
(+ve)
CIRCUITS + ARDUINO
Ground
(-ve)
Digital Pin 8
(+ve)
CIRCUITS + ARDUINO
Breadboard
CIRCUITS + ARDUINO
CIRCUITS + ARDUINO
LED
CIRCUITS + ARDUINO
CIRCUITS + ARDUINO
Resistor
CIRCUITS + ARDUINO
CIRCUITS + ARDUINO
Wires
BLINK CIRCUIT
BLINK CIRCUIT
TRAFFIC LIGHTS
2.
PROJECT
1. Place the red LED such that the longer leg (+ve) is on your right.
2. Connect a resistor to the right leg of the LED.
3. Connect the right side of the resistor to digital pin 11.
4. Connect the left side of the LED to the ground rail.
PROJECT
1. Place the yellow LED such that the longer leg (+ve) is on your right.
2. Connect a resistor to the right leg of the LED.
3. Connect the right side of the resistor to digital pin 10.
4. Connect the left side of the LED to the ground rail.
PROJECT
1. Place the green LED such that the longer leg (+ve) is on your right.
2. Connect a resistor to the right leg of the LED.
3. Connect the right side of the resistor to digital pin 9.
4. Connect the left side of the LED to the ground rail.
PROJECT
1. Connect the ground rail to the GND pin on the Arduino Uno.
2. Connect the Arduino Uno to the computer using the USB cable.
PROJECT
http://bit.ly/clc-arduino-2
Code bank:
pinMode(green, OUTPUT);
// sets the green LED pin as OUTPUT
digitalWrite(green, HIGH);
// turns the green LED on
digitalWrite(green, LOW);
// turns the green LED off
delay(1000);
// creates a pause of 1 second (1000 milliseconds)