blinking an led in wandboard
Post on 28-Apr-2015
2.679 Views
Preview:
DESCRIPTION
TRANSCRIPT
2012
Author: Praveen Kumar
Blinking an LED with Wandboard
# 9/3, 2nd floor, Sree Laksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085,
Email: info@tenettech.com, Phone: 080 - 26722726
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 and JP2->TTL
JP3 ->LVDS
JP4 ->SPI and GPIO
JP1 JP2 JP3 JP4
# 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 Pin Number GPIO
1 GPIO75 GPIO_0
2 GPIO91 GPIO_1
3 GPIO191 GPIO_2
4 GPIO24 GPIO_3
5 GPIO200 GPIO_4
6 GPIO90 GPIO_5
7 GPIO72 GPIO_6
8 GPIO101 GPIO_7
Step 3:
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
top related