Sensors/Devices:
Sensors or devices are a key component that helps
you to collect live data from the surrounding environment. All this data
may have various levels of complexities. It could be a simple
temperature monitoring sensor, or it may be in the form of the video
feed.
Connectivity: All the collected data is sent to a cloud infrastructure.
The sensors should be connected to the cloud using various mediums
of communications. These communication mediums include mobile or
satellite networks, Bluetooth, WI-FI, WAN, etc.
Data Processing: Once that data is collected, and it gets to the cloud,
the software product performs processing on the gathered data. This
process can be just checking the temperature, reading on devices like
AC or heaters. However, it can sometimes also be very complex, like
identifying objects, using computer vision on video.
User Interface: The information needs to be available to the end-user
in some way, which can be achieved by triggering alarms on their
phones or sending them notification through email or text message. The
user sometimes might need an interface which actively checks their IoT
system.
Smoke sensor
Temperature sensors
Pressure sensor
Motion detection sensors
Gas sensor
Proximity sensor
IR sensors
Technical Optimization: IoT technology helps a lot in improving
techniques and making them better. For example, with IoT, a
manufacturer is able to collect data from various car sensors. The
manufacturer analyses them to improve its design and make them more
efficient.
Improved Data Collection: Traditional data collection has its limitations
and its design for passive use. IoT facilitates immediate action on data.
Reduced Waste: IoT offers real-time information leading to effective
decision making & management of resources. For example, if a
manufacturer finds an issue in multiple car engines, he can track the
manufacturing plan of those engines and solves this issue with the
manufacturing belt.
Improved Customer Engagement: IoT allows you to improve
customer experience by detecting problems and improving the process.
Applications of PWM in IoT are controlling the speed of DC motor,
Controlling the direction of a servo moto, Dimming LED, etc.
Turbidity sensor
Total organic carbon sensor
pH sensor
Conductivity sensor
Wearable Arduino boards are:
Lilypad Arduino main board
Lilypad Arduino simple
Lilypad Arduino simple snap
Lilypad Arduino USB
Thingworx is a platform for the fast development and deployment of
connected devices. It is a collection of integrated IoT development tools that
support analysis, production, property, and alternative aspects of IoT
development.
The mostly used IoT protocols are:
XMPP
AMQP
Very Simple Control Protocol (VSCP)
Data Distribution Service (DDS)
MQTT protocol
WiFi
Simple Text Oriented Messaging Protocol(STOMP)
Zigbee
LED BLINKING PROGRAM
void setup()
{
pinMode(13, OUTPUT);
pinMode(8, OUTPUT);
pinMode(4, OUTPUT);
}
void loop()
{
// the first LED is made to blink one time
digitalWrite(13, HIGH);
delay(1000); // delay time in milliseconds
digitalWrite(13, LOW);
delay(1000);
// the second LED will blink two times
digitalWrite(8, HIGH);
delay(500); // the duration is 0.5 seconds
digitalWrite(8, LOW);
delay(500);
digitalWrite(8, HIGH);
delay(500);
digitalWrite(8, LOW);
delay(500);
// the third LED will blink three times
for( int i = 0; i < 3; i = i +1 )
{
digitalWrite(4, HIGH);
delay(500);
digitalWrite(4, LOW);
delay(500);
// We can adjust the delay time accordingly
}
}
ARDUINO LIGHT SENSOR
int sensorPin = A0; // select the input pin for the potentiometer
//int ledPin = 13; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
// declare the ledPin as an OUTPUT:
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
pinMode(11,OUTPUT);
}
/*void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);
// turn the ledPin on
digitalWrite(ledPin, HIGH);
// stop the program for <sensorValue> milliseconds:
delay(sensorValue);
// turn the ledPin off:
digitalWrite(ledPin, LOW);
// stop the program for for <sensorValue> milliseconds:
delay(sensorValue);
}*/
void loop()
{
sensorValue=analogRead(sensorPin);
if(sensorValue <= 14)
digitalWrite(11,HIGH);
Else
digitalWrite(11,LOW);
Serial.println(sensorValue);
delay(2);
}