Arduino sketches that I have created while playing around with it.
Branch: master
Clone or download
Latest commit 77ef99a Sep 24, 2013
Type Name Latest commit message Commit time
Failed to load latest commit information.
BluetoothTest Added Makefile to Bluetooth test sketch Dec 15, 2012
DimingLED Initial check-in Aug 3, 2010
JsonParsing Added Makefile Aug 20, 2012
PushButtonControl2 Initial check-in Aug 3, 2010
SerialPrint Add Serial examples Sep 24, 2013
SevenSegment Updated the circuit and changed it to common cathode Dec 5, 2010
USBMouse Added USBMouse sketch which allows you to communicate with a USB Mouse Mar 13, 2011
YQL Added comments for function definitions Aug 20, 2012
ircommander @ c0a23a7
rawirdecode @ 9914e34
two_arduino_serial Removed unneeded variables Mar 24, 2013
.gitignore Added build directories to .gitignore Dec 15, 2012
.gitmodules Added submodules Jul 29, 2011

Arduino Sketches

Collection of Arduino sketches that I have created for my various talks, workshops, blog posts and also while generally playing around with Arduino and various shields.


This repo consists of the following sketches. I have tried to organize them into different groups.

Basic Stuff

  • Blink2 - Make a LED Blink
  • DimingLed - Makes a LED to fade in and fade out. This sketch shows how you can use analogWrite function
  • PushButtonControl - Basic push button
  • PushButtonControl2 - Push button with sticky state


  • SerialPrint - Show how to use SerialPrint
  • SerialWrite - Show how to use SerialWrite

Components/Sensors Specific

  • SevenSegment - Shows how to use a seven segment display
  • USBMouse - Sketches which shows how to interact with a USB Mouse

Shield Specific

  • BluetoothTest - Sketch to test Bluetooth Shield

Connecting to Internet


Explanation/documentation for some of these sketches can be found in my HardwareFun blog.

Some of the sketches are also used in the "Building Robots using Arduino" tutorial series.

Other Arduino related projects

Also checkout some of my other projects related to Arduino. These include Arduino libraries, Arduino editor tools and also a makefile for Arduino.


The source code of this project are released under "THE BEER-WARE" license.

I would, however, consider it a great courtesy if you could email me and tell me about your project and how this code was used, just for my own continued personal gratification :)

You can also find other ways to make me happy, if you liked this project ;)


Contributions in all forms (including documentation) are welcomed. If you would like to contribute to this project, then just fork it in github and send a pull request.