Sonar
Discovery
Posts: 606
Hi,
I have a Parallax acoustical distance measuring module that works fine for measuring short distances. My application requires detecting an object that is positioned anywhere from about 2 feet to 70 feet. I am wondering if it is possible or has it already be done to write code that can make the device act as an active sonar unit. It would generate a ping sound that would bounce back to the detector when an object is in the path. I was thinking of generating the ping then read the sensor for the response just after the ping leaves the sender. It is not necessary to know the distance. I use a BS2.
sincerely,
Discovery
I have a Parallax acoustical distance measuring module that works fine for measuring short distances. My application requires detecting an object that is positioned anywhere from about 2 feet to 70 feet. I am wondering if it is possible or has it already be done to write code that can make the device act as an active sonar unit. It would generate a ping sound that would bounce back to the detector when an object is in the path. I was thinking of generating the ping then read the sensor for the response just after the ping leaves the sender. It is not necessary to know the distance. I use a BS2.
sincerely,
Discovery
Comments
-Phil
Sincerely,
Discovery
In operation, the transmit Ping))) will send a single ping. Shortly after that (>150 us.), the receive unit will send a ping. If it doesn't hear anything after, say, 18.5 ms. (the time for a ping to go out and back for 10 ft.), it will ping again -- up to about eight times, until it hears a response. Now, it's possible that a response could come back during the receive Ping)))'s dead time. So it will be necessary to vary the time between pings to avoid that possibility. IOW, it might take several cycles of a transmit ping, followed by eight or more receive pings to detect any reflection.
The distance to the object will be proportional to the time elapsed between the transmit unit's single ping its reception by the receive unit.
This is all predicated upon the supposition that the parabolic reflector will provide enough gain and focus to allow an echo from 70 ft. away to be detected. I have no idea how big such a reflector would have to be or even whether such a scheme can work reliably. Might be worth a try, though. There are plenty of junk Dish and DirecTV antennas lying about that you could salvage. If those aren't big enough, a snow saucer might work.
Good luck!
-Phil
Here's a post from Phil back in 2010 discussing multiple Ping sensors to triangulate position. I think some of the principles from his earlier post apply here. I often think of Phil's earlier discussion of using multiple Ping sensors. I think his approach has a lot of possible applications.
Would it be practical to put reflective tape on the train cars? It might be possible to use some sort of IR detection by using retro-reflector safety tape. The specialty reflecting tape can greatly increase the return signal from IR type distance sensors. Of course IR sensors have a hard time in direct (and even indirect) sunlight.
There are certainly more expensive laser (IR laser) rangefinders which would likely work for the application you described. Unfortunately the laser range finders aren't in the same price bracket as Ping sensors.
Perhaps a better strategy would be for the receive unit to send one ping, but delayed by increasing amounts over several transmit/receive trials. That way the sensitive part of the gain setting could be "positioned" at various distances until an echo is detected.
Also, over that distance, the effects of a crosswind may not be negligible. Sound is carried by air molecules, and if the air molecules get blown aside, the ping might actually be blown off-target.
-Phil
Sincerely,
Discovery
Discovery
I thought of using a metal detector concept with the sending and receiving coils wound on a plastic sheet and three of these metal detectors mounted on three ties at the appropriate locations. I may ultimately do that but it takes some design and testing in the shop before I am confident it will work. The Hall effect devices also pose a good solution. I plan on building a test fixture that I can take to the track and perform on site testing.
Thanks Frank,
Discovery
Discovery
The electrical contact switches that I made were cast molded to the shape of the rail web as an engineering plastic and bolted to the aluminum rail. then a brass strip was bolted to the insulating plastic spaced very close to the aluminum rail at a position where the wheel flange (no matter what diameter wheel) will make contact with both the rail head and the brass strip. When the flange touches both the rail and the brass strip, this sends a contact closure signal to the BS2. Just to make certain that rain will not cause a problem with this implementation, I tested the resistance of tap water and found that it is around 500 meg ohms. If water puddles between the rail and the brass...which it shouldn't since the brass strip is mounted on the vertical surface of the insulator...the circuit will continue to work fine.
Discovery