Interfacing Waterproof Ultrasonic Sensor JSN-SR04TAJ-SR04M with Arduino

preview_player
Показать описание
This tutorial is about the Interfacing of Waterproof Ultrasonic Sensor JSN-SR04T/AJ-SR04M with Arduino & SSD1306 OLED Display to display Water Levels.
This project is about Waterproof Ultrasonic Sensor with Arduino to Measure Water Level.
***************************************
Get 1-2 Layer PCBs only at $5
Build Time: Only 24 hour
***************************************
#arduino #JSNSR04T #AJSR04M #ultrasonicsensor #MeasureWaterLevel #oled #arduinonano #HCSR04
**************Download Section*************************
► Interfacing Waterproof Ultrasonic Sensor JSN-SR04T/AJ-SR04M with Arduino
***************************************
---------- More Projects----------------------------------
► Audio/Music Spectrum Visualizer Using Arduino & Dot Matrix Display

► Smart Notice Board with ESP8266 & Dot Matrix LED Display

► IoT Based Temperature Control & Monitoring System using ESP8266 & Blynk 2.0 with Operating Modes

► Relay Control with Arduino & DWIN HMI Display

► IoT Energy Meter using INA219 Sensor ESP8266 & Blynk 2.0
--------------------------------------------
#blynkiot #iotprojects #iotprojectsideas
--------------------------------------------
Interfacing Waterproof Ultrasonic Sensor JSN-SR04T/AJ-SR04M with Arduino

------------Time Stamps-----------
0:00 Overview: Overview: Ultrasonic Sensor JSN-SR04T with Arduino
0: 33 Components Required
1:20 Why to use JSN-SR04T/AJ-SR04M Waterproof Ultrasonic Sensor?
2:03 Interfacing JSN-SR04T Ultrasonic Sensor with Arduino
2:35 Project PCB Gerber File & PCB Ordering Online
3:13 Arduino Code/program
4:15 Testing & Demo: Ultrasonic Sensor JSN-SR04T with Arduino
5:26 Conclusion
--------------------------------------------
Components Purchase Links: Waterproof Ultrasonic Sensor with Arduino to Measure Water Level
--------------------------------------------
Buy from Amazon:

Buy from AliExpress:
--------------------------------------------
***********************
Follow us on Social Media:
************************
Please Subscribe to this Channel and Never Miss any Future Projects

Thank You for Watching
Комментарии
Автор

please i need some help with the dwin hmi project 🙏 😢...i already have a project water level indicator and controller displays parameters on 0.96' oled using esp32..i want to display the same parameters on dwin hmi i can make UI and everything else now how can i display this data on dwin...will this code work
#include <HardwareSerial.h>

// Define the RX and TX pins for the Serial2 connection
#define RXD2 16
#define TXD2 17

// Initialize Serial2 for DWIN display
HardwareSerial mySerial(2);

void setup() {
// Initialize the default Serial monitor for debugging
Serial.begin(115200);

// Initialize Serial2 for DWIN display communication
mySerial.begin(115200, SERIAL_8N1, RXD2, TXD2);
}

void loop() {
// Simulate reading the water level; replace with actual sensor code
int waterLevel = getWaterLevel();

// Send the water level to the DWIN display


// Delay for 1 second before sending the next value
delay(1000);
}

// Function to simulate reading the water level sensor
int getWaterLevel() {
// Replace with actual code to read the sensor value
return analogRead(34); // Example analog pin for water level sensor
}

// Function to send water level data to the DWIN display
void sendWaterLevelToDWIN(int level) {
// Format the command according to DWIN's protocol
byte command[] = {0x5A, 0xA5, 0x05, 0x82, 0x00, 0x10, (byte)(level >> 8), (byte)(level & 0xFF)};

// Send the command to the DWIN display
mySerial.write(command, sizeof(command));
}

raystonrizwan