@evanmars : it will print only first value of distance. As after this statement, compliers goes to radio.write statement, where it got stuck and keep on sending first value.
gavanpreet28: @evanmars : it will print only first value of distance. As after this statement, compliers goes to radio.write statement, where it got stuck and keep on sending first value.
It would appear that radio.write() is not returning. That is NOT the same as sending the same (wrong) value over and over (which is what you said was happening).
Have you tried the examples that come with the library? Can you send ANYTHING over and over?
CAN YOU BE ABLE TO RECEIVE THE DISTANCE VALUES IN THE RECEIVER AFTER CHANGING TRIG,ECHO PIN TO 2,3 OR YOU MADE OTHER CHANGES IN THE CODE DISPLAYED OVER TOP FOR TRANS/RECEIVER IF SO TELL THOSE CHANGES
gavanpreet28:
Issue solved by changing trigPin and echoPin from 9,10 to 2,3.
CAN YOU BE ABLE TO RECEIVE THE DISTANCE VALUES IN THE RECEIVER AFTER CHANGING TRIG,ECHO PIN TO 2,3 OR YOU MADE OTHER CHANGES IN THE CODE DISPLAYED OVER TOP FOR TRANS/RECEIVER IF SO TELL THOSE CHANGES
gavanpreet28:
Issue solved by changing trigPin and echoPin from 9,10 to 2,3.
CAN YOU BE ABLE TO RECEIVE THE DISTANCE VALUES IN THE RECEIVER AFTER CHANGING TRIG,ECHO PIN TO 2,3 OR YOU MADE OTHER CHANGES IN THE CODE DISPLAYED OVER TOP FOR TRANS/RECEIVER IF SO TELL THOSE CHANGES