ROBODYSSEY SYSTEMS LLC

Product Catalog
Code Page
Policies
Gallery
Whats New
Press Releases
Resources
Links
Contact Us
About Us
Press
Educators Page
BasicX and Robotics book
After School
Mini Challenge!
Hack-A-Toy
Shopping Cart

Home Product Catalog Shopping Cart Resources Links
Code Page Policies Gallery

	
'*************** Bump Car ***************
program Car_628_Bump
'***********************************************
Sub Procedure Forward
    PortB = %00000000
    Delay_ms(5)
    PortB = %11000101
    Delay_ms(50)
end sub
'***********************************************
Sub Procedure Reverse
    PortB = %00000000
    Delay_ms(10)
    PortB = %10100011
    Delay_ms(50)
end sub
'***********************************************
Sub Procedure T_Left
    PortB = %00000000
    Delay_ms(10)
    PortB = %11000011
    Delay_ms(50)
end sub
'***********************************************
Sub Procedure T_Right
    PortB = %00000000
    Delay_ms(10)
    PortB = %10100101
    Delay_ms(50)
end sub
'***********************************************
Sub Procedure Halt
    Delay_ms(50)
    PortB = %00000000
end sub
'***********************************************
Main:
    TrisB = %00000000    ' Configure pins of PortB as output
    TrisA = %00001111    ' Configure 4 pins of PortA as input
    CMCON = %00000111
mainloop:

    If testbit(PortA,2)= 0 Then
       Halt
       Delay_ms(1000)

       Reverse
       Delay_ms(1000)

       T_Right
       Delay_ms(1000)
    End If

    If testbit(PortA,1)= 0 Then
       Halt
       Delay_ms(1000)

       Reverse
       Delay_ms(1000)

       T_Left
       Delay_ms(1000)
    End If
        Forward
Goto mainloop
End.
'***********************************************

Home Product Catalog Shopping Cart Resources Links
Code Page Policies Gallery

Robodyssey Systems manufactures Robot Kits including Autonomous Mobile Walking Robots, Wheeled Robots, Talking Robots, Expressive Robots, and Social Robots. We also sell Robotics Accessories including Nexcell NiMH AA Rechargeable Batteries, Nexcell NiMH AAA Rechargeable Batteries, Battery Holders, Velcro Straps for Battery Packs, Battery Chargers, Robot Grippers, Hobby Servos, Servos Modified for Continuous Rotation, Tail Wheels for all Rolling Robotic Platforms, Polyurethane Skate Wheels with Servo Adapter Hubs, Sharp IR Sensors and Adjustable Sensor Brackets, Sensor Cables, and Programming Cables. All of our Robot Kits can be purchased as easy to assemble robot kits or as fully assembled stationary or mobile robots. Robodyssey uses 1/8 inch aluminum and acetyl for most all of our mobile robot components and robotics accessories. We provide classroom training for teachers interested in integrating robotics, computer programming and electronics into the classroom.

We hope you enjoy our web site. Feel free to use any robotic resources. Robodyssey is your complete solution for Educational Robotics as well as Hobby Robotics.