arduino:crash_course
This is an old revision of the document!
Table of Contents
Crash Course in Arduino Programming
Contents
-
- Main loop
- Blinking an LED (“Hello world”)
-
- Polling
- Switch controlled LED
-
- State
- Debouncing (H/W or S/W only)
- Toggling state (on/off light)
- Multiple state (multiple lights on/off)
-
- ADC
- Reading ADC from e.g. photosensor
- Night light
- Light meter
-
- ?
-
- PWM
- Variable-brightness LED
Covered if time permits
- Communication buses
- Serial
- SPI
- I2C
Not covered
- Interrupts
- External
- Timers
- Multiple external
- Watchdog timers
- Libraries
- 7-segment displays
- LCD displays
- Switch matrices
Things that need to be incorporated
- user functions
variables→ introduced in Program structure- flow control
- selection
if-else→ introduced in Basic Interaction- switch?
- repetition
- while
- for
Many of the examples here borrow from or are based on the examples at http://arduino.cc/en/Tutorial/HomePage.
arduino/crash_course.1347584596.txt.gz · Last modified: 2012/09/14 01:03 by mithat