http://www.youtube.com/watch?v=JYEwXw5HwJI
  | ||||||||||||||
Netduino IR Distance Sensor
Started by hari, Sep 25 2010 05:26 PM
10 replies to this topic
#1Posted 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.
http://www.youtube.com/watch?v=JYEwXw5HwJI
Attached Files#2Posted 25 September 2010 - 06:04 PM
Very impressive. I really like your "test bench" - what is it made of?
#3Posted 25 September 2010 - 07:18 PM Thanks. The "Test bench" is made out of Foam Board. Really easy to work with material. Video here: http://forums.netdui...d-project-base/ #4Posted 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).
#5Posted 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? -(e) #6Posted 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....
#7Posted 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
#8Posted 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" #9Posted 08 July 2011 - 08:09 AM Hi Stefan, 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 #10Posted 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. Paul Update: Three range sensors, left, right and ahead worked well for me. #11Posted 04 April 2015 - 07:25 AM Hey guys, I am new to Netduino and need some help for it. My topic is related to ir sensors, so will anyone help me? If you are ready to answer my topic the please goto my topic Link of my topic- http://forums.netdui...for-ir-sensors/ 0 user(s) are reading this topic0 members, 0 guests, 0 anonymous users | ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||