Announcements

Parallax boe bot software

Posted 5 Jun 2002 at 19:12 UTC by scienceboy2 Share This

This program is for anyone with a parallax boe bot. The rest of this article won't make sense if you don't have one.

Diagram- out15= Light Emiiting Diode out12= Servo Motor out13= Servo Motor out10= Piezo Speaker out1= Infrared emitter {not shown on initilization} pin0= Infrared detecter

The gosubs- marked by *, are to be filled in with f, b, r, l, or z. f=forward, b=backward, l=left, r=right, and z= look for object. You can activate the gosubs by hitting ctrl+r or by clicking run. Contact Scienceboy 2 for more info.

lt con 500 rt con 1000 f1 con 1000 f2 con 500 r1 con 500 r2 con 1000 output 15 output 12 output 13 output 10 output 1 input 0 go con 100

pc var byte

program: gosub * gosub * gosub * gosub * gosub * freqout 10, 100,2500 out15=0 stop

target: for pc = 0 to 15 out15=0 freqout 10, 50, 2500 pause 50 out15=1 freqout 1, 1, 38500 if in0=0 then hit next debug " Target Missed. DANG IT! " freqout 10, 1500, 3000 return

l: for pc = 0 to go pulsout 12, lt pulsout 13, lt next debug " Left turn completed, awaiting further command " return

r: for pc = 0 to go pulsout 12, rt pulsout 13, rt next debug " Right turn completed, awaiting further command " return

f: for pc = 0 to go pulsout 12, f1 pulsout 13, f2 next debug " Forward thrust executed, awaiting further command " return

b: for pc = 0 to go pulsout 12, r1 pulsout 13, r2 next debug " Reverse thrust executed, awaiting further command " return

z: freqout 1, 1, 38500 if in0=0 then target freqout 10, 1000, 2500 debug " Target scan negative " return

hit: debug " Target Destroyed. Awaiting further orders " freqout 10, 500, 5000 stop

note- on this article, the alighnment is messed up. If you think this program is worth 2 cents, then email me at kwentworth@characterlink.net for me to email you a correected copy. Thanks for your time.

See more of the latest robot news!

Recent blogs

20 Apr 2014 Flanneltron (Journeyer)
19 Apr 2014 mwaibel (Master)
17 Apr 2014 shimniok (Journeyer)
8 Apr 2014 Petar.Kormushev (Master)
6 Apr 2014 steve (Master)
2 Mar 2014 wedesoft (Master)
1 Dec 2013 AI4U (Observer)
13 Nov 2013 jlin (Master)
23 Jun 2013 Mubot (Master)
13 May 2013 JLaplace (Observer)
X
Share this page