PROJECT 14 – WIRELESS TEMPERATURE LOGGING

PROJECT 14

WIRELESS TEMPERATURE LOGGING

Back to Project 13                                                                                          Go to Arduino Tutorial

Required to send data in wireless and a long distance? Why not try to use XBee for long distance communication. For this project, we are going to interface LM35 temperature sensor and LED to the PC/Laptop by using XBee with 2 way communication.

———————————————————————————————————————————————————-

COMPONENT NEEDED

———————————————————————————————————————————————————-

SKXBEE
ARDUINO-XBEE SHIELD
XBEE
JUMPER WIRE
1K RESISTOR
LED

———————————————————————————————————————————————————-

CONNECTION

———————————————————————————————————————————————————-

———————————————————————————————————————————————————-

ADDITIONAL INFORMATION

———————————————————————————————————————————————————-

XBEE ADDRESS SETTING

Before sending data through XBee. Always be remind that it must be set the address of each XBee and the other XBee to let them communicate. To set the address, please check this link.

TEST XBEE BY ENTERING SIMPLE CODE

By entering the code above, we can test the XBee by checking the communication on the X-CTU from the computer between two XBee.

X-CTU
X-CTU are specially design for XBee to check the communication between XBee to computer. To use this software, please download here. There are only a few steps to use this program.

Step 1: Plug in the SKXBee to computer, then open the X-CTU. The window pop-up will be like figure below.

Step 2: Click the USB Serial Port then click the Test / Queny. A window will pop-up and tell us that it’s OK to use such as figure below. If fail, please check back the connection and repeat the step.

Step 3: Click on the Terminal tap above and Done.

———————————————————————————————————————————————————-

CODE OVERVIEW

———————————————————————————————————————————————————-

Define the temperature I/O pin by setting it to port A0 and the LED pin is on digital port 2.

temp_value =analogRead(temp_analogPin);
Read the temperature value from the analog pin.

temp_value = temp_value/2;
Divide the temp_value by 2.

if (LED_trigger == 1) digitalWrite(LED,HIGH);
Check if the data receive for LED is 1 or 0. If is 1 then ON the LED, if 0 then off the LED.

*If you like to have faster response from author, please do post your inquiry/comments/feedback to our technical forum as we seldom check comments section in tutorial site 🙂

Back to Project 13                                                                                           Go to Arduino Tutorial

———————————————————————————————————————————————————-

ATTACHMENT

1. P14 User Manual.pdf
2. Project_14_code.zip

Buy

, , , , ,

Related Post

Getting Started with Colour Sensor Module (SN-COLOUR-MOD)

Getting Started with Tilt Sensor (SN-TILT)

Getting Started with Vibration Sensor Module (Normally Off) (SN-VIBRATE-MOD)

Getting Started with IR Distance Click

2 thoughts on “PROJECT 14 – WIRELESS TEMPERATURE LOGGING

  1. hi,

    i need visual basic 2010 express code to control xbee io pins.

    i have two xbees one connected via usb cable to my computer and the other one is supply via a 3.3V battry and has an led connected through the pin 20.

    i need a code that sends data to switch the led on and off

    i tried this code but its not working.

    SerialPort1.Write (“20, 4”) ‘ suppose to switch on the led
    SerialPort1.Write (“20, 5”) ‘ suppose to switch off the led

    if the code i wrote is good then maybe its the config of the xbee which is wrong.

    what shoud the D0 (pin 20 ) be ; high, low, enable….?

    thanks for helping me out

  2. Dear Sir,
    How are you?
    This is Yoseph from Wuhan Amate Technology Co., Ltd, a leading wireless temperature monitoring system & solution provider from China.

    Dear Sir, we came across your esteemed company info on the internet, and guess your esteemed company (specializing in similiar temperature measurement industry or logistics transportation) may have potential need or interest in our Wireless Temperature Monitoring/Measuring System or Solutions, thus we take the liberty to write to you, with hope of self-introduction & communication bridging.

    A brief introduction of us, Wuhan Amate has established on the base of two Chinese national key universities’ laboratories professionals in 2001. After more than 10 years development, featured in customer oriented and innovation-driven, we are now ranking among the top three Industrial Wireless Temperature Monitoring System Providers domestically. Our products mainly consist of Wireless Temperature Sensors/Transmitters, Wireless Temperature Display/Monitor/Data Logger/Data Receiver/Collector, Wireless Temperature Workstation/Data Server/Software that constitute the whole wireless temperature monitoring system.

    Dear Sir, should you are in the relevant field and have potential need of or interest in our wireless temperature monitoring systems or solutions, please feel free to contact us. If our info doesn’t appeal to you, we apologize for this boring “Email marketing” in advance and please kindly inform us to avoid further “junk emails”.

    And finally, we do appreciate your precious time of viewing this letter and looking forward to your favorable response..
    Best Regards,
    Yoseph
    ———————————————-
    Yoseph Tsin Marketing Director
    Overseas Marketing & Sales Dept. of Wuhan Amate Technology Co., Ltd
    Add.: No.5 Building, Guandong Science Park, Wuhan East Lake National High-Tech
    Development Zone, Wuhan, Hubei
    Tel:+86-27-67849619
    Fax:+86-27-67849466
    Email:[email protected] Skype:yoseph_amate
    Backup email:[email protected] (MSN)
    URL: http://www.amate.com.cn

Leave a Reply

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