SEN0158

SEN0158 Datasheet


This camera is a small form positioning IR camera, which could track 4 IR objects at the same time. The applications are very various and goes from tracking of robots with IR transmitters for navigation to light barriers, determine the direction where the object is going to. It is also a flame sensor, which could track heat sources. It will be a very useful sensor to detect the flame position. Easy to install and to connect. Just four wires, two for power supply and two for I2C.

Part Datasheet
SEN0158 SEN0158 SEN0158 (pdf)
PDF Datasheet Preview
Positioning ir camera

Contents
• 1 Introduction
• 2 Specification
• 3 Pinout
• 4 Connection Diagram
• 5 Sample Code

Instruction Arduino Code Processing Code

Introduction

This camera is a small form positioning IR camera, which could track 4 IR objects at the same time. The applications are very various and goes from tracking of robots with IR transmitters for navigation to light barriers, determine the direction where the object is going to. It is also a flame sensor, which could track heat sources. It will be a very useful sensor to detect the flame position. Easy to install and to connect. Just four wires, two for power supply and two for I2C.

Specification
• Power consumption requirements 3.3V/44mA, 5V/48mA
• Detecting distance 0~3m
• Communication protocol I2C
• Horizontal detecting angle 33 degrees
• Vertical detecting angel 23 degrees
• Resolution is 128x96 pixel, with hardware image processing, which can track four objects IR
emitting or reflecting objects
• Dimensions 32 x 16 cylinder shape

Pinout
• Red - VCC+
• Yellow - SDA
• Green - SCL
• Black - GND

Connection Diagram

Positioning IR Camera - Connection Diagram

Sample Code

Instruction

Once the camera detects a signal, it will display its coordinates on the first position. And others will be empty returns If the camera detects several objects, it will arrange them according to the detecting order. If one of them is out of the view, that position will be empty return It only supports 4 objects at the same time.

Arduino Code
// Wii Remote IR sensor test sample code by kako // modified output for Wii-BlobTrack program by RobotFreak erobots.com/user/1433 // modified for by Lumi, Jan. 2014
#include <Wire.h>
int IRsensorAddress = 0xB0 //int IRsensorAddress = 0x58 int slaveAddress int ledPin = 13 boolean ledState = false byte data_buf[16] int i;
int Ix[4] int Iy[4] int s;
void Write_2bytes byte d1, byte d2

Wire.beginTransmission slaveAddress Wire.write d1 Wire.write d2 Wire.endTransmission ;
void setup
slaveAddress = IRsensorAddress >> 1 // This results in 0x21 as the add ress to pass to TWI

Serial.begin 19200 ;
pinMode ledPin, OUTPUT ;
// Set the LED pin as output

Wire.begin ;
// IR sensor initialize

Write_2bytes 0x30,0x01 delay 10 ;

Write_2bytes 0x30,0x08 delay 10 ;

Write_2bytes 0x06,0x90 delay 10 ;

Write_2bytes 0x08,0xC0 delay 10 ;

Write_2bytes 0x1A,0x40 delay 10 ;

Write_2bytes 0x33,0x33 delay 10 ;
delay 100 ;
void loop
ledState = !ledState;
if ledState digitalWrite ledPin,HIGH else digitalWrite ledPin,L OW ;
//IR sensor read Wire.beginTransmission slaveAddress Wire.write 0x36 Wire.endTransmission ;
More datasheets: 305-044-520-202 | EKSFDCAWD | EYSFDCAWD | 17-10019 | 17-10012 | 17-10009 | 2N5953 | 2N5953_J35Z | 3254J/2H3P | B88069X0400S102


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived SEN0158 Datasheet file may be downloaded here without warranties.

Datasheet ID: SEN0158 509026