Thursday, April 17, 2014

Light sensing with TelosB

A small application to demonstrate IP networking in smart objects: Light sensing with TelosB motes + Contiki OS + uIP stacks.

Equipment needed
- 02 TelosB motes
- 01 gateway machine: Java supported, USB port

Setup
- 01 mote is connected to the gateway as a sink node to receive data from the other mote. It is an UDP server to print the received data to serial port
- 01 motes frequently collect light intensity and send it to the sink node if the intensity changes dramatically (higher than a predefined THRESHOLD = 2). It is an UDP client to send data
- Gateway: Using serialdump* tool to get data from the sink node's serial port and a Java client running to capture these data.

Source code
https://github.com/sonhan/ipsensorcollect

Demo

The bottom panel gets darker if  light intensity reduces

3 comments:

  1. hello
    please can you send to me the code of this application
    my email is fathallah.karim@gmail.com
    thanks a lot for your help

    ReplyDelete
  2. Hi, you can get it here: https://github.com/sonhan/ipsensorcollect

    See demo directory for test and Contiki code for sensor in lib

    Best

    ReplyDelete
  3. hey! i have doubts!can i connect you through your mail id Son Han?

    ReplyDelete