EDUcentrum
Published © CC BY-NC-SA

Snap Circuits - Energy Saving

Fun way to introduce kids to circuitry and electronic prototyping and to explain them importance of energy saving!

BeginnerFull instructions provided554
Snap Circuits - Energy Saving

Things used in this project

Hardware components

12x6mm magnets
×2
Electronic component (ex. Led, buzzer, mini vibrating motor)
×1
3D printed snap support
×1
Arduino UNO
Arduino UNO
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Crocodile cables
×1

Software apps and online services

Blynk
Blynk

Story

Read more

Code

Blynk - Arduino IDE

C/C++
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
}

void loop()
{
  Blynk.run();
  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!
}

Credits

EDUcentrum

EDUcentrum

0 projects • 14 followers

Comments

Add projectSign up / Login