Shop OBEX P1 Docs P2 Docs Learn Events
BASIC Stamp 2px Module with PING))) — Parallax Forums

BASIC Stamp 2px Module with PING)))

ToolsTools Posts: 6
edited 2008-06-05 22:31 in BASIC Stamp
I have been using both the BS2 and the BS2pe with the Ping sensors and they were working fine. When I upgraded to the BS2px I began having trouble getting back incorect measurements. I did change the pauses in the Pulsout command to accomidate for the difference in procecsor i thought.

ie

BS2 and pe

· ·Pulsout 12, 5
·· Pulsin 12, 1

BS2px

·· Pulsout 12, 13
·· Pulsin 12, 1

Any idea what is the deal?

Thanks

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-05-23 04:07
    The Basic Stamp BS2px Brief (www.parallax.com/Portals/0/Downloads/docs/prod/stamps/BASICStamp2px.pdf) goes into detail on the differences between the BS2px and the other Stamps. As you mentioned, the timing parameters are different between the Stamp models. Other than that, the PING should work fine with either one.
  • ToolsTools Posts: 6
    edited 2008-05-23 04:18
    I did look into that and noticed the difference in the durations, Taking into this account that is why the pulsout command has the 13 for the duration. I played with other values for the durations but still get inaccurate measurements. Is there something else that i am not seeing in the pdf that you sent the link for?
  • Mike GreenMike Green Posts: 23,101
    edited 2008-05-23 04:40
    Of course, the PULSIN statements have 3 parameters with the 3rd being the variable that holds the width of the received pulse. This value also depends on which model Stamp you're using. Keep in mind that the values received from the PING))) depend somewhat on the environment and the materials on the walls and the objects being detected. This is a result of ultrasound being used and the reflectivity and absorption variability of different materials.
  • jmsiinojmsiino Posts: 7
    edited 2008-06-05 18:52
    I'm using the BS2pe24 Mother Board and I am not able to get it to work.
    I got a BS2 to work fine.

    What is the right combination of timings to make it work?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-06-05 20:07
    On the Motherboard only the I/O pins that are shared with the Co-Processors can be used for the PING))) Module. The others have inline resistors with a pull-up with will not allow the PING))) to operate properly.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • jmsiinojmsiino Posts: 7
    edited 2008-06-05 21:08
    Thanks Chris, that worked!

    BTW is there a work around to use the other pins? I'm starting to run out of pins.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-06-05 22:31
    I'm sorry, but none that I know of. The resistors on the board are where the conflict is. However Phil may chime in with something else.· I think the thread got hijacked though, so it go unseen because of the subject.· That's why it is a good idea to start a new thread for a subject unrelated to the current thread.· =)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.