Devices & Components
Arduino Uno Rev3
Electronic component (ex. Led, buzzer, mini vibrating motor)
3D printed snap support
12x6mm magnets
Jumper wires (generic)
Crocodile cables
Software & Tools
Blynk
Project description
Code
Blynk - Arduino IDE
c_cpp
1/* Comment this out to disable prints and save space */ 2#define BLYNK_PRINT Serial 3 4 5#include <WiFi.h> 6#include <WiFiClient.h> 7#include <BlynkSimpleEsp32.h> 8 9// You should get Auth Token in the Blynk App. 10// Go to the Project Settings (nut icon). 11char auth[] = "YourAuthToken"; 12 13// Your WiFi credentials. 14// Set password to "" for open networks. 15char ssid[] = "YourNetworkName"; 16char pass[] = "YourPassword"; 17 18void setup() 19{ 20 // Debug console 21 Serial.begin(9600); 22 23 Blynk.begin(auth, ssid, pass); 24 // You can also specify server: 25 //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80); 26 //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080); 27} 28 29void loop() 30{ 31 Blynk.run(); 32 // You can inject your own code or combine it with other sketches. 33 // Check other examples on how to communicate with Blynk. Remember 34 // to avoid delay() function! 35} 36
Comments
Only logged in users can leave comments