Arduino Part 2

LED Photocell

For the first assignment, using the photocell, Hanna and I had a bit more trouble than with the previous assignments. It was when we actually when through our coding and talked it through line by line that I felt that I understood what we were typing and thus we were able to figure out how to make the Arduino work.

IMG_4183.MOV-1i1ns3s

Above is the link to a movie of the photocell effecting the LED blink patterns and a picture of the breadboard. Below is the code and commentary we used for the assignment.

Tactile Switch

For this assignment, Hanna and I were able to code and assemble the Arduino and breadboard pretty fast and easily. It was very satisfying to think we could do one of the assignments with ease!

IMG_4185.MOV-1-2jsk2n0

Above is a link to the movie of the switch turning the LED on and off and a photo of the breadboard. Below is the coding and commentary we used for the assignment.

Servo Sweep

This assignment was a bit tough for Hanna and I as we tried to figure out the correct value for the delay and how to correlate it to the value given by the potentiometer. We ended up using the value given through the A0 pin divided by 100 so that the lower readings given by the potentiometer would be visible. Our other concern was that the servo wasn’t waiting until it rotated 180 degrees to rotate in the opposite direction.

IMG_4193.MOV-1-1of866v

Above is a link to the video of the servo reacting to the potentiometer reading and turning at a rate based on its positioning in addition to the breadboard. Below is the coding and commentary we used for the assignment.

Servo Knob 1 + 2

The coding for knob 1 rotates the servo between 0 and 180 corresponding to the reading given by the potentiometer while knob 2 rotates the servo between 60 and 120 based on the same potentiometer readings. Hanna and I didn’t have too much trouble with the breadboarding or coding in this assignment!

IMG_4195.MOV-1-1hy512y

Above is a link to the video of the servo rotating between 0 and 180 degrees and a picture of the breadboard.

IMG_4196.MOV-1-2jayd4a

Above is a video of the servo rotating between 60 and 120 degrees. Below is the coding for both knob 1 and knob 2.

 

 

Conclusion

Overall, I think I became much more aware of the coding I was using to make the assignment work. I really enjoyed figuring out what I was putting into the Arduino program and how it was corresponding with the breadboard for the desired outcome. I think breadboarding was a little more straight forward and less complicated while the coding was a whole new language for me which is why I enjoyed it so much more.

Print Friendly, PDF & Email

Leave a Reply