Presentation is loading. Please wait.

Presentation is loading. Please wait.

ME456:Mechatronics WAM Chapter 1: Getting Started Prof. Clark J. Radcliffe Mechanical Engineering Michigan State University

Similar presentations


Presentation on theme: "ME456:Mechatronics WAM Chapter 1: Getting Started Prof. Clark J. Radcliffe Mechanical Engineering Michigan State University"— Presentation transcript:

1 ME456:Mechatronics WAM Chapter 1: Getting Started Prof. Clark J. Radcliffe Mechanical Engineering Michigan State University http://www.egr.msu.edu/classes/me456/radcliff

2 BASIC Stamp II An integrated microcontroller system Postage Stamp Size, Programmed in BASIC 2k byte EEPROM 5 volt Regulator Interpreter Chip PIC16C57 w/ 26 bytes RAM 20 MHz Resonator Serial Interface I/O Pins 0-7 I/O Pins 8-15

3 The Basic Stamp Introduced them in 1992. As of July 2000, > 200,000 BASIC Stamp modules into use. Each BASIC Stamp includes: – a BASIC Interpreter chip –internal memory (RAM and EEPROM) –a 5-volt regulator –16 general-purpose I/O pins (TTL-level, 0-5 volts) –built-in commands for math and I/O pin operations. –5 models: BS1, BS2, BS2e, BS2sx & BS2p.

4 BASIC Stamp I The original Basic Stamp 8 i/o pins 16 bytes of RAM 256 bytes of program storage Fewer programming functions 2000 PBASIC statements/sec 2 ma running power requirement Parallel port interface

5 BASIC Stamp II Specifications –4000 BASIC Statements per second –16 Digital I/O pins Source 20 mA, Sink 25 mA –Special purpose control routines –5v power supply (50 mA) –Low power (8 mA, sleep at 0.1mA) –RS232 serial programming interface –2k bytes program token storage

6 Basic Stamp 2 IC

7 Other BS2 BS2e: –64 bytes scratch pad RAM –30 mA i/o pin current BS2sx: –39 PBASIC Commands –10,000 instructions/sec BS2p24: –12,000 instructions/sec –55 PBASIC Commands BSp40, BS2pe - more features

8 Board of Education Allows easy prototyping with BSII 5 volt 1.5A Regulator 9 volt Battery Connector USB / Serial Interface To PC BASIC Stamp II Microcontroller Circuit Prototyping Area Digital I/O Connector 5v Power Supply Connection Wall Transformer Connection Reset Button On-Off Switch RC Servo Connections

9 BS2 RAM Organization Word NameByte NameNibble NameBit NameNote INSINL INH INA, INB INC, IND IN0-IN7, IN8-IN15 Input pins OUTSOUTL, OUTH OUTA, OUTB, OUTC, OUTD OUT0 – OUT7 OUT8 – OUT15 Output pins DIRSDIRL, DIRH DIRA, DIRB, DIRC, DIRD DIR0 – DIR7 DIR8 – DIR15 Direction bits 0 = input 1=output W0B0 B1 N0 N1 Bit names are not typically used (See Memory and Variables Help) General Purpose word, byte, nibble and bit addressable.................. W12B24 B25 N48 N49

10 PBASIC Examples '{$STAMP BS2} '{$PBASIC 2.5} ‘Define symbols LED CON 14 'LED control pin Time CON 15 'Pause time (ms) ‘Flash LED’s (pins connected “low”) DO ‘loop forever HIGH LED‘Turn LED off PAUSE Time LOW LED ‘Turn LED on PAUSE Time LOOP

11 Some Examples Let’s run the Basic Stamp Editor …


Download ppt "ME456:Mechatronics WAM Chapter 1: Getting Started Prof. Clark J. Radcliffe Mechanical Engineering Michigan State University"

Similar presentations


Ads by Google