Netduino IR Distance Sensor
10 replies to this topic
Posted 25 September 2010 - 05:26 PM
Just playing around with the Sharp GP2Y0A21YK IR Proximity sensor and getting re-aquainted with my antique 2x16 Serial LCD Module (it doesn't even have a backlight and require inverted TTL input - hence the SN7404 hex inverter). Full source code is attached to this post.
Posted 25 September 2010 - 06:04 PM
Very impressive. I really like your "test bench" - what is it made of?
Posted 26 September 2010 - 04:46 AM
I have drivers for the FEZ to run all the sharp distance sensors accurate to within a few mm, if anyone's interested i can port them over to Netduino, however i don't have one to test on (yet).
Posted 30 September 2010 - 08:37 PM
Yes please I just got one today that I would like to start playing with soon. Or just post the code and I'll convert it?
Posted 01 October 2010 - 03:26 AM
Converting it should just be a matter of changing the analogue in namespace however i'd like to work out a way to determine if it's on a netduino or FEZ and load the appropriate library automatically. I'll see about looking into it this weekend. I'd prefer not to maintain two copies of the library....
Posted 01 October 2010 - 10:30 PM
IMO the best solution is to make a wrapper for AnalogIo and use conditional compilation inside it. Dynamically using the appropriate class depending on the hardware could be done by reflection but would have some significant impact on performance
Posted 07 July 2011 - 04:44 PM
Hi, I just got something like this (for a further range), and was wondering a bit - you're putting the sensor out from the sharp sensor directly into the analog input, which is fine for "usual" readings, but I'm gathering from the datasheet in the "absolute maximum ratings" that the output might get as high as V_CC (maybe during the initial unstable readings?) - or does that just mean that one can apply this voltage to the output port (for whatever reason?)
I believe that no discovery of fact, however trivial, can be wholly useless to the race, and that no trumpeting of falsehood, however virtuous in intent, can be anything but vicious.
-- H.L. Mencken, "What I Believe"
Posted 08 July 2011 - 08:09 AM
I've got a Sharp GP2Y0A2YK0F IR sensor myself and tested this before connecting it to the analog input of the Netduino. The voltage did never exceed 2.8V, even while the sensor itself works on 5V. I tried quite some distances, but I decided it's safe to connect it directly to an analog input as well.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
Posted 27 November 2011 - 09:19 PM
Has anyone tried using more than one of these sensors on a single model?
I am considering using multiple distance sensors for a robot, but am worried that they may interfere with each other.
Three range sensors, left, right and ahead worked well for me.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users
|This webpage is licensed under a Creative Commons Attribution-ShareAlike License.|