To start the lab, Cal and I set up our arduino, breadboard, and equipped the breadboard with an LED and a resistor. We then copied the code from the exercise worksheet and ran it. Our LED then started blinking, thus this task was successful. Next, Cal and I hooked multiple LED's into our breadboard and copied the code corresponding to the exercise we were working on and ran it. It also ran successfully.
After that, we began working on the electric motor exercise. The electric motor we used is a much larger object than anything we had worked with before, thus a transistor was required. Our transistor gave enough voltage and current to power our motor without burning the motor up. If the wrong transistor is used, the motor could have too much current and thus burn up or cease to function. Cal and I organized our circuit as shown below. We then ran the test code and our motor would run for the designated time, then turn off.
Next, Cal and I began working on setting up multiple push buttons to power on/off a LED. This was pretty interesting since we had only used one push button in the past.
In the last section of the lab, Cal and I configured our breadboard with an RGB LED and multiple resistors. The RGB LED has the ability to change the intensity of its red blue and green components. This gives this type of LED the ability to shine different colors at the same time. Cal and I copied the sample code and loaded it onto our Arduino. The results are shown below.