i have problem coding with using tsop4p38 as an receiver. and the transmitter will be put on the back of the user . the transmitter will produce 38khz. i have studied its data sheet where the closer the receiver with the transmitter. the bigger the length of the pulse.i want to make the motor stop while the receiver and transmitter is 30 cm between. as if the distance is more than that.the motor will move. but how im about to coding it. especially the condition coding i mentioned.concluded my trolley follows the user...can anyone help me please~ or give me an example of its coding


Last edited: