You are on page 1of 10

2012

Blinking an LED with Wandboard

Author: Praveen Kumar

Introduction The Wandboard is a ultra-low power complete computer with high performance multimedia capabilities based around the new upcoming Freescale i.MX6 Cortex-A9 processor and comes with a dazzling 1Ghz processor HDMI display interface and gigabit Ethernet. The dual core version of the Wandboard (The Wandboard DUAL) not only features 1GB of memory but also has onboard Wi-Fi and Bluetooth.

# 9/3, 2nd floor, Sree Laksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085, Email: info@tenettech.com, Phone: 080 - 26722726

The ultimate use of this application notes is to explain you that how to access a gpio in wandboard. We can use this GPIO for many applications for example start blinking an led, controlling motors, sensors, Lcd etc. There are four expansion headers in wandboard. Out of that we are going to use the expansion header JP4 for blinking an LED. JP1 JP2 JP3 JP4 JP1 and JP2->TTL JP3 ->LVDS JP4 ->SPI and GPIO

# 9/3, 2nd floor, Sree Laksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085, Email: info@tenettech.com, Phone: 080 - 26722726

PINOUT:

JP4

# 9/3, 2nd floor, Sree Laksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085, Email: info@tenettech.com, Phone: 080 - 26722726

Step 1: Go to the gpio directory cd /sys/class/gpio/

Step 2: Type ls view the available gpio pins

# 9/3, 2nd floor, Sree Laksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085, Email: info@tenettech.com, Phone: 080 - 26722726

Sl.No 1 2 3 4 5 6 7 8 Step 3:

Pin Number GPIO75 GPIO91 GPIO191 GPIO24 GPIO200 GPIO90 GPIO72 GPIO101

GPIO GPIO_0 GPIO_1 GPIO_2 GPIO_3 GPIO_4 GPIO_5 GPIO_6 GPIO_7

Enter in to any of the GPIO directory for accessing gpio pins.

# 9/3, 2nd floor, Sree Laksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085, Email: info@tenettech.com, Phone: 080 - 26722726

Step 4: Type ls to view the list of contents in the GPIO directory

Step 5: change the gpio to output direction using the following command echo out > direction

# 9/3, 2nd floor, Sree Laksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085, Email: info@tenettech.com, Phone: 080 - 26722726

Step 6: Change the pin value 0 to 1 Once you enter the command you will see the LED go on. echo 1 > value

# 9/3, 2nd floor, Sree Laksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085, Email: info@tenettech.com, Phone: 080 - 26722726

Step 7: You can switch it off again by typing the following command. echo 0 > value

# 9/3, 2nd floor, Sree Laksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085, Email: info@tenettech.com, Phone: 080 - 26722726

For more details kindly go through the following link: http://tenettech.com/category/265/wandboard Wandboard.tenettech.com http://blogspot.tenettech.com/ http://www.youtube.com/watch?v=5UmTDIUIRBs&feature=share&list=UUyRZXnQe h8xgmgDYxQfN8eA

# 9/3, 2nd floor, Sree Laksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085, Email: info@tenettech.com, Phone: 080 - 26722726

You might also like