Temperature Analysis and Interpretation of many locations using LM35 Sensor, Zigbee, and Beaglebone Black. Using many Zigbees we can make a mesh connection and can maintain the data received accordingly on the main Coordinator Zigbee connected to the main BBB.
2. Components Used
1.> ZigBee
2.> BeagleBone Black
3.> LM35 temperature sensor
4.>Breadboard
5.> Connecting Wires
3. Operation
We will be recording temperature of different
locations using LM35 temperature sensor.
Using ZigBee and Beaglebone Black we will record,
analyse and transmit the data to a centre station.
The complete analysis of the temperature data will be
recorded,analyzed for interpretation and necessary
actions to be taken through a central hub system.
4. LM35 Temperature Sensor
The LM35 is an integrated circuit sensor that can be
used to measure temperature with an electrical output
proportional to the temperature (in °C).
The sensor circuitry is sealed and not subject to
oxidation.
The LM35 generates a higher output voltage than
thermocouples and may not require that the output
voltage be amplified.
The LM35 has an output voltage that is proportional to
the Celsius temperature.
5. Intefacing LM35 with BBB
LM35 has 3 pins Vcc ,GND, OUTPUT.
Connect Vcc to 3.3 V on BBB
Connect GND to any GND available on BBB
Now the output pin is connected to any analog pin present on
BBB viz,"AIN4", "P9_33" "AIN6", "P9_35" "AIN5", "P9_36" "AIN2",
"P9_37" "AIN3", "P9_38" "AIN0", "P9_39" "AIN1", "P9_40"
CODE:
import Adafruit_BBIO.ADC as ADC
ADC.setup()
value = ADC.read("P9_40")
OR
value = ADC.read("AIN1")
6. ZigBee Module
Zigbee system structure consists of three different types of
devices such as Zigbee coordinator, Router and End
device.
Every Zigbee network must consist of at least one
coordinator which acts as a root and bridge of the
network. The coordinator is responsible for handling and
storing the information while performing receiving and
transmitting data operations.
Zigbee routers act as intermediary devices that permit
data to pass to and fro through them to other devices.
End devices have limited functionality to communicate
with the parent nodes.
13. PROCESSOR OVERVIEW
TI AM3358 Sitara™ Processor
Based on ARM Cortex-A8 processor
Implements ARMv7-A 32-bit ISA
< 300 mW overall power consumption
65nm technology
14. SYSTEM ARCHITECTURE
Powered by TPS65217C o5V from adapter or host USB
HDMI capabilities
Boot from µSD card or eMMC
Two 42-pin expansion ports oCommon for hardware
projects
19. Code at transmitter side
import Adafruit_BBIO.UART as UART
import serial
import Adafruit_BBIO.ADC as ADC
import time
UART.setup("UART1")
ser = serial.Serial(port = "/dev/ttyO1", baudrate=9600)
ADC.setup()
ser.close()
ser.open()
temp = ""
while True:
value = ADC.read("P9_33")
temp = (value*1000*3.3*5/9)/10
ser.write(str(temp))
print str(temp)
time.sleep(1.5)
ser.close()
20. Code at receiver side
import Adafruit_BBIO.UART as UART
import serial
UART.setup("UART1")
ser = serial.Serial(port = "/dev/ttyO1", baudrate=9600)
ser.close()
ser.open()
print "Started"
while True:
if ser.isOpen():
print ser.read()
ser.close()
21. Other Applications
Home Entertainment and Control — Home
automation such as smart lighting, advanced temperature
control, safety and security, movies and music
Wireless sensor networks
Industrial control
Embedded sensing
Medical data collection
Smoke and intruder warning
Building automation