Recent Changes - Search:

Reference Links

Topics

Programming

Prior Class Pages

PM Wiki

edit SideBar

Class3Outline

Programming the Arduino

Now that we have a basic button and LED circuit set up on our breadboards, the next step is to start programming some interaction. We will start with the same code and use our Arduinos to log data from our custom made-switches.

Code From Last Class

The next move is to learn about timing with the Millis() function. Its a little trickier so we will go over it several times.

Code On Google Drive

_03_01_digital_input_sketch.ino - uses a "FOR" loop to blink an LED a bunch of times
BlinkWithoutDelay - same one as in the Arduino Examples
_03_02_BlinkWithoutDelay_Printlns - prints out values of variables to (hopefully) make BlinkWithoutDelay more intuitive

Use of Millis() is also covered in the Arduino Examples you downloaded as part of the software. In Arduino, go to "File--> Examples-->02.Digital" and start with "BlinkWithoutDelay". Then do the "Button" and "Debounce" examples.

 

The Rube Goldberg Machine
"Accomplishing by complex means what seemingly could be done simply" Merriam-Webster Online Dictionary

OK Go Video - This Too Shall Pass http://www.youtube.com/watch?v=qybUFnY7Y8w

Syringe Egg Yolk Remover http://www.flickr.com/photos/fxy/3260972797/

Edit - History - Print - Recent Changes - Search
Page last modified on February 18, 2014, at 08:14 AM