Sie sind auf Seite 1von 8

AwesomeInterface

RaspberryPiGPIOInterface
Board

Features
8x024Vinputs.
8x024Voutputsthatcansupplyupto1.2Atotal.
8xPiGPIOLEDstatusindicators.
8xInputswitchestoconfiguretheinputsandoutputs.

Overview
TheraspberrypiGPIOinterfaceboardisdesignedtoisolate8
digitalinputsandoutputsfromthePi.Theboardcanactas
generalpurposeisolationbufferswithupto1.2Atotaloutput
currentandupto24Vinputsandoutputs.
Inputs
EachInpututilizesanopencollectorcomparatorfollowedby
anoptocouplerwithapullupresistoronthecollectorofthe
outputtransistor.Theoptocouplercanbebypassedforfaster
switchingtimes,andthepullupvoltagecanbeselected

Figure1:InputCircuit

8x024Vinputs(3V24Vislogichigh).
Inputsupplyvoltage:Theboardcanbeconfiguredtousethe
Pissupplywithanonboardjumperoranexternal715V
supply.
5Vsupply(fromPi)willdraw98mAwhenallinputsare
off(7mAperONinput).
Input Clomp Currcnt =
(Input :oltogc) -S.S
12uu
,
Thisisthecurrentsinkingfromtheinput.

Outputs
TheoutputsaresimpleL272MICswithanoutputvoltage
dependantonthesupplyvoltageyouapplytothePCB.

Figure2:OutputCircuit

OutputFeatures
424Vsupplywilldraw50mA+outputcurrent.
Outputvoltage=Supplyvoltage0.55V.Maxoutput
voltagesetbysupplyupto23V
Outputcurrentmax=1.2Atotal,and1Aperoutput
(sourceorsink).
Table1:26PinHeaderPinassignment(CorrespondstoRaspberryPi)
Pin Function RPiName
1 3.3VPullup
supply
3.3V
2 5VinputIC
supply
5V
6 GND 0V
7 I/O1 GPIO4
11 I/O2 GPIO17
13 I/O3 GPIO27
15 I/O4 GPIO22
12 I/O5 GPIO18
16 I/O6 GPIO23
18 I/O7 GPIO24
22 I/O8 GPIO25

AwesomeInterface


AwesomeInterface

ConfigurationOptions

PowerOptions:

Figure3:Inputsupplyselectionjumper(configuredforexternalsupply)
Jumperconfiguration: Pins1&2=5Vfromraspberrypi
Pins2&3=5Vfromregulator(requires>7Vontheinputvoltageterminal).

Pullupsupplyvoltage
Iftheinterfaceisusedwithoutaraspberrypiapullupvoltagefortheinputsshouldbeappliedtopin1ofthe26
pinheader.
5Vcanberoutedfromtheregulatortothispinbybridgingall3pinsofthepiSupplyheader,andaddingajumper
betweenpin1and2ofP1orP2.
NOTE:pins1and2ofP1andP2mustnotbeshortedwhenaraspberrypiisconnectedoryouwilldamagethe3.3V
supply.

Figure4:Jumperlocations
The26PinheadersareinparalleltoallowaccesstotheotherGPIOpins
whilethebufferisinuse.

AwesomeInterface

SwitchingSpeed:
Forhighspeedinputstheoptocouplerscanbeomittedbybridgingpins27and36oftheoptocoupleICsocketsas
shownwithredlinesinfigure4.Theoptocouplerscanbeselectivelyremoved,soyoucanhaveonly2ormore
optoisolatedinputswhiletherestarehigherspeedisolatedonlybythelm339.Noteeachoptocouplersupports2
inputs.
IfnooptocouplerswillbeusedresistornetworkRN2canbeomittedaswell.

Figure5:PCBwithoptocouplebridgesIndicatedinRed

AwesomeInterface

Table2:InputResponseTimes
WITHOPTOCOUPLERS
Parameter Value Unit
R
L
1k2 ohms
R
f
620 ohms
T
on(1.8V)
4 s
T
on(3.3V)
12 s
T
off(0.8V)
7 s
T
off(0.3V)
10 s
3.3Vsupplydrain 4.85 mA/LOWinput
WITHOUTOPTOCOUPLERS
Parameter Value Unit
R
L
1k2 ohms
T
on(1.8V)
1.2 s
T
on(3.3V)
1.4 s
T
off(0V)
0.2 s
T
off(0.3V)
0.1 s
3.3Vsupplydrain 2.65 mA/LOWinput
ForoutputresponsetimesrefertotheL272MdatasheetfromST.

Input/Outputindicators
TheLEDbargraphindicatesthestatusofthebitattheraspberrypipin.Theleftmostbitislitforinputsupply
voltagepresent,secondfromtheleftisforoutputsupplyvoltagepresence.
Theindicatorscanbeentirelyomittedalongwiththe74LS540NandRN3withnomodificationsnecessary.

Switches
Theswitchesallowyoutodisconnecttheinputfromtheraspberrypipin.Theyshouldbeopenedwhenthe
correspondingoutputisinuse,toavoidconflictsbetweenanoutputpinonthePiandaninputvoltage.

AwesomeInterface

Figure6:CompletePCB
Input Switches
26 Pin header matching
Raspberry Pi
Input supply voltage selection
Input Supply
Optocouplers
LED driver IC (The LED bar indicates the state of
the corresponding pin on the 26P header & the
presence external output or input supply voltages).
Outputs
Inputs Output Supply
AwesomeInterface

Figure7:Schematic


AwesomeInterface

Figure8:PCB

ThePCBcanbeflippedoverandmountedunderneaththeraspberryPi.IfthisistheintendedusethePCB
terminalscanbemountedontheundersideoftheboard.Twomountingholesareincludedwiththesame
spacingasthePi(whenthePCBisupsidedown)

Das könnte Ihnen auch gefallen