Problem with Arduino waterproof ultrasonic sensors,

Hey I am a student from Korea


I have a question about using Arduino.


I have been patching for few months, now knows how to handle basic problems with VVVV


Problem is, I bought a waterproof - ultrasonic sensor,


link : http://www.ebay.com/itm/1pc-New-Arduino-Ultrasonic-Module-Distance-Measuring-Transducer-Waterproof-/261903641199?hash=item3cfaac6a6f

-----------sensor information ------------

Electrical properties:

Electrical parameters: JSN-SR04T

Operating voltage: DC 5V

Quiescent current: 5mA

Total current work: 30mA

Acoustic emission frequency: 40khz

Farthest distance: 4.5m

Blind: 25cm

Wiring: + 5V (positive power supply)

Trig (control side) RX

Echo (the receiver) TX

GND (negative)

Module size: 41mm * 28.5mm

Resolution: about 0.5cm

Angle: less than 50 degrees

Working temperature: -10 ~ 70 ℃

Storage temperature: -20 ~ 80 ℃

Product Features:

1, small size, easy to use;

2, low voltage, low power consumption;

3, high accuracy;

4, strong anti-jamming;

5, integrated with wire enclosed waterproof probe, suitable for wet, harsh measurement occasions.

Application:

1, Horizontal distance;

2, obstacle avoidance, automatic control;

3, the object approaches, there is a perceived

4, traffic control;

5, security, industrial control;

6, artificial intelligence, and research

The basic working principle:

(1) using IO port TRIG trigger location, to the high level signal of at least 10us;

(2) module automatically sends 8 40KHz Fang Bo, automatic detecting whether a signal return;

(3) a signal return, a high level is output through the IO port ECHO, the time duration of the high level is

ultrasonic from launch to return. The test distance = (high level time * speed of sound (340M/S)) /2;

This module uses the simple method, a control port with a 10US above high level, can wait for high level

output at the receiving port. An output can drive the timer, when this port is low can read the timer value,

this time for the location of the time, can be calculated distance. So constantly cycle test, that can achieve

the measurement of the value of your mobile.

Package Included:
1X Ultrasonic Module Distance Measuring Transducer Sensor Perfect Waterproof


anyway, I have watch Wesbam’s Arduino -VVVV tutorial, but I have no idea how to make this work and

get incoming values.

please help!

hi,
to get this sensor working, use the following code and then adjust the arduino code to send you the measured value.


in vvvv you can receive the data send from arduino by serial.print with rs232 node. make sure the serial speed set in the node is same as in arduino code, ie. 9600bps.
check node tokenizer to parse the incoming value and use it in vvvv.
good luck!
andrej

A little help for the receiver:

arduino02

but you have to be careful with your protocol! You need to send a linebreak in arduino code so that the tokenizer in vvvv knows when one value has been transmitted properly, sometimes bullshit is transmitted ;).

plus, you can use AsValue in vvvv to get the value-part of your sensor.