Shop OBEX P1 Docs P2 Docs Learn Events
Connecting Basic Stamp to.... — Parallax Forums

Connecting Basic Stamp to....

MrFusMrFus Posts: 27
edited 2007-06-02 14:47 in BASIC Stamp
Hi, sorry if I post this question on the incorrect part of the forum, Im looking to connect a Basic Stamp to a Robosapien body to explode the potential of the humanoid shape... are some one do this here and how you connect the Basic Stamp to the internal controler of robosapiend to send the signals to triger the reactions on the robot?

Again Im sorry if Im posting on the incorrect one, its just Im not sure if post on the robots part, due the fact im not·using my boe-bot on the project, im going to use a extra·Board of Education that i have...

Thanks

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mr Fus


>
Panama City Beach, FL
http://microbots.tripod.com.mx
<

Comments

  • boeboyboeboy Posts: 301
    edited 2007-05-31 15:02
    It is in the right forum (the robots one would have worked to) and·here is a group that hacks the robosapien http://www.therobosapien.com/forums/index.php?act=idx

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My computer, http://forums.parallax.com/showthread.php?p=630466
  • MrFusMrFus Posts: 27
    edited 2007-05-31 18:11
    Thanks... I get the robosapien V1 from walmart on $25 and after play a little bit to be honest i get bored, but I see the potential to use the Shell and the control of the motors to use it as a start platadorm for a betther robot, so I want to use the Basic stamp to add complete selfcontrol, and increse the range of sensor to more than just the touch ones...

    I will research the URL that you give to me and I hope found more information... if the project start I will post my advances and the results here.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mr Fus


    >
    Panama City Beach, FL
    http://microbots.tripod.com.mx
    <
  • MrFusMrFus Posts: 27
    edited 2007-06-02 01:26
    what i have found is a set of pictures (http://www.aibohack.com/robosap/sapavr_chopchop.jpg) that show the cables to go on the Board on Robosapiend (feets and hands sensors) and what and acording to the pics·is the one that get the input of the IR... if i understand the main concept what i need to do is conect one of the I/O of the basic stamp (i have a Homework board) to the pin that will be the input from the IR on the Robosapiend and then send from the Homework Board a series of pulses that will match with the ones sended by the remote, Now I supose i need to have a small circuit between the two pins (im not sure why but common sens tell me I should have some between·tongue.gif) and I already have from some URL that i dont remember at this point with a list of the hex codes for each action that Robosapien "Know" to do, How to progrmam this on Basic Stamp and order the high and low comands on to send the bits·is another of the stones on my way to improve my RS.

    question to the the ones that dominate the world of electronics and programing... Im on correct track to interconnect the homework board·to the main module of Robosapien or Im lost on the reality·of how to do it?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mr Fus


    >
    Panama City Beach, FL
    http://microbots.tripod.com.mx
    <
  • FranklinFranklin Posts: 4,747
    edited 2007-06-02 03:58
    The picture of the atmel chip will show you what you need to connect but I would recommend you tackle the programming first to make sure you understand what is required before cutting up your robo. The wiring looks pretty straightforward and except for speed (I don't know what the atmel is capable of) it seems doable.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • MrFusMrFus Posts: 27
    edited 2007-06-02 14:47
    I have this information from the same web from where I get the picture...

    "The IR Carrier is 39.2kHz. Data is modulated using a space coded signal with 8 data bits (data clock is 1200Hz, but actual data rate varies depending on the data).

    You can skip the IR and IR modulation by wiring directly into the main PCBoard. This can be encoded easily by almost any small microprocessor. For modulating the signals yourself, the signal looks something like this:
    Timing based on 1/1200 second clock (~.833ms)Signal is normally high (idle, no IR).Start: signal goes low for 8/1200 sec.Data bits: for each of 8 data bits, space encoded signal depending on bit value Sends the most significant data bit first If the data bit is 0: signal goes high for 1/1200 sec, and low for 1/1200 sec. If the data bit is 1: signal goes high for 4/1200 sec, and low for 1/1200 sec. BTW: The first bit (msb) is always 1 (valid codes are from $80 to $FF)When completed, signal goes high again.No explicit stop bit. Minimal between signals is not known."And from a old forum get this kind of explanation on how to work the programing... " The IR from the remote is a series of pulses. What you want to do with the microcontroller is mimic these pulses. Thandley
    has connection details on the Basic-X topic in the Technical forum. What you need to do is send an 8/1200sec low pulse
    (0v) followed by 1/1200sec high (VCC) this is the start pulse alerting the robosapien that a command is being sent. The 8
    bits which make up the command
    (e.g. walk forward is 86(hex), which is 134 in decimal and 10000110 in binary) are then sent with the most significant bit
    first (i.e. the left hand digit/bit).
    To send a 1 to the robosapien you first send a 4/1200sec low pulse followed by a 1/1200sec high pulse
    To send a 0 you send a 1/1200sec low pulse followed by a 1/1200sec high pulse.
    Send the 8 bits one at a time and the robosapien should start walking forwards.
    For the walk forward the pulse train would look like this:
    sending 10000110
    S 1 0 0 0 0 1 1 0
    __________ _ _ _ _ _ _ _ _ __________
    !________! !____! !_! !_! !_! !_! !____! !____! !_!
    <
    > <----> <-> <->
    8/1200 4/12000 1/1200 1/1200
    low low low high"

    on a twisted turn of the destiny on he same follow-up posts on the forum I see this...
    "Ok, after talking with Parallax, it seems the overhead with a single command is over 1 ms, so the BS2 is not equipped to
    handle IR control for the RS. So it's either the SX or another controller or a hardware timer."

    So this come to kill my espectations to add the basic stamp to the Robot cry.gif ... or at less until I get response from some one that say
    add a basic stamp to his Robosapien...


    Post Edited By Moderator (Chris Savage (Parallax)) : 7/11/2007 12:20:46 AM GMT
Sign In or Register to comment.