SMART HOME USING GOOGLE ASSISTANT | BLYNK | ESP 32 | WIFI + BLUETOOTH
Get link
Facebook
X
Pinterest
Email
Other Apps
YOUTUBE -COMING SOON..
https://www.youtube.com/watch?v=LCNmMxvQVUM
CIRCUIT DIAGRAM
GOOGLE ASSISTANT CODE-UPLOADING SOON..SUSBCRIBE TO GET NOTIFIED
BLYNK-PROJECT CODE
/**************************************************************************************************************************** WiFi & BLE Control Home Automation using ESP32 and Blynk
Required Library: Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases BlynkESP32_BT_WF by Khoi Hoang https://github.com/khoih-prog/BlynkESP32_BT_WF- Pls install the old version Based on orignal code by Crosswalkersam https://community.blynk.cc/u/Crosswalkersam
The Sketch is Modified by Sayantan Pal https://github.com/palsayantan/12-ch-Ultimate-Home-Automation-using-ESP32
***************************************************************************************************************************** Important Notes: This code is intended to run on the ESP32 platform! Check your Tools->Board setting. And select ESP32 Dev Module To conmpile, use Partition Scheem with large APP size, such as -- Huge APP (3MB No OTA, 1MB SPIFFS)
****************************************************************************************************************************/ //modified by www.arvindunimap.com
// You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth_WiFi[] = "Your Blynk Wifi Token"; char auth_BLE[] = "Your Blynk Ble Token";
char BLE_Device_Name[] = "ESP32_WiFi_BLE";
// Your WiFi credentials. char ssid[] = "YourWifiName"; // Your Network SSID char pass[] = "YourWifiPassword"; // Your Network PASSWARD
//www.arvindunimap.com int RELAY[4] = {25,32,33,29}; // Define Output pins connected to Relay //int SWITCH[12] = {29, 22, 21, 19, 18, 5, 33, 32, 35, 34, 39, 36}; // Define Input pins connected to Switch int VPIN[4] = {V1, V2, V3, V4}; // Define Virtual pins assigned in the APP
bool RELAY_STATE[4] = {1, 1, 1, 1};
#define STATUS_LED 2 // Shows Network Status
BLYNK_WRITE(V1) { RELAY_STATE[0] = param.asInt(); digitalWrite(RELAY[0], RELAY_STATE[0]); } BLYNK_WRITE(V2) { int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable digitalWrite(RELAY[1], !pinValue); // process received value } BLYNK_WRITE(V3) { RELAY_STATE[0] = param.asInt(); digitalWrite(RELAY[2], RELAY_STATE[0]); } BLYNK_WRITE(V4) { RELAY_STATE[0] = param.asInt(); digitalWrite(RELAY[3], RELAY_STATE[0]); }
//this function will synchronize Relay States when any network/Hardware interruption occurs
BLYNK_CONNECTED() { //Uncomment this line if you want to follow app configurations //Blynk.syncAll();
//Uncomment this line if you want to follow Hardware configurations for (int i = 0; i < 4; i++) { if (Blynk.connected()) Blynk_WF.virtualWrite(VPIN[i], RELAY_STATE[i]); else Blynk_BLE.virtualWrite(VPIN[i], RELAY_STATE[i]); } }
// Checks Network connection status in every 10 seconds void Network_Checkup() { if (WiFi.status() != WL_CONNECTED) { WiFi.begin(ssid, pass); delay(10); } }
/*void AUTOMATE() { for (int i = 0; i < 4; i++) { // if (digitalRead(SWITCH[i]) == LOW) { // if (SWITCH_STATE[i] != LOW) { // RELAY_STATE[i] = !RELAY_STATE[i]; // digitalWrite(RELAY[i], RELAY_STATE[i]); if (Blynk.connected()) Blynk_WF.virtualWrite(VPIN[i], RELAY_STATE[i]); else Blynk_BLE.virtualWrite(VPIN[i], RELAY_STATE[i]);}*/
1.Search Blogger in Google Chrome and click on it. 2.After getting into the page click Create Blog button. 3.Choose your email account . 4.Enter your password. 5.Give a name for your blog and click Next. 6.Choose a url for your blog. 7.Type your name. 8.You can see the Processing starts. 9.Your blog is now created. 10.The next tutorial is creating your own post and adding it on your menu. 11.Subscribe to my blogspot to get the next tutorial link directly to your inbox. 12.Kindly message me at +60 1116271735 for free consultatition.Make sure you subscribe to my blogspot before any consultations .Thank you for reading... Check out my smart home projects built from RASPBERRY PI / ESP 32.You can get idea for your Final Year Projects.
1.Open your Blogger Dashboard and click Layout. 2.Click the plus icon in the Sidebar. 3.Select HTML/JavaScript. 4.Copy the code and insert your lab 1 link. Coding download link-click the link below. CODING-arvindunimap.blogspot.com *The file is password protected. *Subscribe to this blogspot and pm me to get the password. *Pm link- WHATSAPP LINK 5.Drag the block from the sidebar to page header. 6.You can see the submenus there. 7.Congrats you are done. 8.Subscribe to my blogspot to get the next tutorial link directly to your inbox. 9.Kindly message me at +60 1116271735 for free consultatition.Make sure you subscribe to my blogspot before any consultations .Thank you for reading... Check out my smart home projects built from RASPBERRY PI /ESP 32.You can get idea for your Final Year Projects.
1.Click the NEW POST button. 2.You can see the blank post. 3.Give title for your page and start writing your content.And to insert your image click the image symbol and click insert picture 4.Upload your picture from your pc. 5.Your image is now uploaded. 6.Left click on the image. 7.Select original for clear image view. 8.Click Publish and click confirm to publish. 9.Your post is now published. Now its time to add menu. Click the eye sumbol. 10.Copy the link. 11.Go to Blogger dashboard and select Layout 12.In that Layout, select the pen symbol on the pages block. 13.You can see the page settings. 14.Follow the steps below. 14.1.Click Show Pages. 14.2.Second give Title name which is MENU. 14.3.Third click External link. 15.Give name and paste the copied link and click save link. 16.Click save again. 17.You can the changes are saved.Click any of the view blog button. 18.You can see your homepage.The menu you created is there which is LAB 1. 19.After you click on LAB 1...
Comments
Post a Comment