Basic Sensors

There are many sensors available but for this tutorial we will use :
• LDR (Light Dependent Resistor)

• Sonar Sensor

• IR Sensor

ARDUINO PROTOCOLS

• UART
• SPI
• I2C

SPI (Serial Peripheral Interface)

• Communication between multiple devices over short distance and at high speed.
• Single master device and multiple slaves
• Eg-  wifi shield, SD cards, RFID card reader modules etc can be connected via this protocol

I2C (INTER-INTEGRATED-CIRCUIT)

• Communication between a-master-multiple-slave or multiple-master-multiple-slaves
• Example Used in Inertial Measurement Units like accelerometers , magnetometer, barometers,
temperature sensors, and some Sonars

UART

  • Universal Asynchronous Receiver/Transmitter
  • Non-networked communication between computers, terminals and other devices
  • Eg. USB, mobile cable etc

DEMO

• LDR sensor (detect light intensity)
• Sonar sensor (distance measurement)
• LED Blink using IR sensor
• Controlling LED Using APP (Blynk)

LDR SENSOR

• Light Dependent Resistor Sensor
• Detect light intensity

SONAR SENSOR

LED BLINK USING IR SENSOR

CONTROLLING LED USING BLYNK

What is blynk anyway ?
– It is a popular IoT platform to connect your devices to the cloud, design apps to control them, analyze telemetry data, and manage your deployed products at scale.

How it works?
– Blynk was designed for the Internet of Things. It can control hardware remotely, it can display sensor data, it can store data, vizualize it and do many other cool things.

There are three major components in the platform:

Blynk App – allows to you create amazing interfaces for your projects using various widgets we provide.

Blynk Server – responsible for all the communications between the smartphone and hardware. You can use our Blynk Cloud or run your private Blynk server locally. It’s open-source, could easily handle thousands of devices and can even be launched on a Raspberry Pi.

Blynk Libraries – for all the popular hardware platforms – enable communication with the server and process all the incoming and outcoming commands.

Read more at https://docs.blynk.cc/

Official Site
https://www.blynk.cc/
Tutorial
https://www.hackster.io/PatelDarshil/controlling-led-using-blynk-fea92f

Yii2 Cronjob and Task Scheduler for windows
ARDUINO

Leave a Comment

Your email address will not be published. Required fields are marked *