Arduino sketches that I have created while playing around with it.
Other Processing
Switch branches/tags
Nothing to show
Clone or download
Latest commit 77ef99a Sep 24, 2013

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.