1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

EV3 IR sensor capabilities

Discussion specific to the intelligent brick, sensors, motors, and more.

EV3 IR sensor capabilities

Postby pepijndevos » 01 Oct 2013, 20:02

I was wondering what the IR sensor is capable of. I found this bit in the LejOS source:

Code: Select all
    /**
     * return the bearing and distance to one or more IR beacons. Up to four
     * beacons (on different channels 0-3) can be detected. Each beacon has an
     * associated two byte value (so the beacon on channel 0 will have values
     * in locations 0 and 1 in the array. The first location contains the relative
     * bearing to the beacon, the second the distance.<br>
     * The bearing values range from -12 to +12 (with values increasing clockwise
     * when looking from behind the sensor. A bearing of 0 indicates the beacon is
     * directly in front of the sensor. Distance values (0-100) are in cm and if no
     * beacon is detected a bearing of 0 and a distance of -128(255) is returned.
     * @param bearings
     * @param offset
     * @param len
     */


So it can measure distance in centimetres of up to 4 beacons and direction in... what?

If that where any sensible and linear unit, you could do triangulation with a few beacons.
-- Pepijn
http://studl.es Mindstorms Building Instructions
User avatar
pepijndevos
 
Posts: 175
Joined: 28 Dec 2011, 13:07
Location: Gelderland, Netherlands

Re: EV3 IR sensor capabilities

Postby gloomyandy » 02 Oct 2013, 08:46

Everything I know about the sensor is in that comment. If you want to determine what units are used for the bearing (and how accurate and linear they are), then you will probably have to set up a test to find out.
User avatar
gloomyandy
 
Posts: 320
Joined: 29 Sep 2010, 05:03

Re: EV3 IR sensor capabilities

Postby pepijndevos » 02 Oct 2013, 11:22

Will do.
-- Pepijn
http://studl.es Mindstorms Building Instructions
User avatar
pepijndevos
 
Posts: 175
Joined: 28 Dec 2011, 13:07
Location: Gelderland, Netherlands


Return to Mindstorms Hardware

Who is online

Users browsing this forum: No registered users and 0 guests