I tried my hand, a cardboard box, a piece of wood, nothing seems to put the echo pin high...
I tried to use pin D0 and D1 (+change the code of course), but that didn't help either.
Is there a way to check if this module is working, except for connecting it to the netduino?
Please forgive me. The problem is all mine. I modified the documentation and never tested it after the modification (I should know better than that).
Anyway, I had the pin documentation reversed for the constructor. Please download the updated code with the corrections. The first parameter is the pin connected to Trig. The second parameter is the pin connected to Echo. The names of the parameters are renamed to pinTrig and pinEcho (and I hope that will end all confusion).
Anyway, let me know if that does not fix your problem.
- Jason Stevenson likes this