Lab 2

Part 1

Necessary materials

  • LEDs
  • Breadboard
  • Arduino microcontroller
  • 100 ohms resistors
  • 5 ohm resistor
  • Push button
  • Jump wires

In this lab, we used Arduino for the first time. We were tasked with building a circuit with a switch and two LEDs. The goal was to have one LED light up and the other turn off when a button was push.

 

 


Part 2

Building the circuit was easy, but coding in Arduino was more difficult. I had no prior experience with coding in Arduino, so this was totally new to me. I did, however, have a background in C++, which really gave me the upper hand in learning Arduino. Below is a screenshot of the code.

Screen Shot 2018-02-06 at 8.18.39 PM.png

When the button is not pushed, One LED light up

WechatIMG4

when the button is pushed, another LED is light up

WechatIMG5

Here is the video


Part 3

Last part of lab, we were tasked to laser cut an enclosure. I created a box by using box generator online and imported to Illustrator. Then I changed the stork thickness to .001px and color to true red. Next I saved the file to PDF and laser cut the pieces.