I am testing to place two ultrasonic sensor in opposite of each other...
The result of the test for now is, that the sensor output strange values like 1-4cm en 1149cm without an object on the track.
I am looking too generate a pulse that can be recognized from which ultrasonic transmitting ultrasonic sensor the signal comes?
I am thinking on pulses short long, like kind of protocol that sends bytes on a certain timing chart. Maybe I am thinking to far... The only think I need too know is from which sensor the signal comes. I am open for suggestions.
I am open for suggestions.
I suggest you post your code.
I suggest you post your schematic.
I suggest you tell us which sensors you are using
I am using the NewPing.h and sensor hc-sr04.
You might use the sr04 o/p as a carrier that is modulated to send/receive information. Most likely, yesterday's ping, old ping or new ping is not going to have the capability to modulate the carrier. Also note, the typical sr04 receiver is not 40Khz but 38Khz, FM modulation may not be the best choice as the 38Khz approaches f roll off. There are mentions of how to modify the sr04 to tune the receiver to 40Khz; if you have good SMD soldering skills, go for it.
When just one sr04 is used do you get the stranger values?
What is it that you are trying to accomplish?
What is the o/p? Is it the sound generators or rounded rectangle component?
When I am using one ultrasone senor is the signal normal.
I want to determe where a person/persones is/are between two points.
The_Specialist:
What is the o/p? Is it the sound generators or rounded rectangle component?
op= out put.
The_Specialist:
Is it the sound generators or rounded rectangle component?
sine wave
The_Specialist:
When I am using one ultrasone senor is the signal normal.
You may need to increase time between each sr04 transmitting. It seems there are still residual sound pulses bouncing around.
The_Specialist:
I want to determe where a person/persones is/are between two points.
FYI, the sr04 has a transmitted cone of 15 degrees. Maths can be done to find out width of transmitted frequency to distance, You may find that the cast of the net is quite wide as the distance of detection range increases.
After a year of trying to get different schemes to work with an sr04, I came to conclude that the sr04 will need modification to do what i was looking for and, after pricing the modifications, I determined that using a LIDAR might workout better.
I have a TFMiniPlus sitting on top of a platform that is torqued by a servo that scans out to 600cm. I am able to make an 'image' of the scanned distance and I got from there. Plastic geared servos last about 1 week of continuous operation, metal geared servos last over a year of 24/7 operation. I have 'imaged' a 2 inch wide object at 400cm.
Thank you Idahowalker for helping me further on this topic. That's right, I will work better on larger distance. Butt first it need to work small, to size it bigger.
I am already using the median and now on your advise i have modified the MAX_SENSOR_DELAY and I put it on
to 40000. It's working now for 10 minutes without strange values.
Which library do you use with the TFMiniPlus? Can it detect the present of a person?