SunFounder 3in1 Kit
void myTimerEvent()
{
if(musicPlayFlag!=0)
{
tone(buzzerPin,melody[scrubBar],250);
scrubBar=(scrubBar+1)%(sizeof(melody)/sizeof(int));
delay(500);
tone(buzzerPin,melody[scrubBar],250);
scrubBar=(scrubBar+1)%(sizeof(melody)/sizeof(int));
Serial.println(scrubBar);
Blynk.virtualWrite(V2, scrubBar);
}
}
6.5 5. Home Environment Monitoring
In this chapter, we will use Blynk to create a home environment monitor. You can measure the temperature, humidity,
and light intensity of a room using the DHT11 and photoresistor. By sending these values to Blynk, you will be able
to know the environment of your home via the internet.
Required Components
In this project, we need the following components.
It’s definitely convenient to buy a whole kit, here’s the link:
Name ITEMS IN THIS KIT LINK
3 in 1 Starter Kit 380+
You can also buy them separately from the links below.
COMPONENT INTRODUCTION PURCHASE LINK
Arduino Uno R4 Minima -
Breadboard
ESP8266 Module
Jumper Wires
Resistor
Photoresistor
DHT11 Humiture Sensor -
1. Build the Cirduit
Note: The ESP8266 module requires a high current to provide a stable operating environment, so make sure the 9V
battery is plugged in.
6.5. 5. Home Environment Monitoring 301