Arduino Reflection

This week, I worked on my arduino packet with Zoie Sloneker. I learned how to code the “hello world” code. Also, I learned what the 2 built-in functions of the code were. Next, I learned that adding ln to serial.print makes the code work faster and creates a new line of code. I also learned that making the code stop or pause for a certain amount of time is made by using the function delay. I learned that global variables are located outside of any function and local variables are located inside of a function. Then, I learned how to count from 1-10 and have a message appear that red “blast off”. And then reverse 10-1 and then “blast off” red on the screen. Also, I learned how to write a code so that numbers could count up by 3 starting at 21 and ending at 39. Then, I learned how to write a message stating that “a is greater than b”. Also, I learned how to code a blinking light to alternate with another blinking light, which I thought was very cool. Lastly, I was able to code a light to stay on for a specific amount of time on one light, and a specific amount of time on another light, then the same on the third light, and then repeat. All in all, I really enjoyed working with Zoie on the arduino and learned a lot about the arduino. The arduino was very fun and informational!

Screenshot 2018-09-07 at 3.11.29 PM
Code counting down from 10 down to 1 using a while loop, ending with a statement, stating “blast off”.
Screenshot 2018-09-07 at 3.10.39 PM
Code stating that, i = 1!
Screenshot 2018-09-05 at 10.28.36 AM
Code counting from 21 to 39 in intervals of 3.

 

Leave a comment