Hello everyone, In this project I will show you How to make Esp8266 based IOT rader data logging sytem. Here this servo motor will rotate very slow because it needs a time to sends its every angle and distance data to cloud where the code was structured at those manner.So I have increased the speed of the video to show the rotation of servo motor. Also Everyone else asking me to How to inter face Ultrasonic sensor with Esp8266 or NodeMCU.
So all the error will be Cleared in this tutorial.
you can follow the tutorial from YouTube
and don't forget to Subscribe my channel😜
Componets
NodeMCU
UltraSonic Sensor
Servo Motor
jumper wires
Arduino UNO : to power up your UltraSonic Sensor
Circuit:
You can make Bussiness queries by using the business queries section. You can find that at the bottom of this page
- You can make queries related to place ads, product placement, and advertising
- make project queries related to DIY project section (college and school students for their projects)
Here I'm not use the buzzer and proccessing IDE to make the sound and visualize the data. In my previous tutorial I had shown that version by using Arduino IDE. Although you can implement it by using NodeMCU I have attached the coding with that.
Download the code
Nodemcu esp8266 12e works on 3.3 volts and its pins are also 3.3v TTL compatible. Where as ultrasonic sensor Hcsr04 works on 5 volts. We can not power Hcsr04 directly with nodemcu 3.3v power output pins.
I used Arduino's 5 volts pin which can output 5 volts. 5 volts side of power supply is supplying power to hcsr04.
Trigger and echo pins of hcsr04 ultrasonic sensor is directly connected to D1 and D2 pins of nodemcu
Trigger and echo pins of hcsr04 ultrasonic sensor is directly connected to D1 and D2 pins of nodemcu
Here I have used the Spread sheet which I have already been created for my previous tutorial that how to Post data to google spread sheet . you check that post for clarification.
when you finished all the wiring and cloud connection part make sure to upload the code to your board. When the process finished You could see the data which are printing on Google spread sheet but the Servo motor rotation is very slow to compare between my Previous tutorial. because here we want to enter the each and every angle from servo to cloud so that the gap is the problem for delay of servo's rotation. So let I give you the work that change the coding to increase the speed of Servo. if it will have worked done leave it into the comment box.
Hope you have liked this post and don't forget to share between each others.
No comments:
Post a Comment