Shop OBEX P1 Docs P2 Docs Learn Events
polaroid 6500 problems — Parallax Forums

polaroid 6500 problems

ArchiverArchiver Posts: 46,084
edited 2001-11-25 08:05 in General Discussion
I am having problems using a Polaroid 6500 sonar with my bsII.

about six months ago I bought 2 oem 6500's, I hooked one of them up to my
stamp with a suitable cap across v+ and gnd and loaded a program from arrick
robotics (www.robotics.com) after making the appropriate pin assignments
changes. I worked for a minuet or so then stopped. the sonar still pings but the
stamp doesn't record the elapsed time.

I put it aside until now, I changed out to the other transducer and driver,
but still now echo, I poked around with my o-scope and figured out that I needed
a pull-up resistor on echo line, that got me a nice square echo signal but the
stamp still doesn't see it.

thankyou for your time,
Lincoln

my setup is:
one bsII and 6500 powered by a 5v 3amp supply, the 6500 has a 1000uF al
electrolytic cap across v+ and gnd, I have check my wiring,

'sonar example program.
'http://www.robotics.com/arobot/

dist var word 'sonar distance

' sonar pins
init con 0 'yellow
binh con 1 'white
echo con 2 'blue

output init
output binh
input echo

' init

low init 'setup sonar
low binh


' main

test
gosub sonar 'ping sonar
debug dec ? dist 'print to serial port
pause 1000 'pause for 1 sec

goto test 'repeat

' subs

sonar
high init 'ping
pause 1 'pause for ringing
high binh 'raise inhibit

rctime echo,0,dist 'listen for echo

dist=dist/73+9 'dist is the nunber of inches
'the offset for ringing is 9 inches.
'sound travels 1 inch in 73us.
'rctime is in 2us units so no nead
' to divide for round trip

pause 40 'reset sonar
low init
low binh

return 'sonar

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-11-25 08:05
    At 02:42 AM 11/25/2001 -0500, you wrote:
    >I am having problems using a Polaroid 6500 sonar with my bsII.
    >
    > about six months ago I bought 2 oem 6500's, I hooked one of them up to
    > my stamp with a suitable cap across v+ and gnd and loaded a program from
    > arrick robotics (www.robotics.com) after making the appropriate pin
    > assignments changes. I worked for a minuet or so then stopped. the sonar
    > still pings but the stamp doesn't record the elapsed time.
    >
    > I put it aside until now, I changed out to the other transducer and
    > driver, but still now echo, I poked around with my o-scope and figured
    > out that I needed a pull-up resistor on echo line, that got me a nice
    > square echo signal but the stamp still doesn't see it.
    >
    >thankyou for your time,
    > Lincoln
    Hi Lincoln -

    At the moment, you have no way of knowing if the Stamp is being reset.
    Try placing DEBUG "Beginning Execution" at the start of the program.
    If you see that being displayed more than once, a reset is probably occurring.
    At that juncture I'd check my battery voltage during sonar operation.

    Regards,

    Bruce Bates
Sign In or Register to comment.