background image

6

 

l

 

Akit-BASIC Stamp2SX : BASIC Stamp2SX Activity kit

4.3 Sound driver

AX-2SX  board provides a 100mW 8

W

 speaker and connect with P12 of i-Stamp. i-

Stamp can out the audio signal couple via C2; 10mF  capacitor to drive this speaker. This
circuit demonstrate  the  i-Stamp’s    performance  about  driving  a  small  speake  without
external amplifier circuit

4.4  4-Input switches

At P8 to P11 are  assigned  to  Input  ports.  They  are  connected  4  of  push-button

switches and connected 4 pull-up resistor to define logic “HIGH” in normal state. If any
swith is pressed, that port will be connected to ground. Logic “0” will applied at that port.
i-Stamp can read port’status with programming.

Addition at P8 to P11 has limit-current resistor 220

W

 (R9 to R13) for protecting i-Stamp’s

port. Normally i-Stamp’s  port can connect to Ground directly but must set to INPUT only.
The  R9  to R13  are  used  to  protect  port destroy  in  case  setting  any  port to  output  and
switch is pressed. If not protected, i-Stamp’s port will be destroy.

4.5 Relay driver

P13 of i-Stamp is connected with ULN2003 input (pin 7). Output of ULN2003 (pin  10)

is connected with 12V relay. i-Stamp can active the relay operation with send logic “1” to
pin  7  of  ULN2003.  ULN2003  will  invert  logic  to  activate  relay.  Relay’s  coil  have  current
draw. LED9 lights up to indicates the operation and relay contact will switch from NC to
NO. Relay contact rating is 220Vac 5A and suitable to drive 600W electric load. User can
connect the electric appliance load to controlled by i-Stamp.

4.6 LDR circuit

One feature of i-Stamp is the simple analog signal processing with special command;

RCTIME. This command concept is RC time constant operation. In AX-2SX board, use LDR
(Light Dependent Resistor) and 0.1uF capacitor. They are connected to P14 of i-Stamp.

R14 resistor is connected with P14 in series for 2 purposes. One is assistance the RC

operation  start.  Another  function  is  current limitation  from  reverse  current  of  capacitor
rechageing.

4.7 Serial interface port

AX-2SX board assign P15 of i-Stamp to serial communication port to extension. The

external device that connect at this port must have serial communication such as the
Serial LCD, Serial keypad or Serial Real time clock module. Serial interface connector use
3-pins header. The assignment port from left is +5V, P15 or signal and Ground. Same any
previous port, P15 has a current-limit resistor for protection.

Summary of Contents for Akit-BASIC Stamp2SX

Page 1: ...clock frequency Operate up to 10 000 P BASIC command second l 16KByte memory separate 8 sections 2KByte each erasable 100 000 times l 32 byte RAM with 64 byte Scratchpad RAM l Consumption 65mA in full...

Page 2: ...8 bit data no parity 1 stop bit l 1 8 or 1 16 Duty can be selected by jumper l Scott Edwards s LCD Serial Backpack command compatible addition with Extended Command that make LCD control easier l Eas...

Page 3: ...ich SX 28AC microcontroller Inside this micro controller containsP BASIC2SX interpreter firmwarer The users have already written P BASIC The program is downloaded into i Stamp via serial port Signel i...

Page 4: ...to pin 21 of i Stamp At pin 22 connect with RESET switch to reset the operation of i Stamp For interfacing with serial port use pin 1 to 4 connect with pin 2 3 4 and 5 of DB 9 serial connector These i...

Page 5: ...oard schematic 4 1 8 LED outputs All 8 LEDs will be connected with P0 to P7 of i Stamp via current limit resistor All LED wil operate at Logic 1 or active high 4 2 Stepper motor driver At P0 to P3 of...

Page 6: ...s connected with 12V relay i Stamp can active the relay operation with send logic 1 to pin 7 of ULN2003 ULN2003 will invert logic to activate relay Relay s coil have current draw LED9 lights up to ind...

Page 7: ...support all DC adpator s polarity C3 capacitor is used for filtering the input supply voltage more smooth and C4 capacitor reduce the high frequency noise Voltage at this point is called V It is used...

Page 8: ...USB to RS 232 serial port converter The UCON 232S is recommended Procedure 1 1 Put i Stamp into 24 pin female header on AX 2SX Activity board Must put the right direction following in figure A1 1 1 2...

Page 9: ...etween i Stamp and BASIC Stamp Editor software by press Ctrl I key or click at Identify button or enter RUN menu then select Identify If all correct Identification box will appear and inform the versi...

Page 10: ...end massage welcome to display on Debug Terminal of BASIC Stamp Editor software Press Enter 1 5 5 Click Run button Debug Terminal will appears and show message welcome on the screen following figure A...

Page 11: ...ssage welcome It means i Stamp can work ready This terminal will appear everytime that use DEBUG command 1 6 All experiment PBASIC code can store in bsx filename Figure A1 9 shows Error box on screen...

Page 12: ...12 l Akit BASIC Stamp2SX BASIC Stamp2SX Activity kit...

Reviews: