Using RF Modules with Raspberry Pi Pico #10313
-
Hello - I have 2 Raspberry Pi Picos running MicroPython. I am trying to use a 433 MHz RF transmitter on one Pico and a 433 MHz RF receiver on the other Pico. I am currently using
and
But the receiver prints stuff like this even when the transmitter is not transmitting. (I can't paste it here as it messes with the formatting) As an experiment, I connected the TX on one Pico to the RX of the other pico, and it was able to send the data successfully. Therefore, I believe it is the transmitter and receiver getting interference from other signals. My Question:Arduino has libraries for packet radio. (see this) Is there anything similar in MicroPython or for the Raspberry Pi Pico? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Yes, but not for these modules. See NRF24l01 which is a 2.4GHz radio. Unless a receiver is explicitly designed for use with a UART you can't stick a UART on a receiver and expect it to work. Many receivers output garbage in the absence of a signal. |
Beta Was this translation helpful? Give feedback.
-
These modules are a step above the horrible cheap ones I've seen in the past. But to echo Peter's answer, a quote from the https://linxtechnologies.com/wp/wp-content/uploads/txm-fff-lr.pdf:
So you have to encode the data yourself, usually a Manchester encoding. The receiver will typically appear to be only picking up noise. That's because they usually have automatic gain control, and a transmitter has to send a series of training pulses before the data packet to get the receiver's attention. Since there's no error correction, you have to build that into your protocol, too. You also have to be really careful about building the right antenna. Without a library for MicroPython, this will be a lot of work Peter's NRF recommendation is a good one: they do all the work of building a protocol. |
Beta Was this translation helpful? Give feedback.
-
This library may be of use for extending the basic functionality of the NRF24l01. |
Beta Was this translation helpful? Give feedback.
Yes, but not for these modules. See NRF24l01 which is a 2.4GHz radio.
Unless a receiver is explicitly designed for use with a UART you can't stick a UART on a receiver and expect it to work. Many receivers output garbage in the absence of a signal.