Common Computer Science References
At the end of this lesson, you will be able to:
make a single LED light up from your Arduino
single LED on a breadboard
we can use the Arduino to power our breadboard and circuits and add code to it!
watch video, "Blink an LED With Arduino in Tinkercad"
go over comments in code
so other people can understand your code
we will always add a comment header to the start of our Arduino programs
/*
Created by: Mr. Coxall
Created on: Sept 2020
Turns an LED on for one second, then off for one second, repeatedly.
*/
# Created by: Mr. Coxall
# Created on: Sept 2020
#
# Turns an LED on for one second, then off for one second, repeatedly.
do not go overboard with comments though
nil
You are now going to go through the process of creating a circuit with a single LED (and resistor, so nothing breaks) using an Arduino as the power source
Draw the schematic diagram in Draw.io
use GitHub and VSCode Draw.io extension
use the arduino_uno.drawio file below for the Arduino UNO schematic
use "import" to get it into Draw.io
select "More shapes, electrical" to get the needed electronic shapes
connect your components to the "edge" of the correct circle connectors (see below)
Draw the breadboard diagram in TinkerCad Circuits (see below)
Build the real circuit on your breadboard
then code it!
remember, your LED will only work if the "long" leg is pointing to positive
if you finish early, write the above program on your CircuitPython board
LucidChart Schematic Connection example