Shop OBEX P1 Docs P2 Docs Learn Events
Super BOE-BOT code — Parallax Forums

Super BOE-BOT code

Joe FishbackJoe Fishback Posts: 99
edited 2005-08-25 00:27 in Robotics
Noah,

Saw your robot project post, looks some interesting code was used, hope you got a good grade. I am posting the code I used, plus a write up on the wiring. Hope the wiring description will help.· The main things are the mian BOE has a Bs2sx chip and the secound BOE has a Bs2 chip. Also to get all the boards working, all the boards, the· RC receiver· and Servos must have a common Vss(-).· I hope these with be of help to you or anyone else interested. I would also be interested in the code you used. If anybody has any questions, Iwill be glad to try and answer them.

Joe Fishback

MAIN BOE BROAD
Bs2sx Chip
·
P0······· orange············· P0 thru P4 are from Gazbot circuit board
P1······· yellow
P2······· green···
P3······· blue·····
P4······· purple
·
P5······· red·················· signal to P5 on second BOE board
·
P6······· white··············· signal from RC receiver Channel 2 inline with 220 ohm res.
P7······· white··············· signal from RC receiver Channel 1 inline with 220 ohm res.
·
Vss(-)· black··············· to black on channel 1 & 2 of RC receiver
Vss(-)· purple(2nd)····· to second purple on Gazbot circuit board
Vss(-)· black··············· to Vss on second BOE
·
Vdd(+)blue(2nd)········· to second blue on Gazbot circuit board


SECOND BOE BOARD with AMPLIFIER APP. BOARD
Bs2 chip
·
Vdd(+) red·················· to "B" input (+) on RC receiver
·
Vss(-)· black··············· to "B" input (-) on RC receiver
Vss(-) black··············· to· Vss(-) on main BOE board
·
Note : pull down resister circuit use with P4 and P5
P4······························· to white signal line on rifle firing servo
P5······························· to P5 on main BOE board (signal object detected )

Comments

  • noah44noah44 Posts: 21
    edited 2005-05-16 21:06
    Joe Fishback,

    Holy moly, that is some tricky coding! Short and sweet the way it should be. Nice of you to share with the rest of us. I like the combination of two chips working together. I am considering taking two Javelin chips on a tank mod and combining them for my next project. I LOVE the nerf launcher posted earlier by bishop. For my next project I would like to have one of the Javelins handle the autonomous navigation with the compass and sensors while the other transmits and receives via an RF mod. I am imagining a Mars Rover type project capable of imaging and object retrieval. I want to program it to "explore" my garage on its own and bring back something.

    Here is a link to my COOL Autonomous Robots webpage:
    http://www.ecst.csuchico.edu/~noahs/224/ all of which use a plain old BS2.

    Any suggestions as to how I could shorten my object retreiving source code would be much appreciated.
    I will be the first to admit my source code is somewhat sloppy and could be made more efficient. I need to free up some more space for calculating the return angle. The one time out of ten it fails is due to a misalignment in the return trip. This could also be due to the degree I am tilting the compass as the crawler hops along. I have been looking into a Hitachi digital compass also offered through Parallax. I am wondering if anyone else has had any luck with it?
  • noah44noah44 Posts: 21
    edited 2005-05-16 21:14
    Here are the pin definitions... I attached the code to that last post.
    ' PIN#--HARDWARE CONNECTED
    ' 0--SRF04 SONAR INITIAL PULSE
    ' 1--SRF04 SONAR ECHO DETECTOR
    ' 2--CLAW OBJECT DETECTOR
    ' 3--LEFT CLAW ENCODER
    ' 4--RIGHT CLAW ENCODER and SPEAKER
    ' 5--DIGITAL COMPASS APPMOD
    ' 6--GROUND DETECTOR
    ' 7--(empty)
    ' 8--(empty)
    ' 9--(empty)
    ' 10--(empty)
    ' 11--(empty)
    ' 12--LEFT LEG SERVO CONTROLLER
    ' 13--RIGHT LEG SERVO CONTROLLER
    ' 14--LEFT CLAW SERVO CONTROLLER
    ' 15--RIGHT CLAW SERVO CONTROLLER
  • James AndersonJames Anderson Posts: 52
    edited 2005-08-25 00:27
    Thanx alot! smile.gif
    Great idea btw. im using an rc control unit for a robot project of mine, and its harder than i thought.
    WANNABE UBER GEEK

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ____________________________________
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    MAD SCIENTIST!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    ================================
Sign In or Register to comment.