Control LED using Blynk 2.0/Blynk IOT using Simple Program | Blynk 2.0 Projects | Node MCU Projects
HTML-код
- Опубликовано: 2 окт 2024
- Control LED using Blynk 2.0/Blynk IOT using Simple Program | Blynk 2.0 Projects | Node MCU Projects | Blynk 2.0 Projects
Required Components
==================
1. ESP8266
2. LED
3. Connecting Cable
4. Connecting Wires
Components Link
===============
1. ESP8266 - www.electronic...
2. LED - www.electronic...
3. Connecting Wires
Software Required
===============
1. Arduino IDE - www.arduino.cc...
2. Programming Language - C Language
Source Code
===========
github.com/Tec...
Reference Video of Arduino Experiments
======================================
1. Temperature and Humidity Monitor using Arduino IOT Cloud and ESP8266
• Temperature and Humidi...
2. How to Display Current Date and Time in LCD
• How to Display Current...
3. Top 10 Arduino GSM module projects
• Top 10 Arduino GSM mod...
4. How to interface MPU6050 Accelerometer and Gyroscope Sensor with Arduino Nano
• How to interface MPU60...
5. How to store Temperature data in Google Spreadsheet
• How to store Temperatu...
6. How to Display Temperature, Pressure, Altitude Display in LCD
• Temperature, Pressure,...
7. Rain Alert Call and SMS in Mobile using GSM SIM 800 Module | Arduino Projects
• Rain Alert Call and SM...
8. Live Streaming using ESP32 CAM and Blynk App
• Live Streaming using E...
9. How to store temperature data in SD card | Arduino Projects
• How to store temperatu...
10. Object Detection Alert Call and SMS in Mobile using GSM SIM 800 Module | Arduino Projects
• Object Detection Alert...
11. Distance Measurement in OLED Display
• Distance Measurement i...
12. ESP32 Cam Setup | Face Detection | WiFi Camera
• ESP32 Cam Setup | Face...
13. Temperature Display in OLED | Arduino Projects
• Temperature Display in...
14. How to get the Temperature Alert Call and SMS in Mobile using GSM SIM 800 Module | Arduino Projects
• How to get the Tempera...
15. How to get the Theft Alert Call and SMS in Mobile using GSM SIM 800 Module | Arduino Projects
• How to get the Theft A...
16. How to get Gas Leakage Alert Call and SMS | Arduino Projects
• How to get Gas Leakage...
17. How to get Fire Alert Call and SMS in Mobile
• How to get Fire Alert ...
18. Control LED by Phone Call
• How to Control LED by ...
19. How To Receive SMS in GSM Module and Send Automatic Response
• How To Receive SMS in ...
20. How to send SMS from GSM Module to Mobile
• How to Send SMS from G...
Music: www.bensound.com
♥ Facebook: / techtrendsshameer
♥ Instagram: / tech_trends_shameer
Thanks sir, I've been looking for 3 days for a simple walk through like this. All others were either legacy Blynk or had links to codes that were never obtainable...... so frustrating. Mine didn't work at first but I had accidently chose INTEGER instead of DIGITAL for my control. Also to newbs, make sure your add your wifi creds and pw's to code. Thanks again this is great.
Thank you so much Bro.
Thanks bro, but wat happen if the project is successful ,,am i going to be continuing paying the blynk app after the pay period expired?
@@justicemkandawire9211 the blynk app has a free version that’s more than enough for a semi serious hobbyist. 2 devices and 30 functions each I believe.
Very Good🤗
Great! Can it be controlled form anywhere in the world?
Yes
I keep getting this error when I try to upload program :A fatal esptool.py error occurred: Timed out waiting for packet header
THANKS, WORKING CODE
Welcome 👍
What is the cost of node mcu ???
Around 250 rs.
It works in my first attempt
That's Great. Good to Know. Thank you.
Keep Supporting.
@@TechTrendsShameer can you help me in project. My project is smart dustbin.
In which I'm using ultra sonic sensor to get notification by blynk app when my dustbin is full.
I am facing problem to get the notification on my blynk app.
Please help me.
And thank you ☺️ for my help
Can you send me your program?
Also which version of blynk you are using ? Blynk Legacy or Blynk iot?
@@TechTrendsShameer
#define BLYNK_PRINT Serial
#include
#include
const int trigger = 9;
const int echo = 10;
float duration;
int distance, percentage;
const int upper_limit = 5;
const int bottom_limit = 80;
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xSUtGHO53BQ3Wn8sVs2otaIehrdxodrB";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "vivo 1801";
char pass[] = "abhishek";
void setup()
{
Serial.begin(9600);
pinMode(trigger, OUTPUT);
pinMode(echo, INPUT);
digitalWrite(trigger, LOW);
Blynk.begin(auth, ssid, pass);
}
void sensor()
{
digitalWrite(trigger, HIGH);
delayMicroseconds(10);
digitalWrite(trigger, LOW);
duration = pulseIn(echo, HIGH);
distance = duration * 0.017;
percentage= ((bottom_limit - distance)/(bottom_limit - upper_limit))*100;
//Actually percentage = (((bottom_limit - upper_limit)- (distance - upper_limit))/(bottom_limit - upper_limit)))*100;
}
BLYNK_READ(V5){
Blynk.virtualWrite(V5, percentage);
}
void loop()
{
sensor();
Blynk.run();
BLYNK_READ(V5);
}
This is my code .
And here I am using blynk iot app.
Please help☺️
First view.
Thanks Bro
Sir code problem ha plz aap code paste kardona 🤧🤧 discription par code paste kardona to mehar bani hogi sir kyuki kl checking ha
great video !!..I was doing the same project but I used an arduino mkr wifi 1010 instead of esp ...arduino mkr wifi is an arduino with wifi capabiilities.. You're instructions were very clear and I was able to finish the project and it all worked out
Great 👍Whether the code is same for Arduino MKR Wifi?
Please share the details. I will also give a try.
Sir aap se koi help mil sakta hai
Yes
Hello sir!!! device is showing online but led is not getting on😢
Check Auth code and wifi credentials are correct
It works on my 1st attempt.
I used ESP8266 Wemos D1
LED - (D9) + (3.3v)
Great
When I copy pasted this I got an error on this line - #include 😢
Hi, which version of ESP2866 works in Adruino?
Try Arduino 1.8 or 2.
I did not get which programme u were talking
Check video description for the code.
hey why my device still offline
Check WiFi connection and auth token
You found any solution? I’m in the same situation
How we connect more than one led
I was trying to connect through D5
Select digital pin 1 in blynk it's not working
Did you tried with 1 LED? If not please try with that. Once you get the output, I will tell you the modifications in the code for 5 LEDs.
@@TechTrendsShameer i did tried with 1 LED and it worked! pls do more than 1 LED
After Wifi Connection add these lines in the code
int ledpin = D4;
int ledpin = D1;
int ledpin = D2;
int ledpin = D3;
int ledpin = D5;
Then Connect LED 1 to D4, LED 2 to D1, LED 3 to D2, LED 4 to D5, LED 5 to D6
IN Blynk Datastream, select the variable as 2, 5, 4, 0, 14
Sir can i use 3 LEDs instead of 1 LED
If yes please tell me how to connect 3 LEDs
Is there any use of resistors
@3.44 mins, you are saying copy code and upload program, where and how to upload the program?
Check video description for the code.
Will it work from anywhere in the world?
Yes.
awesome sir . Its working
Thank you 😊
thank you
You're welcome
Which platform to run the code
Arduino IDE.
It works... Thank you soo much sir
Welcome 👍. Please subscribe and follow instagram 😊
Sir when we code is uploading and y sir don't show in online our device
The device will show online once the code is completed uploading.
Please check the template ID, device id and auth token are correct. Also make sure the wifi credentials are correct.
If you are still facing issues, please contact me on instagram
instagram.com/tech_trends_shameer
@@susmithak8574 I didn't understand the doubt clearly. Can you please connect me in instagram
instagram.com/tech_trends_shameer
2 MEANS D4, PLEASE SEND ME WHAT ABOUT D5 AND D6
1 -> D5
2 -> D4
3 -> D0
4 -> D2
5 -> D14
6 -> D12
You didn’t explain the code
where we get the program
Check video description.
Bro i need the source code Google drive not working
Check this please
github.com/Tech-Trends-Shameer/Esp-8266-Projects/tree/main/Control-LED-Using-Blynk-IOT
@@TechTrendsShameer working 🤗♥️
Can we use more than one led
Yes. You can use more than 1 LED.
Where did you learn coding? What are resources you have?
Please connect me in Instagram
@@TechTrendsShameer Don't have insta. What to do then?
shameer50@gmail.com
Sir mera blynk switch thoda late work kr rha hai on off hone me kch secs lgta hai
maya doola dirachav ne tho mamulga vundadhu thop nuvu
why my blynk.run(); it says does not declare in the scope
Are you using blynk updated version?
Sir how to change the device offline into online sir
The led is not connecting to blynk and the led is glowing automatically
Please let me know which pin you connected in ESP8266 board and which pin you mentioned in Blynk -> Datastream.
same problem
El único vídeo que me sirvió, good work 🤙
Thank you 😊
there something wrong with your code
Please let me know what's wrong in the code
@@TechTrendsShameer idk, but it wont work, did you recheck your code? Loop is empty
@@TechTrendsShameer nvm, i found it, in your code ledpin d14, but your blynk use d2. Im conversing your code to esp32, at first it wont work. But after change digital pin on blynk, now it worked. Thanks
I think you checked the code from the video. You will not able to see the full code in the video screen. Please check the video description for the complete source code.
I use ESP 8266 in this project. If you are using other boards or selected other pins, please modify the program.
invalid auth code, please help
The auth code will be generated during setup. My code will not work for you. Please follow the steps and generate your own code.
it says d4 not declared in scope... time waste
How many hours you wasted ?
@@TechTrendsShameer sir i am getting same error pls help
C:\Users\sanja\AppData\Local\Temp\.arduinoIDE-unsaved2022917-1652-1lgzl4z.blme\sketch_oct17a\sketch_oct17a.ino:18:14: error: 'D4' was not declared in this scope; did you mean 'V4'?
18 | int ledpin = D4;
| ^~
| V4
Multiple libraries were found for "BlynkSimpleEsp8266.h"
Used: C:\Users\sanja\OneDrive\Documents\Arduino\libraries\Blynk
Not used: C:\Users\sanja\OneDrive\Documents\Arduino\libraries\blynk-library-master
exit status 1
Compilation error: 'D4' was not declared in this scope; did you mean 'V4'?
Hi i get error on code #include for this line
you should setup the esp8266 in arduino ide