Sunday, October 9, 2016

Project 1 - LED Blink



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:
  1. ·         What is means to compile and upload a program.
  2. ·         The purpose of the setup() and loop() functions
  3. ·         How to configure a pin as in input or output with pinMode()
  4. ·         How to turn on and off current from the pin with digitalWrite()
  5. ·         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)}

 void loop()
{digitalWrite(13, HIGH)
delay(1000)
digitalWrite(13, LOW)

  delay(1000)}

1 comment: