SparkFun Inventor's Kit for Arduino - Example Sketches
SparkFun Inventor's Kit for Arduino (KIT-11227)
The example sketches in this repository are part of the SparkFun Inventor's Kit (a.k.a. "The SIK"). The SIK consists of an Arduino microcontroller 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 which has illustrations of the circuit layout and other useful information.
Getting Started
- If you haven't yet, download and install the Arduino IDE
- Obtain the latest SIK Guide Code by one of the following methods:
- Clone this repository using Git (New to Git? Click here.)
- Download this repository as a zip file and unzip.
- Place the
SIK-Guide-Code
folder in the Arduino IDEexamples
directory:
- PC: drag the
SIK-Guide-Code
folder intoC:\program files\Arduino-x\examples
- MAC: Right-click on the Arduino IDE app and click "Show Package Contents...". Drag the
SIK-Guide-Code
folder intoContents/Resources/Java
- Linux: see http://www.arduino.cc/playground/Learning/Linux
- Start the Arduino IDE; the examples should be visible in this menu:
File > Examples > SIK Guide Code
Sketch Topics
- Blinking an LED
- Potentiometer (knob)
- RGB (Red Green Blue) LED
- Multiple LEDs
- Push buttons
- Photoresistor (light sensor)
- Temperature sensor
- Servomotor
- Flex sensor
- Soft potentiometer
- Buzzer
- Motor
- Relay
- Shift register
New concepts
- Basic sketch structure, comments, digital outputs, LED and resistor, delay
- Potentiometer (knob), analog input, variables
- RGB LED, constant values, "for" loops, if/else, user functions, PWM (analogWrite)
- Multiple LEDs, arrays of data, calling user-written functions, random numbers
- Pushbuttons, digital input, complex logic
- Photoresistor, making voltage dividers for resistive sensors
- Temperature sensor, serial monitor, floating-point numbers, functions returning values
- Servomotor, code libraries
- Flex sensor, input to output, map and constrain
- Soft potentiometer, more complex value mapping, nesting math functions
- Buzzer, tone generation, searching arrays
- DC motor, transistor, flyback (protection) diode, serial numeric input
- Relays, switch contacts, normally-open (NO), normally-closed (NC)
- Shift register chip, SPI, bits and binary numbers
License Information
These sketches were written by SparkFun Electronics with lots of help from the Arduino community.
All contents of this repository are released under Creative Commons Share-alike 3.0.