Lab Assignment 1: Intro to Physical Computing
Description
A blinking LED circuit was created in this lab. I started by creating a simple circuit that started from PIN 13 of the Arduino Uno to the 220 ohm resistor to the blue LED to ground on the Arduino Uno. This is my full circuit for the blinking LED.
On the Arduino side, I used an Arduino Uno. I used the example "Blink" code provided by Arduino and modified it. Instead of using a delay of 1000, as provided in the original code, I changed the delay to 100. This increased the blinking frequency, and thus the LED blinks very fast compared to the original delay.
After making this modification, I uploaded the code to the Arduino Uno, and the LED blinks! This completes the blinking LED circuit lab. It's very interesting to see how with this code, one can make multiple LEDs to blink on a board at different rates.
Components Used
Code
- Login to post comments