aces program brad ellison 28 january 2003 basics of interfacing to cansat
TRANSCRIPT
![Page 1: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/1.jpg)
ACES PROGRAM
Brad Ellison
28 January 2003
Basics of Interfacing to CanSat
![Page 2: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/2.jpg)
Digital InputEach of the Basic Stamp’s I/O Pins, P0…P15can be programmed to be an Input or an Output (Direction)
![Page 3: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/3.jpg)
Improved circuit for reading a switch state.
NO = Normally OpenNC = Normally Closed Basic Stamp BUTTON Function is one solution
to switch contact bounce problem.
Digital Input
![Page 4: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/4.jpg)
Digital Input
![Page 5: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/5.jpg)
Digital Output
![Page 6: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/6.jpg)
Digital Output
![Page 7: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/7.jpg)
Digital OutputBasic Stamp can only source or sink about 20 milliamps. Some loads require more.
![Page 8: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/8.jpg)
Digital I/O Command SummaryINPUTOUTPUTREVERSELOWHIGHTOGGLEPULSINPULSOUTBUTTONCOUNTPOLLINPOLLOUTPOLLMODE
XOUTLCDCMDLCDINLCDOUTSERINSEROUTOWINOWOUTSHIFTINSHIFTOUTI2CINI2COUT
![Page 9: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/9.jpg)
Simple Analog In/Out Techniques
RCTIME 7, 1, result RCTIME 7, 0, result
Analog Input
![Page 10: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/10.jpg)
Simple Analog In/Out TechniquesAnalog Output using PWM
PWM pin, duty, duration
![Page 11: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/11.jpg)
Analog In/Out InterfacingAnalog-to-Digital & Digital-to-Analog Converters
But the BASIC Stamp has a limited numberof I/O pins for connection to bit-parallel devices.
![Page 12: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/12.jpg)
Analog In/Out InterfacingAnalog-to-Digital & Digital-to-Analog Converters
Serial ADC uses fewer connections than a parallel output ADC.
SPI, I2C, Microwire and 1-Wire protocols.
Basic Stamp supports with built-in functions:
SHIFTIN, SHIFTOUT, I2CIN, I2COUT, OWIN, OWOUT, PULSIN, PULSOUT
![Page 13: ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649cd95503460f949a290a/html5/thumbnails/13.jpg)
CanSat Interface Board
+5 GND
P0P1P2P3P4P5P6P7
P15P14P13P12P11P10P9P8