Closed xxjohn10 closed 2 years ago
Only one change from the example, I added a delay to give the module time to get packet.
That delay does nothing. receive()
blocks until a packet is received, or until a timeout. When receive()
ends, you either have a packet already, or you won't receive it at all.
However, that is not your primary issue. You seem to have connected a 3.3V device directly to a 5V-logic Arduino. The CC1101 most likely aren't 5V-tolerant, so you will likely damage the module. Use some logic level converter, or a 3.3V-logic Arduino.
Also, this seems somewhat strange:
D50/MISO/GDO1
Is your MISO and GDO1 tied together?
CC1101_datasheet.pdf I will step down the voltage. I believe the MISO and GDO1 is tied together based on this given datasheet. This is the data sheet for the module I am using.
MISO and GDO1 is tied together based on this given datasheet
Seems to be so, though it is quite unusual I must say.
MISO and GDO1 is tied together based on this given datasheet
Seems to be so, though it is quite unusual I must say.
Is this the reason that the Received Signal Strength is not reading/displaying correctly?
Most likely not, I'll try to replicate the issue you're seeing with my own hardware (even though I don't have the exact same CC1101 module).
I was able to replicate this issue, turns out this way due to a combination of couple minor bugs. It should be fixed now, thanks for reporting!
IMPORTANT: Before submitting an issue, please check the following:
Sketch that is causing the module fail Only one change from the example, I added a delay to give the module time to get packet.
Hardware setup
I don't have a wiring diagram, but I have the pins layout
Module used: CC1101 Wireless RF Transceiver 315/433/868/915MHZ + SMA Antenna Wireless Module
Datasheet: E07-M1101D-SMA_Usermanual_EN_v1.30.pdf
CC1101 Pins -> Arduino mega pins 1 -> PWGND 2 -> PW3.3V 3 -> D02/GDO0 4 -> D10/CSN 5 -> D52/SCK 6 -> D51/MOSI 7 -> D50/MISO/GDO1 8 -> D03/GDO02
Debug mode output Enable all debug levels and paste the Serial monitor output here.
Did not use the debug mode since the module is working but one value is not outputting correctly. Module is working but the RSSI is not changing at all. Changed the distance between transmitter and receiver, no change. Tried different examples of transmit and receive, still no change. Tried a different library with CC1101 module and the RSSI worked. Is my wiring incorrect or is there another issue? The Module is getting the message from the transmitter and displaying it, but the RSSI doesn't change. LQI is also not changing but I assume that it is supposed to be at zero.
Additional info (please complete):