Raspberry_Pi_GPIO_Extension_Board_SKU_DFR0312 - jimaobian/DFRobotWiki GitHub Wiki
Introduction
As we all know raspberry motherboard CPU than Arduino MCU used in the more sophisticated. It by BGA encapsulation, and also directly above the fold on the CPU DDR memory.If not careful in doing experiments short-circuit the GPIO, the motherboard can be fatal, CPU if burned raspberry motherboard will be very difficult to repair. In view of the current hot Raspberry Pi motherboard, DFRobot launched a new generation of latest Rasperry Pi GPIO Extension Board raspberries pie GPIO adapter plate, for many customers reflected in the prototype when burned motherboard, DFRobot protection design for all IO.
Specification
- Supply 3.3v and 5v voltage output
- Bidirectional Voltage-Level Translator GPIO protection board
- Converte voltage level between 3.3v and 5v for GPIOs,SPI,I2C and Serial port
- Compatible with most of Arduino sensors as well as protecting the Raspberry Pi GPIO pins from voltage spikes and static discharge
- Directly compatible Breadboard for prototyping
- Dimension: 5cm x 4cm x 2cm
Pin Mapping
How to drive a LED using GPIO Extension Board and breadboard
Connection Diagram
Example Code
Note:WiringPi includes a command-line utility gpio which can be used to program and setup the GPIO pins. You can use this to read and write the pins and even use it to control them from shell scripts. More information about wiringPi, please check http://wiringpi.com/download-and-install/ The code below will be used to drive and blink the LED every 1s via GPIO Extension board.
#this is linux shell script
#blink.sh using wiringPi library
PIN=6
gpio mode $PIN out
while true;
do
gpio write $PIN 1
sleep 1
gpio write $PIN 0
sleep 1
done
Effect Picture
Install WiringPi Library
> sudo apt-get update
> sudo apt-get install git-core
> sudo git clone git://git.drogon.net/wiringPi
> cd wiringPi
> ./build
for test
> gpio -v
> gpio readall
See Also
For more details about the Raspberry Pi Shield:Raspberry Pi Meet Arduino Shield SKU:DFR0311
Shopping [Raspberry Pi GPIO Extension Board]
category: Product Manual category: DFR Series category: Modules category: source