Yazn Balfas
Published © GPL3+

Smart Parking Blynk

Smart parking using blynk

BeginnerFull instructions provided1 hour776
Smart Parking Blynk

Things used in this project

Hardware components

Infrared Module (Generic)
×1
NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Schematics

Schematics

Code

Smart_Parking

C/C++
#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = "lDvRzQzBU7Z6OPLogUP-_3ozqSNdNAQ6";   //token from blynk account
char ssid[] = "Apaajalah";     //ssid wifi
char pswd[] = "nennymulyani";            // password wifi

WidgetLED led1(V1);            // Virtual LED untuk menampilkan status di aplikasi
int sensor1 = D4;                   //IR sensor

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pswd);
  pinMode(sensor1, INPUT);
  while (Blynk.connect() == false) {
  Serial.println("tidak terkoeksi");
  }
}
void loop()
{
  int sensorval1 = digitalRead(sensor1);
  delay(1000);
if (sensorval1 == 1)
  {
led1.on();
  }
if (sensorval1 == 0)
  {
led1.off();
  }
  Blynk.run();
}

Credits

Yazn Balfas
7 projects • 2 followers

Comments