Arduino Blink

I’m finally programming something.

Info:

This “Blinking” Is the work of the code we used in the Arduino app, and the circuit we set up using the actual Arduino. The code told us to make pin 13 a digital output pin, and that it would put 5v through it for x amount of seconds, then stop putting electricity (0v) into the circuit for y amount of seconds. The alternation makes it blink.

Physical side, I connected a wire from the 13 pin into the positive of the Breadboard, then I connected an LED from the positive into one of the rows. I then added a 330 Ohm resistor to control the amount of current the LED gets. I connected it from the row the LED was on, and onto the negative of the Breadboard, which connects back to a Ground pin on the Arduino.

Parts:

Arduino Uno

LED

330 Resistor

Power Source

2 Wires

Breadboard

Computer (for code)

Issues:

I just kept forgetting that the positive was not coming from the 5V pin like we should use, but instead, because of the code, the positive was coming from the 13 pin.

Video:

Image:

fritz1

Code for Blink:

Leave a Reply

Your email address will not be published. Required fields are marked *