Sale!

Waterproof Ultrasonic Module JSN – SR04T

Original price was: 14,99 €.Current price is: 10,86 €. Excluding VAT

The JSN-SR04T waterproof ultrasonic module is perfect for distance and proximity projects in extreme conditions. It is used to avoid obstacles and measure water in control systems.

1 in stock (can be backordered)

Domande su questo prodotto? Scrivi a Lana su WhatsApp

🎬 The product on video

Description

What it is

The JSN-SR04T waterproof ultrasonic module is a device used to measure distance in extreme environments, such as wet or submerged conditions. It is designed for applications requiring accurate obstacle detection and distance monitoring.

Features

  • Allows distance measurement in extreme conditions, such as wet or submerged environments;
  • Ideally suited for obstacle detection and distance monitoring projects.

What it is for

The JSN-SR04T module can be used in various projects, such as building a door or window alarm system. It is compatible with Arduino and similar microcontrollers.

Tutorial: How to use JSN-SR04T

The JSN-SR04T waterproof ultrasonic module measures distance with precision, ideal for obstacle detection and distance monitoring projects.

What you need

  • JSN-SR04T
  • Arduino
  • 10kΩ resistor
  • Power cable

Steps

  1. 1. Connect the VCC of the module to the 5V of Arduino.
  2. 2. Connect the GND of the module to the GND of Arduino.
  3. 3. Connect the TRIG of the module to a digital pin of Arduino (e.g., D2).
  4. 4. Connect the ECHO of the module to a digital pin of Arduino (e.g., D3).
  5. 5. Connect a 10kΩ resistor between ECHO and GND.
  6. 6. Load the minimal sketch to test the module.
  7. 7. Check the datasheet for further details.
  8. 8. Try to measure the distance of an object.

Example code

```
#include <Arduino.h>

const int trigPin = 2;
const int echoPin = 3;

void setup() {
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
}

void loop() {
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  long duration = pulseIn(echoPin, HIGH);
  float distance = duration * 0.034 / 2;
  Serial.println(distance);
  delay(500);
}
```

Mini project

Build a door alarm system using the JSN-SR04T and an Arduino.

Common mistakes

  • Connect ECHO to VCC instead of GND.
  • Forget to add the resistor between ECHO and GND.
  • Use an analog pin for ECHO.
  • Do not use delayMicroseconds to generate the signal on TRIG.

Recommended accessories

  • Arduino UNO
  • 16×2 LCD Display
  • Buzzer
  • 220Ω resistor

Frequently asked questions

How can I verify if the module is working?
Run the provided sketch and check if you receive correct distance values.

Which Arduino pins can I use for TRIG and ECHO?
You can use any digital pin as TRIG and ECHO.

Does the module work with Arduino Nano?
Yes, but make sure that VCC is 5V.

Reviews

There are no reviews yet.

Be the first to review “Waterproof Ultrasonic Module JSN – SR04T”

Your email address will not be published. Required fields are marked *