Arduino IoT Basics and Project (1)
Arduino IoT Basics and Project (1)
Development Day-02
Explore foundational Arduino IoT concepts with real projects.
Learn wireless communication, cloud platforms, and hands-on
examples to build smart devices quickly.
Bluetooth Example Project
• Setup HC-05 or HC-06 modules
Bluetooth enables wireless connection between
your Arduino and mobile devices. • Pair device to Arduino
• Send commands to control actuators
It supports short-range data exchange for control
and monitoring.
HC 05 Bluetooth Module
This example demonstrates digital output control.
Code:
char data;
int ledPin = 13;
void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
} void loop() {
if (Serial.available()) {
data = Serial.read();
if (data == '1') {
digitalWrite(ledPin, HIGH);
} else if (data == '0') {
digitalWrite(ledPin, LOW);
}
}
}
Circuit Diagram of HC 05 Bluetooth Module
What is Wi-Fi in IoT?
Wireless Network Extended Range
Wi-Fi connects IoT Covers larger areas than
devices to the internet for Bluetooth, making it ideal
remote access. for home automation.
Data Transfer
Supports higher data rates useful for video, sensors, and
real-time control.
Connecting ESP8266
Power Supply Serial Communication Programming
Use 3.3V regulated power to Connect TX/RX pins for Use Arduino IDE to flash
avoid damage. sending commands and firmware and upload
receiving data. sketches.
Connecting ESP8266
Continued
Setup Wi-Fi Credentials
Define SSID and password in your code for network connection.
Establish Connection
Connect ESP8266 to Wi-Fi for internet access.
Send/Receive Data
Implement MQTT or HTTP protocols for IoT communication.
Real-Time IoT Example
Data Transmission
2 Send data via Wi-Fi instantly to
cloud or app.
Sensor Data
Collect temperature, humidity, 1
and other inputs.
User Interface
Control and monitor sensors
3 remotely through app.
IoT Cloud Platforms
AWS IoT
Scalable platform with strong analytics.
Arduino Logic
Process sensor data and trigger fan.
Fan Activation
Control fan speed with relay module.
Remote Control
Use Bluetooth or Wi-Fi for manual override.
Wrap Up: Key Takeaways
Communication
Serial, Bluetooth, and Wi-Fi enable versatile data exchange.
Actuators
Servos and relays power real-world device control.
Real-Time Data
ESP8266 allows instant sensor updates and cloud syncing.
Mini Projects
Combine skills to build smart, responsive IoT devices.