0% found this document useful (0 votes)
18 views18 pages

Technolog I e

Uploaded by

Sandra Oms
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views18 pages

Technolog I e

Uploaded by

Sandra Oms
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Use wires to connect the Arduino’s 5V and GND pins to

the breadboard’s power (+) and ground (-) buses. Color-


code the wires: red for positive, black for negative.
Add two more wires to connect
the buses on opposite sides of the
breadboard. This is good practice
whenever you use a breadboard.
Important: don’t do this!
Make sure you color-code your wires and click to
route the wires so you can easily tell them apart.
Add an LED to your circuit.
Rotate it so its two legs fit into
two different breadboard rows.
Optional: Click the LED, then
use the dropdown menu to
change its color.
Add a resistor between the short leg of
the LED and the ground bus. Make sure
the resistor and the short leg of the LED
are in the same breadboard row.
Click on the resistor. Use
the pop-up window to
change its value to 220Ω.

Ω is the capital Greek


letter Omega. It stands
for ohms, the unit used
to measure resistance.
Add a wire from Arduino pin
13 to the long leg of the LED.
Click the “Code” button.
Click the drop-down
menu and select “Text.”
Click “Continue.”
Code in the setup function only runs once.
It uses the pinMode command to tell the
Arduino to use pin 13 as an output.

Code in the loop() function runs over and


over again forever. It uses the digitalWrite
command to turn the LED on or off (high or
low), and the delay command to make the
code wait for a certain amount of time. This
code tells the Arduino to turn the LED on,
wait one second (1000 milliseconds), turn the
LED off, wait one second, and repeat.
Click the “Start Simulation” button and
your LED should blink on and off.
If your LED does not blink, carefully
double-check your breadboard
wiring. For example, can you tell
what is wrong with this circuit? (go
to next slide for answer)
The resistor is not in the same row
as the short leg of the LED. They
are not connected. This is an open
circuit, so the LED will not light up.
How about this circuit? Can
you tell what is wrong here?
(Go to next slide for answer.)
Both legs of the LED are in the
same breadboard row. These
holes are connected to each
other, so this creates a short
circuit. The LED will not light up.
If your LED looks very dim, make
sure you have your resistor set
to 220Ω and not 220kΩ.

You might also like