Hello Good Friends
I am using four ultrasonic sensors and PIC 18F462 to measure wind speed and direction. For each sensor pair (North-South and East-west) I want to send one 40kHz signal and wait until the signal is received by the opposite sensor and then calculate the time of flight. Then again the signal is sent to the opposite sensor. The same thing happens to the other sensor pair.
My problem is that I do not know how to connect the sensors such that measuring back and forth is possible.
I am trying to do the programming in C but I cannot calculate the time of flight so far.
May you please help me with any possible circuits and codes that may help me complete this task successfully.
Thanks Good Friends
Mehlo
I am using four ultrasonic sensors and PIC 18F462 to measure wind speed and direction. For each sensor pair (North-South and East-west) I want to send one 40kHz signal and wait until the signal is received by the opposite sensor and then calculate the time of flight. Then again the signal is sent to the opposite sensor. The same thing happens to the other sensor pair.
My problem is that I do not know how to connect the sensors such that measuring back and forth is possible.
I am trying to do the programming in C but I cannot calculate the time of flight so far.
May you please help me with any possible circuits and codes that may help me complete this task successfully.
Thanks Good Friends
Mehlo