Beruflich Dokumente
Kultur Dokumente
Example sketches
These sketches are part of the SparkFun Inventor's Kit aka SIK
(http://learn.sparkfun.com/products/2). The SIK consists of an Arduino
microcontroller (http://www.arduino.com), and a variety of electronic components
designed to help you learn basic programming and circuits. Once you've mastered
these circuits, you'll be able to start building projects limited only by your
imagination!
These sketches are designed to be used along with the SIK Guide,
(http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Kits/SFE03-0012-SIK.Guide-300dpi-
01.pdf), which has illustrations of the circuit layout and other useful
information.
Installation:
Sketch topics:
New concepts:
1. Basic sketch structure, comments, digital outputs, LED and resistor, delay
2. Potentiometer (knob), analog input, variables
3. RGB LED, constant values, "for" loops, if/else, user functions, PWM
(analogWrite)
4. Multiple LEDs, arrays of data, calling user-written functions, random numbers
5. Pushbuttons, digital input, complex logic
6. Photoresistor, making voltage dividers for resistive sensors
7. Temperature sensor, serial monitor, floating-point numbers, functions returning
values
8. Servomotor, code libraries
9. Flex sensor, input to output, map and constrain
10. Soft potentiometer, more complex value mapping, nesting math functions
11. Buzzer, tone generation, searching arrays
12. DC motor, transistor, flyback (protection) diode, serial numeric input
13. Relays, switch contacts, normally-open (NO), normally-closed (NC)
14. Shift register chip, SPI, bits and binary numbers
15. LCD library
These sketches were written by SparkFun Electronics, with lots of help from the
Arduino community. This code is completely free for any use.
http://www.sparkfun.com