For your NXT or EV3
Accelerometer, Compass & Gyro
Motor Multiplexers & Controllers
Wireless Control
Sensor Adapters & Multiplexers
RC Servos, Mountings & Pneumatics

Sensor Kits
Flexi-Cables & Cable Extenders
Classroom packs of Flexi-Cables
Plugs and Connectors
Power Options
Other Robotics accessories

EV3 Console Adapter
EV3 Sensor Adapter for NXT or Arduino
EV3 Compatibility Info

Android App for NXT/EV3

Arduino Products
Shields and Controllers

Raspberry Pi Products
For your Raspberry Pi

Connect with us
Shopping Cart
Your cart is empty.

Ordering Information
Our Distributors
World Wide Shipping
How to Order and Pay
Paying by Credit Card
Your satisfaction is important to us
Site Map

Yondering ...
Coming Soon ...
End of Life Products
Robotics related Links

NXT Product Docs and Software
User Guides
EV3 Blocks
API's and Sample Programs
NXT-G Blocks
All Downloads

EV3 Programming Environment
Which Programming Environment do you prefer for EV3?
EV3 Home Edition
EV3 Edu Edition

[View Result]

Votes: 1239
Translate this site
Translate this site: (Courtesy of Google™)
Search Web Pages

Need Quote for your School?
Write e-mail to:
Need Technical Support?
Write e-mail to:
Note your order number in the support request.
You can find order number on your Packing-slip or Order confirmation e-mail.

Proud Supporter of:

Trinity College Fire Fighting Robot Contest.


8623 Mayland Drive
Henrico, VA 23294-4703 USA.
Phone: (804) 767-8116
Fax: (804) 747-5303
Official PayPal Seal
Sharp GP2D12 infrared distance sensor interface
DIST01+GP2D12This Sharp GP2D12 infrared distance sensor interface comes with Sharp GP2D12 sensor. Sharp GP2D12 can precisely and reliably read distance from 10cm-80cm. Sharp GP2D12 provides your RCX with capability of measuring distances from an obstacle.

Philo had suggested an idea to interface GP2D12 with RCX. His idea involved a concept of storing energy in a capacitor and using it once you have accumulated enough.

We have redesigned this circuit to improve it's performance and overcome certain limitations and to fit it in one 2*4 brick. Since this interface is not powered through motor power port, it uses a program to perform it's reading cycle, unlike Light sensor or Touch sensor. You will find the example of NQC program here.
Technical specifications
  • Power consumption 10mA while charging.
  • Can be read once in 250 ms in normal operation mode.
  • Can be read continuously for 1 second in fast access mode. ( only fully charged, after this cycle you'll need to wait for few seconds for the sensor to get charged completely again.)
  • More sensitive and with more usable range.
  • Range: 10 - 80 cms.
Electronic Circuit
Circuitwe have developed this circuit for this infrared distance sensor interface.
Calibration Plot
Calibration PlotUse this plot to convert RCX reading to distance using GP2D12.
Note: Calibration may have 10% variation from sensor to sensor.
NQC Program
// Read GP2D12 Sensor output and displays
// raw value on RCX display (requires RCX 2 firmware)

int value;

task main()
  SetUserDisplay(value,0); // Display "value" on LCD
  SetSensor(SENSOR_1,SENSOR_LIGHT); // Active mode: starts charging sensor
  Wait(100); // Wait for full charge on startup

  until (false)
    SetSensor(SENSOR_1,SENSOR_TOUCH); // Passive mode: starts measure
    Wait(6); // Wait for GP2D12 conversion time (50ms)
    value=SENSOR_1; // reads and display value

    SetSensor(SENSOR_1,SENSOR_LIGHT); // Recharge sensor
    Wait(40); // for 250 ms