I've seen someone explaining how to connect sharp gp2d12 to nxt:
http://www.robotc.net/forums/viewtopic. ... lit=gp2d12
but i'm not sure about how to read data, is it necessary to define the port as any kind of sensor? (light sensor?) i'm trying to read data but i don't have different values for different distances...
This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc.
2 posts • Page 1 of 1
It's an analog sensor. I assume, you have the amplifier in place already? Then you only need to set the SensorPort to the right mode and type. Call the sensorport's setTypeAndMode method to do that.
Who is online
Users browsing this forum: No registered users and 2 guests