0

Using two ultrasonic sensors together, how can I enable one before the other?

asked May 5, 2016 at 9:42
1
  • Do you have a circuit? Any code? Commented May 12, 2016 at 16:40

1 Answer 1

1

You need to tell the sensor to send their pulse using the trigger line. So triggering isn't a problem. The problem is that you might get an echo returned on both sensors, but you know which sensor sent the pulse so you can ignore the return that was received by the 'wrong' sensor in your code. So

While(1)
{
 SendPulse(SensorTx1);
 GetEcho(SensorRx1);
 SendPulse(SensorTx2);
 GetEcho(SensorRx2);
}

Is that what you mean? If not please can you expand you question?

answered May 5, 2016 at 10:33

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.