Our very first project was make a circuit with an LED and
write a program to have it blink.
Hardware concepts we learned were:
- · How a breadboard allows us to temporarily create circuits without soldering
- · How electricity(5V) flows from the computer USB to the Arduino, and from the Arduino to the breadboard.
- · The importance of using grounds to complete circuits
- · How to send information from the Arduino output pin to the LED with a lead.
- · Why we need to use a resistor with an LED to limit the current
Programming concepts we learned were:
- · What is means to compile and upload a program.
- · The purpose of the setup() and loop() functions
- · How to configure a pin as in input or output with pinMode()
- · How to turn on and off current from the pin with digitalWrite()
- · How to slow down the program processing with delay ()
Our Program- This
program repeatedly turns on the LED connected to Pin 13, keeps it on for 1
second, then turns it off for one second
void setup()
{pinMode(13, OUTPUT)}
{digitalWrite(13, HIGH)
delay(1000)
digitalWrite(13, LOW)
delay(1000)}
WHAAAAA???? Very cool btw!
ReplyDelete