IoT Basics and Smart Sensors - EXP 3
IoT Basics and Smart Sensors - EXP 3
IoT Basics and Smart Sensors - EXP 3
Name:
Division:
Roll No.:
Date of Performance:
Date of Submission:
Grade:
Sign:
Experiment No. 3
Aim: Simulate the interfacing of a Zigbee module with Arduino Uno prototyping board to
control a 5V DC motor.
Theory:
Zigbee Module
ZigBee modules provide cost-effective wireless connectivity to devices in ZigBee mesh networks.
Utilizing the ZigBee PRO Feature Set, these modules are interoperable with other ZigBee devices,
including devices from other vendors. The most common factor in determining whether to use ZB
is the potential need to tie-in with other ZigBee-compatible networks or mesh networking.
● Digital I/O: 15
● ADC Channels: (4) 10-bit ADC inputs
● Data Rate: RF 250 Kbps, Serial up to 1 Mbps
● Range: Indoor 200 ft (60 m), Outdoor (LOS) 4000 ft (1200 m)
● Transmit Power: 3.1 mW (+5 dBm)
● Channels: 16 channels
● Encryption: 128-bit AES
● Voltage requirements: 2.1 to 3.6 VDC
● Current requirements: ~33 mA @ 3.3VDC (transmit), ~28 mA @ 3.3VDC (receive), <1 uA
@25ºC (sleep)
Zigbee is an IEEE 802.15.4-based specification for a suite of high-level communication protocols
used to create personal area networks with small, low-power digital radios, such as for home
automation, medical device data collection, and other low-power low-bandwidth needs, designed
for small scale projects which need wireless connection. Hence, Zigbee is a low-power, low data
rate, and close proximity (i.e., personal area) wireless ad hoc network.
Arduino Uno
Arduino Uno is a microcontroller board based on the ATmega328P. It has 14 digital input/output
pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator
(CSTCE16M0V53-R0), a USB connection, a power jack, an ICSP header and a reset button. It
contains everything needed to support the microcontroller.
Proteus Design Suite 8.12
It is a simulation platform that can be used to simulate different electronic circuits. The
microcontroller simulation capabilities of Proteus VSM enable true end-to-end learning for modern
electronic systems. The whole learning process takes place in software with the schematic capture
module serving as the ‘virtual hardware’ and the VSM Studio IDE module enabling firmware
development and compilation.
Circuit Diagram:
Remote Control
Procedure:
1. Open a new project in Proteus Design Suite.
2. Import the libraries of Arduino Uno, XBee Zigbee module and L293d motor driver module.
3. Once imported, make the connections as shown in the circuit diagrams.
4. Upload the codes in Arduino Uno.
5. Start the simulation of both the circuits.
Code:
Code for keypad circuit:
#include <Keypad.h>
int KeyCheck = 0;
void setup()
{
Serial.begin(9600);
void loop()
{
char key = keypad.getKey();
if (key)
{
if(key == '1'){KeyCheck = 1; Serial.print("1");}
if(key == '2'){KeyCheck = 1; Serial.print("2");}
if(key == '3'){KeyCheck = 1; Serial.print("3");}
if(KeyCheck == 0){Serial.print(key);}
KeyCheck = 0;
}
int DataCheck = 0;
void setup()
Department of Electronics and Telecommunication Engineering Third Year Semester V 16
IoT basics and Smart Sensors
{
Serial.begin(9600);
pinMode(Motor1, OUTPUT);
pinMode(Motor2, OUTPUT);
pinMode(Motor3, OUTPUT);
pinMode(Motor4, OUTPUT);
digitalWrite(Motor1, HIGH);
digitalWrite(Motor2, HIGH);
digitalWrite(Motor3, HIGH);
digitalWrite(Motor4, HIGH);
Serial.print(" ");
Serial.println();
Serial.println(" ");
Serial.println();
Serial.println();
Serial.println();
void loop()
{
if(Serial.available())
{
char data = Serial.read();
Serial.print(data);
Serial.print(" ======== > ");
Observations:
It is observed that the remote control circuit can remotely control the DC motor circuit. The two DC
motors in the circuit perform according to the keys pressed on the keypad of the remote control
circuit.
Conclusions:
On the basis of the observations, it can be concluded that the zigbee module can be used to
remotely control any kind of control system depending on the applications.