Shop OBEX P1 Docs P2 Docs Learn Events
ultrasonic circut and BS2 software — Parallax Forums

ultrasonic circut and BS2 software

robban35robban35 Posts: 32
edited 2012-05-29 06:58 in BASIC Stamp
hi

I wonder if it possible to use Pbasic programming for this project? See link below

http://www.micro-examples.com/public/microex-navig/doc/090-ultrasonic-ranger.html

if so?

how? example?

regards
robban

Comments

  • FranciscoTavaresFranciscoTavares Posts: 27
    edited 2012-05-29 03:34
    I think that is possible but it consumes a lot of resources from the detection software.
    A better option is to use a ultra sound module, like Parallax or some similiar to it.
    This moduled does all the difficult tasks and consumes almost no resources, just a few lines of code and just on I/O pin.
  • Mike GreenMike Green Posts: 23,101
    edited 2012-05-29 06:58
    I don't think the circuit you showed will work with PBasic without some additional circuitry on the receive side. In addition, PBasic isn't fast enough on the transmit side to directly generate the ultrasonic signal needed. You'd have to use the same trick used with IR remote controls where the Stamp produces a signal at 1/2 the frequency needed and the 2nd harmonic is what the remote responds to. In any event, as FranciscoTavares notes, you'll do much better with a complete module like the PING.
Sign In or Register to comment.