RoboToons Robot T-Shirts
Patriotic Song 4 the U.S.A.
SolidWorks 3D CAD Drafter/Designer 4 Hire
Down the Rabbit Hole
The End
 


OB&GC HOME

The unemployed teacher could use a little help.
CanBot1 Project


 
Robotics 101 - building a robot -

Programming the RoboGuts

Have the "BASIC Stamp Editor" programming application installed on your PC.

Connect the USB-Serial or USB-miniUSB cable from your computer to the µController board.



Now we program the µController Board ... copy/paste this program into the window/open space on the right half of the "BASIC Stamp Editor".


' CheezeyBot Prgm 1 by Walt Perko
' {$STAMP BS2}
' {$PBASIC 2.5}

x VAR Byte
y VAR Byte

'====================================
' Flash the LEDs

PAUSE 2000 ' wait 1 seconds

FOR x=0 TO 7
HIGH 0 'turn on LED
PAUSE 50

LOW 0 'turn off LED
PAUSE 50
NEXT

PAUSE 5000 ' wait 0.5 seconds

FOR y = 0 TO 99
GOSUB motor1
PAUSE 2000
GOSUB motor2
PAUSE 2000
GOSUB motor3
PAUSE 2000
GOSUB motor4
PAUSE 2000
GOSUB motor5
PAUSE 2000
NEXT

END

'====================================
' Motor 12 & 13
motor1:
FOR x=0 TO 199
PULSOUT 12, 3000
NEXT

PAUSE 500

FOR x=0 TO 199
PULSOUT 13, 3000
NEXT

PAUSE 500

FOR x=0 TO 249
PULSOUT 12, 3000
PULSOUT 13, 3000
NEXT

RETURN

'====================================
' Motor 12 & 13
motor2: FOR x=0 TO 199
PULSOUT 12, 200
NEXT

PAUSE 500

FOR x=0 TO 199
PULSOUT 13, 200
NEXT

PAUSE 500

FOR x=0 TO 249
PULSOUT 12, 200
PULSOUT 13, 200
NEXT

RETURN

'====================================
' Motor 12 & 13
motor3:
FOR x=0 TO 199
PULSOUT 12, 200
NEXT

PAUSE 500

FOR x=0 TO 199
PULSOUT 13, 3000
NEXT

PAUSE 500

FOR x=0 TO 199
PULSOUT 12, 200
PULSOUT 13, 3000
NEXT

RETURN

'====================================
' Motor 12 & 13
motor4:
FOR x=0 TO 199
PULSOUT 12, 3000
NEXT

PAUSE 500

FOR x=0 TO 199
PULSOUT 13, 200
NEXT

PAUSE 500

FOR x=0 TO 199
PULSOUT 12, 3000
PULSOUT 13, 200
NEXT

RETURN

'====================================
' Motor 12 & 13
motor5:
FOR x=0 TO 199
PULSOUT 12, 200
NEXT

PAUSE 500

FOR x=0 TO 199
PULSOUT 13, 200
NEXT

PAUSE 500

FOR x=0 TO 249
PULSOUT 12, 3000
PULSOUT 13, 3000
NEXT

RETURN

END


You're bot is ready to do the CheezeyBot Dance!


Now assemble the Robot. Robotics101d


Robotics101 HOME . . . . . CheezeyBot . . . . . PhotoArray

Brainless.org HOME . . . . . OPEC of the West HOME

RoboToons Robot T-Shirts . . . . . RoboToons Robot Cartoons


Support US

Buy a T-Shirt


Sponsor links are affordable
Have an active link to your
Robot / Hobby Shop
in this column


Non-Commercial Sponsors
get a FREE link to their own personal
robot website ... a posting worth $25/yr.
175x200 pixels max.



Affordable WebSite/Domain Hosting


Visit some Robot Clubs

Visit some Personal Robot Sites

Back 2 RoboToons HOME


 



Best viewed with a FireFox Browser