Need Help w/ Polaroid 6500 sonar to BS2?
Archiver
Posts: 46,084
Anyone with information attaching the sonar device to the BS2...
I want to make sure that my curcuit is correct. I have attached as
follows from the 9-pin connection of the sonar to the BS2... Pin-1
to Gnd-23, Pin-9(+5) to Pin 20 (+5), Pin-7(Echo) to Pin-15, and
Pin-4 (Init) to Pin-14. Stamp and programming seem to be
working fine yet my debug readings are constant...
22,22,22,22,403... repeat. If you have any knowlegde or
experience it would be much appreciated.
MH
I want to make sure that my curcuit is correct. I have attached as
follows from the 9-pin connection of the sonar to the BS2... Pin-1
to Gnd-23, Pin-9(+5) to Pin 20 (+5), Pin-7(Echo) to Pin-15, and
Pin-4 (Init) to Pin-14. Stamp and programming seem to be
working fine yet my debug readings are constant...
22,22,22,22,403... repeat. If you have any knowlegde or
experience it would be much appreciated.
MH
Comments
>Anyone with information attaching the sonar device to the BS2...
>I want to make sure that my curcuit is correct. I have attached as
>follows from the 9-pin connection of the sonar to the BS2... Pin-1
>to Gnd-23, Pin-9(+5) to Pin 20 (+5), Pin-7(Echo) to Pin-15, and
>Pin-4 (Init) to Pin-14. Stamp and programming seem to be
>working fine yet my debug readings are constant...
>22,22,22,22,403... repeat. If you have any knowlegde or
>experience it would be much appreciated.
>
>MH
MH -
A copy of your program would be most helpful in diagnosing the problem.
Please send it as
in-line text, as this list does not permit attachments.
Regards,
Bruce Bates
Ml
TIMEOFFLIGHT var word
DISTANCE var word
ECHO con 15
INIT con 14
SETTLETIME con 1
CYCLE_DELAY con 300
loop:
high INIT
pause SETTLETIME
rctime ECHO, 0, TIMEOFFLIGHT
gosub ECHORECEIVED
low INIT
pause CYCLE_DELAY
goto loop:
ECHORECEIVED:
DISTANCE + TIMEOFFLIGHT * 7 / 200 +22
debug dec? DISTANCE
return
--- In basicstamps@y..., Bruce Bates <bvbates@u...> wrote:
> At 05:19 AM 4/12/2002 +0000, you wrote:
> >Anyone with information attaching the sonar device to the BS2...
> >I want to make sure that my curcuit is correct. I have attached as
> >follows from the 9-pin connection of the sonar to the BS2... Pin-1
> >to Gnd-23, Pin-9(+5) to Pin 20 (+5), Pin-7(Echo) to Pin-15, and
> >Pin-4 (Init) to Pin-14. Stamp and programming seem to be
> >working fine yet my debug readings are constant...
> >22,22,22,22,403... repeat. If you have any knowlegde or
> >experience it would be much appreciated.
> >
> >MH
> MH -
>
> A copy of your program would be most helpful in diagnosing the
problem.
> Please send it as
> in-line text, as this list does not permit attachments.
>
> Regards,
>
> Bruce Bates