Arduino Intro Part 1

Partner: Keer

I have previous programming experience on Python and VPython in physics class, and we are currently using breadboards, LEDs, and resistors in 108 lab, so this wasn’t completely foreign to me. That being said, the slight differences in syntax were what I found most frustrating, especially the semi-colons and the brackets. I kept losing track of my brackets in the last exercise, and also repeating and updating things like lastTime that only needed to be updated once per loop.

I think it’s really cool how the Arduino can remember the last program you input into it, and I hope to learn more with these cool devices!

Modify the Blink sketch :

 

Make an interesting pattern with 3 LEDs using delay() :

Use a potentiometer to change the LED blink rate:

 

 

Make an interesting pattern with 3 LEDs that does not use delay():
(Code is in two screencaps due to length)

IMG_0804-1v87lxj

Print Friendly, PDF & Email
One Comment

Leave a Reply