Infrared distance sensor GP2D12

Firmware/software/electronics/mechanics
Post Reply
Vale
Beginner
Posts: 3
Joined: Mon Oct 07, 2013 6:40 pm

Infrared distance sensor GP2D12

Post by Vale »

Hey guys,

I't pretty new to electrotechnics, but with some experience in software-development. I'm wondering if it would be possible to support the barometric altimeter (for rough measurement) with an more precise infrared distance meter such as the Sharp GPD12. It has a weight of about 4,4 gram, which should be okay for the craziefly?
http://www.sharpsma.com/webfm_send/1203
Does it work with the voltage etc. devlivered by the crazyflie?
Mohero
Beginner
Posts: 6
Joined: Sun Jun 16, 2013 9:05 am

Re: Infrared distance sensor GP2D12

Post by Mohero »

The Sharp InfraRed sensor I don't think will work, it gives an analog output, and the CrazyFlie IIRC doesn't have this - it does have I2C, though. The other down-side with the Infrared sensor is that it's limited to 80CM. which isn't very far. I'm using them on some robotics as a work tutorial project on coding autonomous systems, but we're having to use Sonar for a longer range, too.
tobias
Bitcraze
Posts: 2090
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Infrared distance sensor GP2D12

Post by tobias »

The Crazyflie has some ADC on the expansion interface but you will be offering the SPI pins, but as Mohero says the sensor might be a bit limiting
absoloodle37
Member
Posts: 46
Joined: Sun Jun 09, 2013 3:04 am

Re: Infrared distance sensor GP2D12

Post by absoloodle37 »

Here's a sonar ranging detector that's 9 grams. Might meet your requirements:

http://www.amazon.com/Water-proof-Dista ... g+detector
absoloodle37
Member
Posts: 46
Joined: Sun Jun 09, 2013 3:04 am

Re: Infrared distance sensor GP2D12

Post by absoloodle37 »

Definitely need to check out this guy's post. He successfully installed an infrared sensor on his CF and has a video of it working. Helpful instructions.

http://cfusting.wordpress.com/2013/07/2 ... tric-data/
derf
Expert
Posts: 163
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: Infrared distance sensor GP2D12

Post by derf »

@absoloodle37
Sorry to correct you, but he is actually using a sonar sensor (LV-MaxSonar-EZ0 ultrasonic proximity sensor) that weighs 4.3grams, according to the datasheet.
Post Reply