1 / 13

Basic Stamp OEM module

Basic Stamp OEM module. By Wilmer Arellano. P0-P15 I/O. Reset Input (RES). 5.5 – 15V input (Vin). Ground- 0V (Vss). Regulated 5V (Vdd). The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form.

mireya
Download Presentation

Basic Stamp OEM module

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basic StampOEM module By Wilmer Arellano

  2. P0-P15 I/O Reset Input (RES) 5.5 – 15V input (Vin) Ground- 0V (Vss) Regulated 5V (Vdd) • The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. • The male header provides the means to ‘plug-it’ into your own board, or connect to other boards. Power the board with EITHER:A) 5.5-15VDC on Vin. This will also provide 5VDC regulated output on Vdd.B) Regulated 5V Input on Vdd. 2

  3. Using the breadboard(Socket board) The metal strips are laid out as shown in orange. The long top and bottom row of holes are usually used for power supply connections. The bread board has many strips of metal (copper usually) which run underneath the board. To use the bread board, the legs of components are placed in the holes (the sockets). The holes are made so that they will hold the component in place. The circuit is built by placing components and connecting them together with jumper wires.

  4. OEM BASIC Stamp 2sx 9V 220 Ohm 5V Ground

  5. Connection 220 Ohm resistor should be connected to pin P4 of the OEM Basic Stamp 2sx. “+” (long) lead of LED should be connected to opposite side of the resistor. The other (short) lead of the LED goes to “-” 220 Ohm 9 V battery LED

  6. Flashing LED ' {$STAMP BS2sx} ' {$PBASIC 2.5} Green: 'Label Or point were you can RETURN LOW 4 'Set pin 4 an output pin and low voltage "0" PAUSE 1000 'Pause 1000 ms HIGH 4 'Set pin 4 an output pin and high voltage "1" PAUSE 1000 'Pause 1000 ms GOTO Green

  7. Code to test your microcontroller ' {$STAMP BS2sx} ' {$PBASIC 2.5} start: HIGH 0 HIGH 1 HIGH 2 HIGH 3 HIGH 4 HIGH 5 HIGH 6 HIGH 7 HIGH 8 HIGH 9 HIGH 10 HIGH 11 HIGH 12 HIGH 13 HIGH 14 HIGH 15 PAUSE 100 LOW 0 LOW 1 LOW 2 LOW 3 LOW 4 LOW 5 LOW 6 LOW 7 LOW 8 LOW 9 LOW 10 LOW 11 LOW 12 LOW 13 LOW 14 LOW 15 PAUSE 100 GOTO start

  8. Microcontroller chip COM port 9 V battery 220 Ohm 220 Ohm 220 Ohm LED PIR Motion sensor LED LED 220 Ohm 15 KOhm OUT Push button Buzzer Wiring diagram OEM BASIC Stamp 2sx Note: - is connection to negative pole of the battery

  9. Flashing LED + Switch Input ' {$STAMP BS2sx} ' {$PBASIC 2.5} Green: 'Label Or point were you can RETURN LOW 4 'Set pin 4 an output pin and low voltage "0" PAUSE 1000 'Pause 1000 ms HIGH 4 'Set pin 4 an output pin and high voltage "1" PAUSE 1000 'Pause 1000 ms DEBUG ? IN0 'Input the value of pin 1 PAUSE 1000 'Pause 1000 ms GOTO Green

  10. Making Sound ' {$STAMP BS2sx} ' {$PBASIC 2.5} start: FREQOUT 1, 10000, 1000 PAUSE 1000 GOTO start

  11. Making Sound ' {$STAMP BS2} ' {$PBASIC 2.5} start: HIGH 1 PAUSE 5 LOW 1 PAUSE 5 GOTO start

  12. CAR 1 • ' {$STAMP BS2sx} • ' {$PBASIC 2.5} • PAUSE 5000 • HIGH 10 • LOW 11 • start: • HIGH 4 • HIGH 8 • LOW 9 • PAUSE 3000 • LOW 4 • LOW 8 • PAUSE 3000 • HIGH 9 • PAUSE 3000 • LOW 9 • PAUSE 3000 • GOTO start

More Related