Ready to take your Arduino module for spin? Before jumping into the sketches below, get up to speed on the basics by checking out our Setup Tutorial.
The first 8 sketches can be made with the modules in the Arduino Starter Bundle.
Make your LED blink! This is the classic “getting started” sketch for Arduino beginners. Alter the code to speed up or slow down the pace of the pulse.
2. Hold an On/Off state
Detect when a button changes from off to on and on to off.
3. “Blink” Speed Control
Use an analog input to control how fast your output “blinks”.
4. LED Fading Effect
Learn how to create a “breathing effect” on your LED.
5. Servo Sequence Recorder
This project, designed by littleBits Evangelist, Glenn Mossy, will repeat a sequence that you create and then play it back on your servo module! It will loop until you press the record mode button again.
6. DIY Etch A Sketch
Use two dimmers to draw on your computer screen, just like an Etch-a-Sketch.
7. Analog Pong
Play pong on your computer screen using two analog sensor modules as inputs.
8. DIY Computer Mouse
Control your mouse (computer, not pet) with your littleBits Arduino module!!!
If you have a speaker module, you can make the following sketches:
9. Play A Melody
Upload this sketch to your Arduino module to play the Jeopardy theme song.
10. Change The Pitch
Use an analog input to generate a pitch on your speaker.
To learn more about coding, find examples on Arduino’s website.