IR Tracker

From Mech
Jump to navigationJump to search
IR Tracker Main.jpg

Team Members

Team Members.jpg
  • Mark Straccia (Mechanical Engineering, Class of 2009)
  • Matt Turpin (Mechanical Engineering, Class of 2009)
  • Alice Zhao (Electrical Engineering, Class of 2008)

Overview

The goal of this project was to create a device that would follow a moving infrared light. The IR Tracker does this by continuously detecting the position of an infrared emitter in two axises, and then tracking the emitter with a laser.


The IR Tracker follows two major steps: (1) Identify the position of the IR emitter (2) Rotate the device to align itself with the IR emitter.

  • (1) The IR Tracker finds the location of the maximum infrared intensity in both the x-axis and y-axis. Two encoders continuously record the position of the IR emitter based on intensity levels detected by two IT detectors.
  • (2) Given the information about the location of the IR emitter, the device rotates itself in two dimensions to adjusts its plane to be normal to the IR emitter. At this point, the laser should point to the IR emitter.


We will discuss the mechanical design, electrical design, PIC code, resulting project and our team reflections.

Mechanical Design

The primary components used in this circuit are:

  • 2 Pitman Motors
  • 2 RC Servos
  • 1 Turntable (6031K17, McMaster-Carr, $2.20, readily available)
  • 1 Cylindrical Bearing
  • 1 Laser
  • Mirror
  • Plexiglas


Mechanical Design.jpg


  • Detecting Component:
    • On the main plane of the device, two encoders are placed perpendicular to each other (able to track on two axises). Mirrors are placed on the output shafts of the two encoders at 45 degree angles. Two infrared detectors are placed in line with the encoders. While the encoders are constantly spinning, the mirrors detect light from the IR emitter and bounce the light to the IR detectors.
Detecting Component.jpg


  • Rotating Component:
    • Below the main plane of the device, two servos are used to rotate the entire device to align the main plane to be normal to the emitter. The main plane is attached to a block of Plexiglas that surrounds a cylindrical bearing. This bearing allows the main plane to rotate along the y-axis. This block of Plexiglas is mounted on a turntable which allows the main plane to rotate along the x-axis.
Rotating Component.jpg

Electrical Design

The primary components used in this circuit are:

  • 1 PIC (18F4520)
  • 2 IR Detector / Emitter Pairs
  • 2 Hall Sensors & Small Magnets
  • 1 H-Bridge (L298)
  • 1 Inverting Schmidt Trigger (74HC14)


Circuit Diagram.jpg


  • PIC
    • The PIC is the central controller of the IR Tracker.
  • IR Detector / Emitter Pairs
    • The IR Detector detects the intensity of IR light coming from the IR Emitter. Over each revolution of the encoder's output shaft, the location of the maximum IR intensity is recorded. This information is given to the PIC to determine the servo's next position.
IR Detector Emitter.jpg
  • Hall Sensors
    • The Hall Sensors are used as a position marker for the encoders. They are located just below the output shafts of the encoders. A small magnet is placed on the side of the output shafts. As both encoder shafts spin, the Hall Sensor detects the location of the magnet. The purpose of the Hall Sensors is to use this information to sync the rotations of the two encoder shafts.
Hall Sensors.jpg
  • H-Bridge
    • The H-Bridge is an intermediate component between the PIC and the servo motors. It allows the servo motors to run forwards and backwards.
  • Inverting Schmidt Trigger
    • The Schmidt Trigger acts as an intermediate between both the PIC to the motors and the PIC to the Hall Sensors. It helps filter out noisy signals.

Code

Angle --> Encoder --> Servo

See full code here

Results

Our resulting design:

Reflections

  • More planning
  • Simpler mechanical design
  • More efficient code