Shop OBEX P1 Docs P2 Docs Learn Events
The JSN - SR04T is compatible with the basic stamp homework ? — Parallax Forums

The JSN - SR04T is compatible with the basic stamp homework ?

Hey there

I'm experimenting with JSN - SR04T and BASIC Stamp Homework module , this is my code

' {$STAMP BS2}
' {$PBASIC 2.5}

trig PIN 14
echo PIN 15

'*******************************

tiempo VAR Word
cm VAR Word
cm_max CON 20000
fuera_tiempo CON 0
'*******************************

DO

IF echo = 0 THEN

PULSOUT trig,5
PULSIN echo,1,tiempo

cm = tiempo/29

'IF cm <= cm_max THEN tiempo = fuera_tiempo

ENDIF

DEBUG HOME, "time = ", DEC5 tiempo, CR
DEBUG ? cm
PAUSE 50


LOOP


I have probrado with HC SR04 and works very well , but when tested sim with JSN - SR04T fails, the module is unable to send any signal ultrasound.
there I have my question if this module supports basic stamp ?

Excuse my bad English


Postscript ; this is the image module

[img][/img]SRF04T%20Waterproop-300x300.JPG

Comments

Sign In or Register to comment.