Basic Stamp Homework Board Manual
Total Page:16
File Type:pdf, Size:1020Kb
599 Menlo Drive, Suite 100 General: [email protected] Rocklin, California 95765, USA Technical: [email protected] Office: (916) 624-8333 Web Site: www.parallax.com Fax: (916) 624-8003 Educational: http://www.parallax.com/html_pages/edu/ BASIC Stamp HomeWork Board #29158 10-pack of Breadboard version #29157 10-pack of Through-Hole version Introduction It’s not often that we start technical documentation with a bit of marketing punch. If you like the low cost of a BASIC Stamp Rev. D (retails ~$34) and the idea of a half-price BASIC Stamp 2 / Board of Education (retails ~$109) then the BASIC Stamp HomeWork board is the ticket for your class. This is the least expensive way to get a large educational group started with the BASIC Stamp. The HomeWork Boards were created exclusively for educators to send home with students with these uses in mind: • BASIC Stamp-related homework assignments • Dedicated science-fair, contest or hobby projects • Students who express personal interest in further developing their BASIC Stamp projects but can’t have their own Board of Education / BS2 due to it’s higher cost Since it’s less expensive than the Board of Education / BS2 module, can the board be used for Stamps in Class experiments? Possibly, with the following considerations: • Servo connection ports for robotics are not included on the HomeWork Board. It’s possible to use male/male headers for servo connections with a second power supply jumpered to the HomeWork Board to control servos. • 220 ohm resistors are built into each of the 16 I/O pins for current protection so the PBASIC interpreter cannot be easily damaged. This protects the BASIC Stamp from over-current conditions but also slightly changes the behavior of the Stamps in Class experiments if used on this board based on the command being used. • Stamps in Class circuit pictorials do not match the HomeWork Board. Again, minor workaround once you understand the difference between the power supply options. • Power supply is from a 9V battery, not the wall pack. • Current supply from the on-board regulator is limited to 50 mA versus the Board of Education’s amp or more. However, these cost-reducing limitations do not limit the use of the HomeWork Board for other projects. In fact, the minimalist design is simple to use and entirely flexible for most projects. Parallax, Inc. • BASIC Stamp HomeWork Board ver 1.1 Page 1 Package Contents The BASIC Stamp HomeWork Board is sold only in quantities of 10. The reason for this is that the board is intended for the educational market only, to be purchased by educators for use in their classrooms. The kit includes only the boards – nothing else. BASIC Stamp HomeWork Board Hardware Design BASIC Stamp HomeWork Board uses the BASIC Stamp 2 surface-mounted directly to the printed circuit board. The BASIC Stamp 2 has a wide variety of available support hardware, code examples and applications. Further, it performs most of the same functions of the newer BASIC Stamps though with less speed and memory. The BASIC Stamp 2’s technical specifications are shown below (Table 1). Also review the hardware (Figure 1) and schematic (Figure 2). Table 1 Microcontroller: PIC16C57 surface mount Speed: 20 MHz / ~4,000 instructions per second BASIC Stamp EEPROM: 2K bytes (program and data) HomeWork Board Program Length: 500 lines of PBASIC Specifications. RAM (variables): 32 bytes (6 for I/Os and 26 for variables) Input / Outputs: 16 (up to 17 RS-232 communication ports) Source / Sink Current: 50 mA / 50 mA Serial Communication: 300-50K baud I/O Current Requirements: 7 mA running, 50 uA in sleep PC Interface: Serial port 5 V through an LM2936 regulator from a 9V Power Supply: transistor battery 32 to 158° F (0 to 70° C), 70% non- Environment: condensing humidity HomeWork Board Size: 3” x 4” Project Area: Built-in breadboard on StampLab Microcontroller: PIC16C57 surface mount Speed: 20 MHz / about 4,000 instructions per second EEPROM: 2K bytes (program and data) Program Length: ~500 to 600 lines of PBASIC Parallax, Inc. • BASIC Stamp HomeWork Board ver 1.1 Page 2 Figure 1 B StampLab printed circuit board keyed STA (916) 624-8333 in MPS CL with part ASS www.parallaxinc.com Rev A identifications. www.stampsinclass.com C VddVin Vss A X3 X4 P15 P14 P13 P12 P11 P10 P9 H P8 D P7 P6 P5 Power P4 E P3 P2 G G P1 P0 Reset F © 2002 BASIC Stamp HomeWork Board A. BASIC Stamp 2 Module. The BASIC Stamp is comprised of several components: PIC16C57-20/SS - a Microchip 2K 8-bit microcontroller programmed with the the BASIC Stamp “Interpreter” that runs the Parallax BASIC Stamp code like a mini operating system; the 24LC16B EEPROM - a Microchip 2K EEPROM (electrically erasable programmable read-only memory) with a user-modifiable read- only memory (ROM) that can be reprogrammed with your BASIC Stamp code; a 20 mHz resonator to provide an accurate clock source for the BASIC Stamp; 220 Ohm resistors across the I/O pins to provide current protection for mistake wiring; an LM2936 voltage regulator which provides 50 mA for the BASIC Stamp and your circuits powered from the breadboard’s Vdd connection. B. DB-9 Female. The DB-9 port connects via serial cable to your PC’s serial port. This port is used to download programs to your BASIC Stamp and for the BASIC Stamp to send data back to the PC. C. Power and Ground Connections. Vdd is regulated 5V, Vin is 9V from the transistor battery, Vss is ground. D. Breadboard. Two areas of 5 column x 17 row breadboard project area. Connections are horizontal separated by the trough. E. Power Button. Illuminated when the BASIC Stamp is running a program only. F. Reset Circuit. Reset the BASIC Stamp by pressing this button. G. Battery Tie-Downs. If using the HomeWork Board Through-Hole Version for projects involving high- vibration (on R/C airplanes, robots, etc.) a “zip-tie” can hold the battery firmly to the board if looped through these holes. H. Power Supply. Accepts a 9V battery. Parallax, Inc. • BASIC Stamp HomeWork Board ver 1.1 Page 3 The solutionwas toconnect BASICStampHomeWork B supply. power of amissing anoptionsinc mA.RemovingtheLEDwasn’t typically 10-12 ortwobyitselfifbei batteryina day the drain could The BASICStamphasconsumpt commands power forreduced for alongtime. from abattery current that theBASICStampdrawsonlysmallamountsof forscience not asportable buttheyare plenty ofpower about 2mA. program. Moreover,theBASIC Stamp Parallax, Inc. • BASIC Stamp HomeWork Board ver 1.1 ver1.1 Board HomeWork Stamp • BASIC Parallax, Inc. 4 Page Stamp’s EEPROM. The EEPROM’s clock Stamp’s EEPROM.TheEEPROM’s Stamp designsBASIC Parallax normally Life andBattery Power Consumption HomeWork Board BASIC Stamp Figure 2 Schematic Vdd Vdd Vdd 10kΩ RN1-3 RN1-4 10kΩ 4.7kΩ Vin VR1 LM2936 Vdd 4.7kΩ 1 3 VIN VOUT + 9V Transistor C1 J2 DTA114EETL Battery VSS 10µF 1 PB1 6 2 2 RN1-1 1/2 UM11TN 1/2 UM11TN HomeWork Board’s powe 7 4.7kΩ Reset 3 Vss boards withpowerjacksforwalltran 8 10k Vss line isactiveonlywhentheBASIC Ω 4 10kΩ 10kΩ 9 10kΩ 5 C3 0.1µF DB9 Female C4 Vss ng used to indicate a power supply! LEDs consume current, current, consume power supply!LEDs toindicatea ng used 0.1µF Vdd U2 fairs, robots and environmental datalogging. Considering Considering datalogging. environmental and robots fairs, Vss A0 Vdd oard’s powerLEDto A1 N/C 20 MHz Vdd Vin 24LC16B it could be deployed inaremotelocationandrun itcouldbe A2 Clk RN1-2 R2 R1 e it discloses the common technical support problem support technical thecommon e itdiscloses Vss Dat 4.7kΩ 100Ω 10kΩ Vss ion, but whataboutthe ion, but Vss 1 2 3 4 5 6 7 8 9 r LEDis alowcurrentLEDconsuming only Vss 11 X3 10 12 13 D2 X4 Vdd U1 LED Power P15 16 1 28 P14 15 2 VSS 27 P13 RTCCI OSC1 14 3 26 P12 13 4 VDD OSC2 25 P11 VDD RC7 P15 12 5 24 P14 P10 11 6 RA0 RC6 23 RN5 P9 Stamp is actually running a Stampisactuallyrunning 10 sformers. Wall sformers. tran P13 the “clock” line of the BASIC the“clock” lineoftheBASIC RA1 RC5 Vss 7 PIC16C57-20/SS 22 220Ω P8 RA2 RC4 P12 9 8 (PBASIC2/SS) 21 P11 P7 8 9 RA3 RC3 20 P6 P0 RB0 RC2 P10 RN4 7 P1 10 19 P9 P5 6 11 RB1 RC1 18 220Ω P4 P2 RB2 RC0 P8 5 P3 12 17 P7 P3 4 13 RB3 RB7 16 P2 RB4 RB6 P6 RN3 3 RN2 14 15 P1 2 power indicator LED?It power indicator VSS RB5 P5 220Ω 220Ω P4 P0 1 Vss Breadboard sformers provide MilliAmp hours is a statistic measuring the amount of energy stored in a battery. For example, if you have a 1 mA-hr battery and a project drawing 0.5 milliamps, the battery will last for two hours. A typical 9V Duracell alkaline transistor battery provides about 565 milliAmp hours of energy. If the BASIC Stamp is being used in a project where at least some small amount of time is spent doing nothing you can put it in a low-power mode to extend battery life using the SLEEP command (Table 2). The duration which you put the BASIC Stamp to SLEEP is accurate to ± 1% at 75° F and can ranges from 2.3 seconds to 18 hours (you can “wake up” and go back to sleep after 18 hours). By comparison, the PAUSE command is simply a delay in a PBASIC program yet the BASIC Stamp continues to draw full operating current.