Download as odp, pdf, or txt
Download as odp, pdf, or txt
You are on page 1of 8

GPIO from Raspberry PI

Interfacing Linux to the Real World

Micro Controllers

Arduino

eensy! I LaunchPad! "A#IC #tamp! #par$

"uilt for embedding in other systems CP%! RAM! and &lash Memory on board General Purpose IO Lo' Po'er Consumption

Problems 'ith MicroControllers

(ery lo' CP% Po'er

Mostly ) or *+ bit! ,- . *-- Mh/ Arduino has 1,$ flash! ,$ ram All I3O is performed through custom.de0eloped libraries

Memory is 0ery tight

2o operating system

2o standard I3O ports 4%#"! (ideo! 2et'or$! etc5

Raspberry Pi

About the si6e of a micro.controller Lo' Po'er Consumption 1,.bit ARM CP%! 7--mh6 %#"! 8thernet! 9:MI (ideo! Audio Output Linux Operating #ystem ;*,M RAM! Micro#: &lash up to +<Gb Camera Port General Purpose I3O

Raspberry Pi GPIO

A0ailable through a Linux =ernel Module Lo' Le0el protocols> I,C! #PI

GPIO 8xpanders?

* PWM 4Analog Output5 control pin 2o A:C 4Analog Input5 *7 :igital I3O pins 4,* on current model5

radeoffs 'ith Raspberry Pi

2ot Real ime 4R O#5 under Linux

ChibiO#3R @ Arduino has + Analog inputs and outputs Microcontrollers are very simplistic! almost 6ero setup

(ery little Analog #upport

Learning Linux

Accessing GPIO

A0ailable through se0eral languagesA


C! CBB Python Perl Ruby Ca0a

ReDuires root permissions

Reference

http>33'''AraspberrypiAorg http>33elinuxAorg3RPiELo'.le0elEperipherals https>33githubAcom3greylur$3massi0e.robot http>33'''AinstructablesAcom3tag3type.id3category. technology3channel.raspberry.pi3

You might also like