IOT


 INDEX

  • What is IOT
  • How make IOT based project
  • What is ESP 
  • How to connect Esp to LED
  • How to connect Esp to Motor
  • How to connect Esp to Servo
  • How to connect Esp to Sensor
  • How to make IOT by led

IOT :- 

The Internet of Things (IoT) is a network of connected devices that can sense and exchange data with other devices and systems. IoT devices are also known as "smart objects". 

How make IOT based project:- We can create IoT projects using an ESP microcontroller and a Raspberry Pi, by connecting various sensors and devices to gather and exchange data for different applications.

What is ESP :- An ESP microcontroller is a small chip that combines a processor (CPU), Wi-Fi, and Bluetooth in one. It is used in IoT devices, wearable gadgets, and mobile devices to connect and communicate wirelessly.

There are mainly 2 types

ESP32
The ESP32 is an affordable microcontroller with Wi-Fi and Bluetooth, making it perfect for connecting devices wirelessly. It can work in temperatures from -40°C to +125°C and is mainly used in IoT projects, wearable devices, and mobile gadgets.

The ESP32 microcontroller has 48 pins, but not all of them are available on every development board.








ESP866 

The ESP8266 is an affordable microcontroller with built-in Wi-Fi, supporting Wi-Fi . However, it doesn't have Bluetooth, secure boot, flash encryption, or advanced security features like the ESP32.

The ESP8266 module has 32 pins, but the ESP8266 NodeMCU board only has 17 GPIO pins available for use.



Step by step guide

  • Copy this URL 
  •  http://arduino.esp8266.com/stable/package_esp8266com_index.json
  •  Install Arduino ide
  •  Go to file select preferences
  •  paste this URL
  • Go to tools select board manager
  • Search nodeMcu
  • install nodeMcu
  • then Go to board(Arduino uno) select NodeMcu 1.0(esp_12E module)
  • Now ready to use(if port not showing then install ch340 and ch210x driver

How to connect Wi-Fi to Esp

#include <ESP8266WiFi.h>

const char* ssid = "    ";
const char* password = "012345678";
void setup() {

  Serial.begin(115200);
  Serial.println("Connecting to WiFi...");
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.println("Connecting...");
  Serial.println("Connected to WiFi!");
  Serial.print("IP Address: ");
  Serial.println(WiFi.localIP());
}

void loop() {

}


How to connect ESP to blynk



#define BLYNK_TEMPLATE_ID           "TMPL3_9RSWVB-"
#define BLYNK_TEMPLATE_NAME         "Quickstart Template"
#define BLYNK_AUTH_TOKEN            "31uP-QbRQrM6D2Y-4fMswPIDgnR1dZGA"

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


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


char ssid[] = "Devd";
char pass[] = "012345678";
BLYNK_WRITE(V0)
{
  int value=param.asInt();
  Serial.println(value);
  if(value ==1)
  {
    Serial.println("On");
    digitalWrite(D7,HIGH);
  }
  if(value ==0)
  {
    Serial.println("OFF");
    digitalWrite(D7,LOW);
  }
  
}



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

  Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
  pinMode(D7,OUTPUT);
 
}

void loop()
{
  Blynk.run();

 
}
























Comments

Popular posts from this blog

Class 6

Class 8

Class 5