2014年3月25日 星期二

A few thoughts about the normalization of IR sensor outputs

I found some interesting things when I tried to determine what the best resistor values were for limiting the current flowing through the infrared LEDs.
  1. If I assume that the light emitted from the IR LED is of cone shape in 3D, then the projection on the ground would mostly in our case be an ellipse.
  2. The long axis of the ellipse that created by the center LED sits on the moving direction of my Robotracer, Beetle.
  3. It is observed that when I try to move my Robotracer to cross the line and record the sensor readings along the way, there would be a small part of the sensor readings that seems not changed (see Figure 1).  The reason for this observation can be illustrated by using Figure 2.
  4. Therefore, the maximum of the sensor readings when crossing the line would be smaller than that when the robotracer is running.  This, I think, makes my line position estimation (weighted average) give error results at some point, not always.  I seem to solve this problem by lowering the normalized sensor output range, from [50, 900] to [50, 750], and by purposely making the maximum values of those raw IR sensor readings larger (multiplied by 1.3).  This deserves more investigation.  I came up with this solution because I thought when the robotracer try to correct the sensor readings with the normalization parameters I got from moving the robotracer to cross the line, may make the reading corrections exceeds the variable type limit (I use unsigned int for sensor readings).  A second thought on this problem shows the guess may not be true.
Fig.1 Sensor readings of the Robotracer, Beetle, when crossing the line

Fig. 2.  The projections of the IR LEDs on the ground of the Robotracer, Beetle.  (left) when the robotracer is running, and (right) when it records the sensor outputs for normalization




沒有留言:

張貼留言

迴圈線迷宮(looped line maze)的搜尋與路徑簡化

迴圈線迷宮(如下圖),專指一個由直交線段組成的迷宮中,包含「迴圈」的路徑。在每年教育部主辦的「 電腦鼠暨智慧輪型機器人競賽 」中,屬於高中職與大專組的「 線迷宮鼠 」競賽活動。規則請參考以下連結  https://sites.google.com/gm.lhu.edu.tw/20...