100% found this document useful (2 votes)
4K views10 pages

Blinking An LED in Wandboard

This document provides instructions for blinking an LED with the Wandboard single board computer. It explains that the Wandboard has an expansion header that can be used to control GPIO pins, which can then be used to blink an LED. It provides 7 steps for accessing a GPIO pin on the Wandboard to change its direction and value, causing an LED connected to the pin to blink on and off.

Uploaded by

Praveen Kumar R
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
4K views10 pages

Blinking An LED in Wandboard

This document provides instructions for blinking an LED with the Wandboard single board computer. It explains that the Wandboard has an expansion header that can be used to control GPIO pins, which can then be used to blink an LED. It provides 7 steps for accessing a GPIO pin on the Wandboard to change its direction and value, causing an LED connected to the pin to blink on and off.

Uploaded by

Praveen Kumar R
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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: [email protected], 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: [email protected], Phone: 080 - 26722726

PINOUT:

JP4

# 9/3, 2nd floor, Sree Laksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085, Email: [email protected], 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: [email protected], 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: [email protected], 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: [email protected], 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: [email protected], 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: [email protected], 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: [email protected], Phone: 080 - 26722726

You might also like