newplumber
Senior Member
Hi to whoever can read
Lately I ordered a UltraSonic JSN-SR04T from amazon because of faster shipping (because china uses solar canoes) and I wanted to use it to gauge the level of our diesel fuel tank since its water proof etc
and after looking all over the forums here I couldn't comprehend how to make it work I kept getting weird numbers and I used the code like
pulsout c.1,2
pulsin c.2,1,w1
If I didn't add a setfreq and running a picaxe20m2 it should be 4mhz I would see debug w1 = 0
If I added setfreq m8 I would see same w1 = 0
when I put setfreq m16 I would see w1 = 1300 to 2800
same as putting setfreq m32 w1 would be all over the place
After I studied my breadboard and made sure +5 to 5+ grd to grd echo to pin c.2 etc and ate more Tylenol
I tried this code
setfreq m16
high c.1
pause 20
low c.1
pulsin c.2,1,w1
and every stablized and was able to get good readings well they would jump like 2200 to 2203 at a wall
Of course I don't understand what i did but somehow the sensor works till about 8 inches away any closer and
the thing starts acting like my first program with out the smoke
I also blah blah but read somewhere it is not possible to read this because it need 40mhz i think from some googled forum
I tried it to read my fuel level but not stable so I will use a float with a slide pot instead
I know you picaxe wizards could make it read better but I'm just happy it kinda works
OBTW westy and others if u read this lol NO SCHEMATIC!!! cause im a newbie or ahhh umm a OLD NEWBIE!!
but what i am talking about is
http://www.ebay.com/itm/USA-Ultrasonic-Module-Distance-Measuring-Transducer-Sensor-Perfect-Waterproof-/301979143628?hash=item464f5c0dcc:g:ZC0AAOSwvg9XWDQY
your last friend
Lately I ordered a UltraSonic JSN-SR04T from amazon because of faster shipping (because china uses solar canoes) and I wanted to use it to gauge the level of our diesel fuel tank since its water proof etc
and after looking all over the forums here I couldn't comprehend how to make it work I kept getting weird numbers and I used the code like
pulsout c.1,2
pulsin c.2,1,w1
If I didn't add a setfreq and running a picaxe20m2 it should be 4mhz I would see debug w1 = 0
If I added setfreq m8 I would see same w1 = 0
when I put setfreq m16 I would see w1 = 1300 to 2800
same as putting setfreq m32 w1 would be all over the place
After I studied my breadboard and made sure +5 to 5+ grd to grd echo to pin c.2 etc and ate more Tylenol
I tried this code
setfreq m16
high c.1
pause 20
low c.1
pulsin c.2,1,w1
and every stablized and was able to get good readings well they would jump like 2200 to 2203 at a wall
Of course I don't understand what i did but somehow the sensor works till about 8 inches away any closer and
the thing starts acting like my first program with out the smoke
I also blah blah but read somewhere it is not possible to read this because it need 40mhz i think from some googled forum
I tried it to read my fuel level but not stable so I will use a float with a slide pot instead
I know you picaxe wizards could make it read better but I'm just happy it kinda works
OBTW westy and others if u read this lol NO SCHEMATIC!!! cause im a newbie or ahhh umm a OLD NEWBIE!!
but what i am talking about is
http://www.ebay.com/itm/USA-Ultrasonic-Module-Distance-Measuring-Transducer-Sensor-Perfect-Waterproof-/301979143628?hash=item464f5c0dcc:g:ZC0AAOSwvg9XWDQY
your last friend