Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Play Audio Sound With Esp8266 With Blink App
Just Do Electronics
February 26, 2021
Circuit Diagram :-
Code :-
//Prateek //www.prateeks.in #define BLYNK_PRINT Serial #include
#include
#include
#include "SoftwareSerial.h" #include "DFRobotDFPlayerMini.h" SoftwareSerial mySoftwareSerial(D2, D1); DFRobotDFPlayerMini myDFPlayer; void printDetail(uint8_t type, int value); Servo servo; char auth[] = "9n7ltTcHipDpvcSl3ZpTknygbHV5FIuA"; char ssid[] = "JustDo"; char pass[] = "par12345"; void setup() { Serial.begin(9600); mySoftwareSerial.begin(9600); Blynk.begin(auth, ssid, pass); servo.attach(15); // NodeMCU D8 pin Blynk.begin(auth, ssid, pass); Serial.println(); Serial.println(F("Initializing DFPlayer...")); //Use softwareSerial to communicate with MP3 if (!myDFPlayer.begin(mySoftwareSerial)) { Serial.println(F("Unable to begin:")); Serial.println(F("1.Please recheck the connection!")); Serial.println(F("2.Please insert the SD card!")); while(true); } Serial.println(F("DFPlayer Mini online.")); //Set volume value (From 0 to 30) myDFPlayer.volume(30); } void loop() { Blynk.run(); } BLYNK_WRITE(V1) { servo.write(param.asInt()); } BLYNK_WRITE(V2) { servo.write(0); myDFPlayer.play(1); } BLYNK_WRITE(V3) { servo.write(10); myDFPlayer.play(2); } BLYNK_WRITE(V4) { servo.write(20); myDFPlayer.play(3); } BLYNK_WRITE(V5) { servo.write(30); myDFPlayer.play(4); } BLYNK_WRITE(V6) { servo.write(40); myDFPlayer.play(5); } BLYNK_WRITE(V7) { servo.write(50); myDFPlayer.play(6); } BLYNK_WRITE(V8) { servo.write(60); myDFPlayer.play(7); } BLYNK_WRITE(V9) { servo.write(70); myDFPlayer.play(8); } BLYNK_WRITE(V10) { servo.write(80); myDFPlayer.play(9); } BLYNK_WRITE(V11) { servo.write(90); myDFPlayer.play(10); } BLYNK_WRITE(V12) { servo.write(100); myDFPlayer.play(11); } BLYNK_WRITE(V13) { servo.write(110); myDFPlayer.play(12); }
0 Comments
Newer
Older
ESP32 Interfacing With LDR Sensor
How To Make RFID & Keypad Based Door Lock
Ultrasonic Sensor as a Counter with Arduino
IoT Based Patient Health Monitoring System Using Blynk App
How to Make Gas Leak Detector & Auto Exhaust Fan Using Arduino
MLX90614 Non-Contact Infrared Thermometer With Arduino
Measure CO2 Level in Air Using Arduino
Esp32 Cam Based Face Unlock
ESP32 Led Blink With Push Button
Smart Street Light Using Arduino
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
0 Comments