Lab # 6 - IoT With Nodemcu ESP8266 | HC-SR04 Ultrasonic Sensor (Urdu/Hindi)
ฝัง
- เผยแพร่เมื่อ 1 เม.ย. 2020
- Internet of Things implementation using Nodemcu (Esp8266), Lab 6, that enables students to HC-SR04 Ultrasonic sonar Sensor with Nodemcu.
For detailed overview and code, visit mindstormengg.com/nodemcu-esp...
For online courses, click on this link: docs.google.com/forms/d/1kSnx...
You can also visit our Facebook Page: / emindstorm
Subscribe to our TH-cam channel and stay updated.
For any further query, email us at support@mindstormengg.com
Good explanation about ultrasonic sensor.Keep it up sis.
Thank you so much mam... it's really awesome
Thank you mam that was helpful.
Thanks for the video.
nice work.. I don't speak hindi but I managed to get it to work ty
The video uses NodeMCU D4, D5 pins but the tutorial web page uses D5, D6.
gracias
thanks madam
I dont understand. Even when I follow everything you did step by step including code, The outcome is just "..........." in the serial monitor. Thingspeak does not record anything and nothing happens after it finished uploading the code into the nodemcu.
Thanks a lot. It works for me.
code please
Send your code , siridirock@gmail.com
@@gurramrishitha
#define trigPin 9
#define echoPin 10
void setup() {
Serial.begin (9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
}
void loop() {
float duration, distance;
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration / 2) * 0.0344;
if (distance >= 400 || distance
#define trigPin 9
#define echoPin 10
void setup() {
Serial.begin (9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
}
void loop() {
float duration, distance;
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration / 2) * 0.0344;
if (distance >= 400 || distance
Did you make hardware changes on ultrasonic sensor to work with 3.3v? Normally it is 5v and the chances of damaging node mcu is very high and node mcu is 3.3V gpio
The unit seems to be HC-SR04, the HC-SR04P will run on 3.3V-5V.
I am getting only 0 distancr mam
i m getting error msg -- 'D5' was not declared in this scope
A fatal esptool.py error occurred: Failed to connect to ESP8266: Timed out waiting for packet header
Aap kaha se ho
hello guys , i will measure wireless pulse input and pulse output pulses , what is the sensor to measure gas or water pulses and others components to create the pcb of block diagram and i will connected with esp8266
'D5' was not declared in this scope
is tha Serial port (9600)
Llooking for a freelancer (from India) to connect ultrasonic sensor as well as DHT22 (humidity and temperature) sensor with Nodemcu ESP8266 and send data of both these sensors to firebase realtime database. I can pay reasonable amount for it.
I can do it
@@arpitjindal3439 Thanks for your reply. I already connected these things and working successfully. Now I want to interface Sim800L + ESP8266 to send data on Firebase. Can you connect Sim800L with ESP8266 to send sensor data to firebase (without wifi)
Picture trige pin is D5 but code trige pin is D4 🤨
Anyway i fix it
Ma'am maine same project banaya but ye work nhi kr rha h😢
I did the same but doesnt work, only print 0
Did you supply 3V or 5V?? It must be 5V.
the same issue I faced you solved or not?
@@prasthanrai4043 5v still 0
I did the same but prints 0 . Can any one help me ??
Did you supply 3V or 5V?? It must be 5V.
@@prasthanrai4043 ok thank you for ur reply
@@prasthanrai4043 how do u do that?
@@prasthanrai4043 Thanks Brother
Fake
only prints 0
Did you supply 3V or 5V?? It must be 5V.
Use P module as it can work on 3.3 v