what do you mean by trial and error? pano ko sya gagawin in circuit? kc kahit sana digital signal between the receiver and transmitter may ma recieve ako para sa range nya kung gano na cla kalayo sa isatisa, kasi ang gamit ko ay UHF Data Transceiver ng e-gizmo then gusto ko sana mag lagay ng indicator pag lalagpas na sya sa 50meter or pag humihina na ung signal nya para ma sabihan ung user na wag na lumayo pa at baka maputol na ung connection.
tnx
hindi 'yan kaya directly ng UHF transmitter.
the most accurate way to do this is by radar or sonar.
pero merong way to use the UHF transmitters, kailangan nga lang ng Tx at Rx sa bawat device. bale magpapadala 'yung isang device ng interrogation, then sasagot 'yung kabila ng reply. tapos ime-measure 'yung time difference between the Stop bit nung interrogation at nung Start bit nung reply. 'yung time nun, deduct 'yung latencies ng system, divide by 2, multiply by speed of light = distance between the 2.
sa 50m niyo, kailangan ma-detect niyo 'yung 333.33ns para malaman 'yung layo.
for further reading, check this:
http://en.wikipedia.org/wiki/Distance_measuring_equipment