Presentation is loading. Please wait.

Presentation is loading. Please wait.

ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat.

Similar presentations


Presentation on theme: "ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat."— Presentation transcript:

1 ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat

2 Digital Input Each of the Basic Stamp’s I/O Pins, P0…P15 can be programmed to be an Input or an Output (Direction)

3 Improved circuit for reading a switch state. NO = Normally Open NC = Normally Closed Basic Stamp BUTTON Function is one solution to switch contact bounce problem. Digital Input

4

5 Digital Output

6

7 Basic Stamp can only source or sink about 20 milliamps. Some loads require more.

8 Digital I/O Command Summary INPUT OUTPUT REVERSE LOW HIGH TOGGLE PULSIN PULSOUT BUTTON COUNT POLLIN POLLOUT POLLMODE XOUT LCDCMD LCDIN LCDOUT SERIN SEROUT OWIN OWOUT SHIFTIN SHIFTOUT I2CIN I2COUT

9 Simple Analog In/Out Techniques RCTIME 7, 1, resultRCTIME 7, 0, result Analog Input

10 Simple Analog In/Out Techniques Analog Output using PWM PWM pin, duty, duration

11 Analog In/Out Interfacing Analog-to-Digital & Digital-to-Analog Converters But the BASIC Stamp has a limited number of I/O pins for connection to bit-parallel devices.

12 Analog In/Out Interfacing Analog-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

13 CanSat Interface Board +5 GND P0 P1 P2 P3 P4 P5 P6 P7 P15 P14 P13 P12 P11 P10 P9 P8


Download ppt "ACES PROGRAM Brad Ellison 28 January 2003 Basics of Interfacing to CanSat."

Similar presentations


Ads by Google