Sensors Dth11 Pir Hc-05
Sensors Dth11 Pir Hc-05
When MCU sends a start signal, DHT11 changes from the low-power-
consumption mode to the running-mode, waiting for MCU completing the
start signal.
Once it is completed, DHT11 sends a response signal of 40-bit data that
include the relative humidity and temperature information to MCU. Users
can choose to collect (read) some data.
Without the start signal from MCU, DHT11 will not give the response
signal to MCU.
Once data is collected, DHT11 will change to the low power-
consumption mode until it receives a start signal from MCU again.
DHT Response to MCU
When DHT is sending data to MCU, every bit of data begins with the
50us low-voltage-level and the length of the following high-voltage-
level signal determines whether data bit is "0" or "1”
Data 0 Indication
Data 1 Indication
Ref. DHT11 Sensor
https://www.mouser.com/datasheet/2/758/DHT11-Technical-Data-Shee
t-Translated-Version-1143054.pdf
PIR Sensor
(Passive Infrared Sensor)
Introduction to PIR Sensor
A PIR sensor is an electronic sensor used in motion detectors such as
automatically triggered lighting devices and protection systems that
measure devices emitting infrared light in their field of view.
The term passive refers to the fact that PIR devices don’t radiate energy
for detection purposes. They work entirely by detecting infrared (radiant
heat) emitted by or reflected from objects.
Pin Description
Fresnel lens is a type of lens that has been divided into a series of
concentric annular sections, known as Fresnel zones or steps. The design of
a Fresnel lens allows it to capture and focus light effectively. These are often
made of plastic rather than glass, which further reduces their weight and
cost.
How does PIR detects?
Unlike ultrasonic and microwave motion sensors, passive infrared
(PIR) sensors don't emit any energy.
Instead, they detect movement with a pyroelectric sensor that senses
changes in the infrared radiation naturally emitted by living beings and
objects warmer than absolute zero.
When a person or object moves in the range of a passive infrared
sensor, the amount of infrared radiation in the area changes, causing the
PIR sensor to trigger an alarm or other response.
HC-05
It has 6 pins:
1. Key/EN: It is used to bring Bluetooth module in AT commands mode. If
Key/EN pin is set to high, then this module will work in command mode.
Otherwise by default it is in data mode. The default baud rate of HC-05 in
command mode is 38400bps and 9600 in data mode.
Contd..
HC-05 has red LED which indicates connection status, whether the
Bluetooth is connected or not. Before connecting to HC-05 module this red
LED blinks continuously in a periodic manner. When it gets connected to
any other Bluetooth device, its blinking slows down to two seconds.
This module works on 3.3 V. We can connect 5 V supply voltage as
well since the module has on board 5 to 3.3 V regulator.
As HC-05 Bluetooth module has 3.3 V level for RX/TX and
microcontroller can detect 3.3 V level, so, no need to shift transmit level of
HC-05 module. But we need to shift the transmit voltage level from
microcontroller to RX of HC-05 module.
The data transfer rate of HC-05 module can vary up to 1 Mbps is in
the range of 10 meters.
HC-05 Specifications
Bluetooth version: 2.0 + EDR (Enhanced Data Rate)
Frequency: 2.4 GHz ISM band
Modulation: GFSK (Gaussian Frequency Shift Keying)
Transmit power: Class 2 (up to 4 dBm)
Sensitivity: -80 dBm typical
Range: approximately 10 meters (or 33 feet) in open air
Profiles supported: SPP (Serial Port Profile), HID (Human Interface
Device) and others
Operating voltage: 3.3 V to 5 V DC
Operating current: less than 50 mA
Standby current: less than 2.5 mA
Sleep current: less than 1mA
Interface: UART (Universal Asynchronous Receiver/Transmitter)
Baud rates: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200,
230400, and 460800
Operating temperature: -20°C to 75°C (-4°F to 167°F)
Alternate options for HC-05 Modules
HC-05 HM-10
- Operates as master or slave (can - Operates as peripheral only (slave
initiate connection) mode)
- Bluetooth 2.0 + EDR - Bluetooth 4.0 BLE (Bluetooth Low
- Max data rate of 3 Mbps Energy)
- Range of 10-15 meters - Max data rate of 1 Mbps
- AT command interface for - Range of 30-50 meters
configuration - Some modules have embedded AT
- Requires external power 3.3 V mode
- Low cost - 1.8 V to 3.6 V power
- More expensive