1
\$\begingroup\$

I have an rf transmitter and receive set up on a basic circuit so that when I connective data pin of the transmitter to the 5v, the receiver should detect it and the LED turns off. This mostly works but when the transmitter isn’t connected, the LED flickers from dim to bright constantly.

Also: sometimes when the transmitter is connected, the LED will flicker on for a very short time.

Is there a way to make the LED a constant ON/OFF?

\$\endgroup\$

1 Answer 1

2
\$\begingroup\$

The receiver has what is called automatic gain control (AGC). It basically amplifies everything it receives to a stable level, and when the transmitter is off, there is no signal and it amplifies the received noise to a stable level and this is what you see on output pin.

Unless there is no output for a received signal strength indicator (RSSI) that you can use to pass the received signal to LED only when the received signal is strong enough, there is not much ways of keeping the LED off.

Be aware that these types of modules usually do not work well or at all with constant input like you are using them now. They basically require that the transmitted data has transitions and on average 50% high and 50% low. Easy job for microcontrollers to use something like manchester coded data packets to transmit commands reliably to set LED state on or off.

\$\endgroup\$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.