Hey,
I was wondering if anyone has code or knows how to code for this sensor hvwtech.com/products_view.asp?ProductID=91
I have used it with the Basic Stamp successfully before, but i am using it with my Basic ATOM PRO now and am lost on how to doe for it. I just need to know how to get it to tell me the distance and i can easily do the rest from there. the code i was using for the Basic Stamp 2 was:
Code for use with a Basic Stamp II:
‘********************************************
'This software is used with the DIRRS Plus when it is configured
'for SERIAL HEX mode. The DIRRS Plus transmits by TTL level
'RS-232 (8Bits, No Parity, 1StopBit) at 4800 bps.
'Measurements are transmitted every 5 milliseconds approximately.
'********************************************
DIST VAR WORD
datain CON 0 ‘Pin 0 of microcontroller
START
Serin datain,188,[wait(%10101010),DIST]
Debug dec dist, cr
Pause 2
Goto START
Thanks for any help!