element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Upcycle It
  • Challenges & Projects
  • Design Challenges
  • Upcycle It
  • More
  • Cancel
Upcycle It
Blog Upcycle It - Funeka - The Skull #9 : I smell heat...
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: sakthi.1260
  • Date Created: 21 May 2017 1:00 PM Date Created
  • Views 1474 views
  • Likes 4 likes
  • Comments 6 comments
  • upcycled_funeka
  • i2c
  • omron d6t
  • servo
  • intel edison
Related
Recommended

Upcycle It - Funeka - The Skull #9 : I smell heat...

sakthi.1260
sakthi.1260
21 May 2017

Hey fellas...

 

Here comes this week's update, something I wanted to do for a long time, but the Upcycle Challenge made me to do it image...

 

I wanted to re-purpose the Omron D6T, I2C MEMS IR sensor to track movement and direction. The one I'm using here is Omron D6T-8L, with 8 pixels.

 

How its works:

 

The sensor has a resolution of 1x8, what I've done is read all the 8 pixel values and find the largest of it and the  corresponding pixel and map the value to a Servo.

 

The Setup:

image

 

Connections

 

Omron D6T     EDISON

SCL        -->        SCL

SDA        -->        SDA

5V           -->         5V

GND        -->        GND

 

Servo                     Edison

Signal      -->     Any PWM pin

5V            -->             5V

GND        -->            GND

 

The Code :

 

#include <Servo.h>
#include <Wire.h>

#define D6T_addr 0x0A // Address of OMRON D6T is 0x0A in hex
#define D6T_cmd 0x4C // Standard command is 4C in hex

Servo myservo;

int tmax, imax;
int numbytes = 19;
int numel = 8;
int rbuf[19];
int tdata[8];
float t_PTAT;
int deg;
int i;

void setup()
{
  Wire.begin();
  Serial.begin(9600);
  myservo.attach(5);
  myservo.write(90);
  }

void loop()
{
  tmax = 0;
  imax=0;
  Wire.beginTransmission(D6T_addr);
  Wire.write(D6T_cmd);
  Wire.endTransmission();

  delay(70);
  Wire.requestFrom(D6T_addr, numbytes); // D6T-8 returns 19 bytes

  if (0 <= Wire.available()) { // If there is data still left in buffer
    i = 0;
    for (i = 0; i < numbytes; i++) {
      rbuf[i] = Wire.read();
    }
    t_PTAT = (rbuf[0] + (rbuf[1] << 8) ) * 0.1;
    for (i = 0; i < numel; i++) {
      tdata[i] = (rbuf[(i * 2 + 2)] + (rbuf[(i * 2 + 3)] << 8 )) * 0.1;
      //Serial.print(tdata[i]);
      //Serial.print(",");
    }
    //Serial.println();

  }

      for (i = 0; i < numel; i++)
    {
      if (tmax <= tdata[i])
      { tmax = tdata[i];
        imax = i;
        Serial.println(imax);
      }
    }
  deg = map(imax, 0, 7, 60 , 120);
  myservo.write(deg);
  delay(10);
  
  
}

 

Lets Track...

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

I made a simple mechanism to make the eyes move, i thought of 3d printing them but old acrylic pieces and a few match sticks came handy. also mounted with the skull.

imageimage

 

You guys will be meeting Funeka mostly my 28th image Here's some sneak peek

 

image

  • Sign in to reply

Top Comments

  • dougw
    dougw over 8 years ago +2
    Heat seeking eyeballs - that is simply awesome.
  • Workshopshed
    Workshopshed over 8 years ago +2
    Great result with the Omron board, I think following eyes is going to freak most people out.
  • sakthi.1260
    sakthi.1260 over 8 years ago in reply to dougw +1
    wanted to do this for a long time, this challenge was the right excuse
  • Workshopshed
    Workshopshed over 8 years ago

    Great result with the Omron board, I think following eyes is going to freak most people out.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • balearicdynamics
    balearicdynamics over 8 years ago

    Genial mechanical solutions. A great result is expected. Congrat !

     

    Enrico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • sakthi.1260
    sakthi.1260 over 8 years ago in reply to DAB

    A lot of ideas are coming for upgrading this project DAB, probably will do them and update after the challenge gets over.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 8 years ago

    Nice post.

     

    Now if you really want to freak people out, set it up so that each eye tracks different objects on either side of the head.

     

    Then you can have the eyes track two people how approach it from either side.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • sakthi.1260
    sakthi.1260 over 8 years ago in reply to dougw

    wanted to do this for a long time, this challenge was the right excuse image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube