MOTORES CON LA RASPBERRY Pi2

mayores y más barato. He aquí una visión general de lo que está en la pizarra: ...... conexión o “thing” cuando nos conectamos a dweet.io. En la figura 6.9 se ...
7MB Größe 122 Downloads 199 vistas
9 788426 722126

5$63%(55 ~/.xsession @޵\ SRQGUHPRVFRPDVHQWUHFDGDHOHPHQWR/DVOLVWDVVRQ³PXWDEOHV´ORTXHVLJQLILFDTXHSXHGHQFDPELDU VXVHOHPHQWRVHLQFOXVRUHDOL]DUXQDRSHUDFLyQDULWPpWLFDHQXQHOHPHQWRGHODOLVWDVLQFDPELDUORV RWURV(QODILJXUDVHREVHUYDODFUHDFLyQGHXQDOLVWDVLPSOH 

)LJXUD

47

Germán Tojeiro Calaza

(QODILJXUDVHPXHVWUDODPDQHUDWDQVHQFLOODGHDFFHGHUDXQHOHPHQWRFRQFUHWRGHOD OLVWDDQWHULRUPHQWHFUHDGDHLQFOXVRFyPRUHDOL]DUXQDRSHUDFLyQDULWPpWLFDEiVLFD

)LJXUD

&RPR YHPRV HO HOHPHQWR  KD FDPELDGR GH YDOHU  D YDOHU    ,QFOXVR SRGHPRV FRQFDWHQDUGRVOLVWDVPHGLDQWHODRSHUDFLyQVXPD/RVPpWRGRVGHODOLVWDVLUYHQSDUDWUDEDMDUFRQOLVWDV HQIRUPDVPiVFRPSOHMDV/RVPpWRGRVFRQVWLWX\HQXQDSHTXHxDELEOLRWHFDGHKHUUDPLHQWDVLQWHJUDGDV GH SURFHVDPLHQWR GH OLVWD /DV SRGHPRV XWLOL]DU SDUD FRQWDU ORV HOHPHQWRV GH OD OLVWD XQLU OLVWDV \ PRGLILFDUODVGHYDULDVPDQHUDV~WLOHV/RVPpWRGRVGHOLVWDWHSHUPLWLUiQDKRUUDUWHWLHPSRHQHOGLVHxR GHXQSURJUDPDRVFULSWHQ3\WKRQ3RUHMHPSORSDUDDxDGLUXQQXHYRHOHPHQWRDOILQDOGHXQDOLVWD XWLOL]DUHPRVHOPpWRGRGHQRPLQDGRDSSHQG FRPRVHPXHVWUDHQODILJXUD

)LJXUD

(OPpWRGRLQVHUW LQVHUWDXQHOHPHQWRHQXQDSRVLFLyQGHWHUPLQDGDGHOLVWDFRPRVHREVHUYD HQODILJXUD 

)LJXUD

48

Raspberry Pi2 para electrónicos

3DUDUHPRYHUXQHOHPHQWRGHXQDOLVWDEDVWDFRQXWLOL]DUHOPpWRGRUHPRYH 8QHMHPSORGH HOORVHSXHGHREVHUYDUHQODILJXUD

)LJXUD

