aiawasdctrl
Published © GPL3+

Smart parking

You can now know are there are empty slots for your vehicles

BeginnerFull instructions provided1 hour32
Smart parking

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×1
Gravity: Analog Flame Sensor For Arduino
DFRobot Gravity: Analog Flame Sensor For Arduino
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Code

smart parkking

C/C++
#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth [] = "udPKU7az3qOAOI9WyQPVoWBx89j78Uu2";
char ssid [] = "Aro";
char pswd [] = "sariayoe";

WidgetLED led1(V1);

int sensor1 = D4;

void setup() {
  Serial.begin (9600);

  Blynk.begin (auth,ssid,pswd);
  pinMode (sensor1, INPUT);
  while (Blynk.connect() == false )  {
    Serial.println("tidak terkoeksi");
  }
  

}

void loop() {
  int sensorvall = digitalRead(sensor1);
  delay (50);

  if (sensorvall == 1 )
  {
    led1.on();
  }
  if (sensorvall == 0 )
  {
    led1.off();
  }
  Blynk.run();
}

Credits

aiawasdctrl

aiawasdctrl

3 projects • 0 followers

Comments

Add projectSign up / Login