Hackable port Tutorials - 02 Let's Hack your UnlimitedHand through ICSP

Blinking LED
In this tutorial we will blink an LED with the UnlimitedHand.

CAUTION: Hacking through ICSP port may damage your device. Use it at your own risk.

STEP 1. What you will need

1x UnlimitedHand
1x USB micro B-A cable (included in the UnlimitedHand Package)
1x Breadboard
1x LED
1x Resistor(values ranging from 300 Ω to 2KΩ will do for a 5V power supply)
2x Jumper Wires

STEP 2. Hardware Hookup

Connect D11 and GND on the device out to a breadboard with jumper wires.

Check out the Fritzing diagram below. 
Connect a LED and a resistor to the breadboard accordingly.


STEP 3. Writing of program

Open a new Arduino sketch, paste in the sample sketch below and save your sketch.

sample sketch<UnlimitedHandBlink>
  Turns on an LED on for one second, then off for one second, repeatedly.

// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 11 as an output.
  pinMode(11, OUTPUT);

// the loop function runs over and over again forever
void loop() {
  digitalWrite(11, HIGH);   
// turn the LED on (HIGH is the voltage level)
// wait for a second
  digitalWrite(11, LOW);   
// turn the LED off by making the voltage LOW
// wait for a second

Save the sketch.

Connect UnlimitedHand to your PC with the USB microB-A cable provided.
Press once on the power button to switch on the device.

Set the serial port on Arduino IDE.
"Tools" -> "Port" (/dev/cu/-* on Mac, COM* on Windows)

Push upload button on Arduino IDE to upload the sketch to the device.

Make sure that the sketch is uploaded successfully, and the LED in your circuit will begin blinking.

F previous : Hackable Port Tutorials - 01  Getting started with the hackable ICSP port | Go to Top page : http://Dev.UnlimitedHand.com