([LVWHXQDOLVWDFRPSOHWDGHPpWRGRVTXHVHSXHGHFRQVXOWDUHQODGRFXPHQWDFLyQGH3\WKRQ DFFHGLHQGROLEUHPHQWHDVXSiJLQDZHE

([SORUDQGRODVWXSODV 8QD WXSOD JXDUGD LQIRUPDFLyQ ILMD 1R VH SXHGHQ DJUHJDU R TXLWDU HOHPHQWRV GH XQD WXSOD /RV FRQWHQLGRVVRQILMRVRLQPXWDEOHV1RREVWDQWHVHSXHGHDFFHGHUDWRGRVORVHOHPHQWRVGHODIRUPD KDELWXDO7DPELpQHVSRVLEOHFRPSUREDUVLXQHOHPHQWRVHHQFXHQWUDHQXQDWXSOD/DVWXSODVVRQPiV UiSLGDV\PiVHILFLHQWHVTXHODVOLVWDV(VFRQYHQLHQWHXVDUODVFXDQGRWHQHPRVXQDOLVWDGHHOHPHQWRV TXH QR FDPELDQ /DV WXSODV VH HQFLHUUDQ HQWUH SDUpQWHVLV ²   ² \ ORV HOHPHQWRV GH WXSOD HVWiQ VHSDUDGRVSRUFRPDV3DUDHYLWDUXQDSRVLEOHFRQIXVLyQFRQRWUDVFDUDFWHUtVWLFDVGH3\WKRQXQ~QLFR HOHPHQWRGHXQDWXSODVLHPSUHWLHQHXQDFRPDGHVSXpVGHHOOD(QODILJXUD[[[VHREVHUYDODFUHDFLyQ GHXQDWXSODVLPSOH3RURWUDSDUWHQRSRGHPRV XWLOL]DUHO PpWRGRDSSHQG TXHXViEDPRVFRQODV OLVWDV9pDVHODILJXUDGRQGHVHQRVLQGLFDHO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yPRVH DFFHGHDORVGLVWLQWRVHOHPHQWRVTXHFRQWLHQHHOGLFFLRQDULRXVDQGRVXFODYHROODYH(QSULPHUOXJDU 50

Raspberry Pi2 para electrónicos

YHPRVTXHFDPELDHOWLSRGHFRUFKHWH\TXHVLHQOXJDUGHODOODYHXVDPRVHOYDORUHOVKHOOQRVLQIRUPD GHXQHUURU

)LJXUD



)LJXUD

6LHVFULELPRVHOQRPEUHGHOGLFFLRQDULRVHJXLGRGHODIXQFLyQNH\V QRVPXHVWUDWRGDVODV FODYHVTXHFRQWLHQHHVHGLFFLRQDULR6LOHVLJXHODSDODEUDYDOXHV ORTXHSURGXFHFRPRUHVXOWDGRHV HOWRWDOGHWRGRVVXVYDORUHV ILJXUD  

)LJXUD

6LHVFULELPRVHOQRPEUHGHQXHVWURGLFFLRQDULRVHJXLGRGHODIXQFLyQKDVBNH\ FODYH QRV LPSULPLUiHQSDQWDOODHOYDORU7UXHVLHQFXHQWUDHVWDFODYHR)DOVHVLQRHVDVt6LXWLOL]DPRVODIXQFLyQ LWHPV FUHDUiXQDOLVWDGHWRGRVORVHOHPHQWRVTXHFRQWLHQH(VWRVHREVHUYDHQODILJXUD

51

Germán Tojeiro Calaza

)LJXUD

(QJHQHUDOXQGLFFLRQDULRVHGHEHXWLOL]DUFXDQGRKD\DXQDUHIHUHQFLDGLUHFWDHQWUHXQDFODYH \VXYDORU3RUHMHPSORHQHOFDVRGHXQGLFFLRQDULRGHWH[WRWHQHPRVXQDFRUUHVSRQGHQFLDHQWUHODV SDODEUDV FODYH  \ VX GHVFULSFLyQ R VLJQLILFDGR YDORU  (O RUGHQ GH ODV FODYHV \ YDORUHV QR HV VLJQLILFDWLYR$GLIHUHQFLDGHXQDPDWUL]GRQGHORVDUWtFXORVVHDOPDFHQDQHQHVWULFWDVHFXHQFLDORV GLFFLRQDULRVQRHVWiQRUJDQL]DGRVHQXQRUGHQHVWULFWR6LGDVXQSDVRDWUDYpVGHFDGDSDUFODYHYDORU HQXQGLF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HEHPRV VHJXLU ODV LQVWUXFFLRQHV TXH VH H[SXVLHURQ FXDQGR HVFULELPRVQXHVWURSULPHUVFULSWHQHODSDUWDGR 8QDVHQWHQFLDLI GHFLVLyQ VLUYHSDUDYHULILFDUVLVHFXPSOHXQDGHWHUPLQDGDFRQGLFLyQ\HQ IXQFLyQ GH VL HO UHVXOWDGR HV YHUGDGHUR UHDOL]DU DOJR \ VL HV IDOVR QR KDFHUOR 6H SXHGH DxDGLU XQD VHQWHQFLDHOVHRSFLRQDOTXHKDFHDOJRPiVVLHOUHVXOWDGRQRHVFLHUWR3\WKRQWDPELpQLQFOX\HXQD GHFODUDFLyQ OODPDGD HOLI TXH HQFDGHQD YDULDV FRQGLFLRQHV SRVLEOHV HQWUH YDULDV GHFODUDFLRQHV $ PHQXGRVHQHFHVLWDTXHXQSDUWHGHOFyGLJRVHUHSLWDXQQ~PHURGHYHFHV3RUHMHPSORHVSRVLEOHTXH GHVHHVHVFULELUFyGLJRTXHUHFRUUDWRGRVORVHOHPHQWRVGHXQDOLVWDRTXHVHUHSLWHKDVWDTXHDOJXQD FRQGLFLyQVHKDJDYHUGDGHUD 7UXH 3\WKRQLQFOX\HYDULDVKHUUDPLHQWDVSDUDLPSOHPHQWDUEXFOHVGH UHSHWLFLyQFRPRVHUYHUiPiVDGHODQWH8QDVHQWHQFLDIRUVLUYHSDUDHMHFXWDUXQWUR]RGHFyGLJRGHXQD IRUPDFRQWURODGDLQGLFDQGRFXiQWDVYHFHVORYDDKDFHU\HQTXpFRQGLFLRQHVOyJLFDV(OORVHUi~WLO SDUD FRQWDU D WUDYpV GH XQD OLVWD R WXSOD 3RGHPRV XWLOL]DU XQD VHQWHQFLD ZKLOH SDUD UHDOL]DU FRQWLQXDPHQWH HQ EXFOH OD HMHFXFLyQ GH XQD SDUWH GH FyGLJR KDVWD TXH XQD GHWHUPLQDGD FRQGLFLyQ OyJLFDRDULWPpWLFDGHMHGHFXPSOLUVH

52

Raspberry Pi2 para electrónicos

7RP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VR GH LPSRUWDFLyQYDQRUPDOPHQWHDOFRPLHQ]RGHQXHVWURFyGLJR3DUDXWLOL]DUODVIXQFLRQHVGHXQPyGXOR ORLPSRUWDUHPRVSRUVXQRPEUH\DFFHGHUHPRVDVXVIXQFLRQHVFRQQRWDFLyQGHSXQWRV3RUHMHPSOR VLLPSRUWDPRVHOPyGXORGHPDWHPiWLFDVSRGHPRVXWLOL]DUFXDOTXLHUDGHODVIXQFLRQHVTXHFRQWLHQH HVWHPyGXORSRQLHQGRPDWHPiWLFDVGHODQWHGHOQRPEUHGHODIXQFLyQ7DPELpQHVSRVLEOHLPSRUWDU FDUDFWHUtVWLFDVGHIRUPDVHOHFWLYDXWLOL]DQGRIURP(QODILJXUDVHREVHUYDTXHVLSUHWHQGHPRV XVDUHOPpWRGRIDFWRULDOGHOPyGXORGHPDWHPiWLFDVVLQKDEHUORLPSRUWDGRSUHYLDPHQWHQRVGDHUURU 6L DKRUD LPSRUWDPRV HO PyGXOR PDWK \D HVWDPRV HQ FRQGLFLRQHV GH XVDU HO PpWRGR IDFWRULDO \ REWHQGUHPRVXQUHVXOWDGR ILJXUD (QODILJXUDVHREVHUYDHOSURFHGLPLHQWRSDUDLPSRUWDU WRGRV ORV PpWRGRV GHVGH HO PRGXOR GHFLPDO DULWPpWLFD  \ FyPR XWLOL]DUOR /D OLVWD GLVSRQLEOH GH PyGXORV VH SXHGH FRQVXOWDU HQ OD ZHE RILFLDO GH 3\WKRQ (Q ORV SUy[LPRV FDStWXORV D PHQXGR SURFHGHUHPRVDLPSRUWDUGLVWLQWRVPyGXORVVHJ~QODDSOLFDFLyQTXHHVWHPRVGLVHxDQGR

)LJXUD



)LJXUD



)LJXUD 57



&$3Ë78/2

(175$'$6