1 / 6

Interface ckt for demo

+9, +12 V. 1K. PIN 1. TIP120. GND. +5 V. 10K. 330. PIN 0. PIN 4. GND. GND. Interface ckt for demo. Outputs. Inputs. DEMO PROGRAM. '-------------------------------- ' demo.bas ' ' Stamp demo program 4-28-01 (wkd) '-------------------------------- start:

Download Presentation

Interface ckt for demo

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. +9, +12 V 1K PIN 1 TIP120 GND +5 V 10K 330 PIN 0 PIN 4 GND GND Interface ckt for demo Outputs Inputs

  2. DEMO PROGRAM '-------------------------------- ' demo.bas ' ' Stamp demo program 4-28-01 (wkd) '-------------------------------- start: b2 = 0 ' for button command b4 = 100 ' sound variables b5 = 80 top: high 0 ' red led on loop1: ' check switch if in4 = 1 then loop1

  3. action: for b3 = 1 to 5 high 0 ' red led on low 1 ' green led off pause 500 ' wait 0.5 sec low 0 ' red led off high 1 ' green led on pause 500 next b3 low 0 ' both led's off low 1 pause 500

  4. music: sound 2,(b4,20,b4,20,b4,20,b5,100) pause 250 for b3 = 0 to 127 step 10 sound 2,(25,10,b3,10) next b3 pause 500 motor: high 3 ' motor on pause 2000 ' wait 2 sec low 3 ' motor off pause 750 finish: sound 2,(120,75,50,75,120,150) goto top ' start all over again

  5. N = 15 N = $0F N = %00001111 All these are the same Numbering conventions 100 ‘ decimal $64 ‘ hex %01100100 ‘ binary

More Related