Raspberry pi and RFM69HCW
-
I have Raspberry Pi 4, and RFM69HCW radio module. I use the below code, but I get the following error. Changing the baudrate does not help. Attached you can see the wiring.
import board
import busio
import digitalio
import adafruit_rfm69
RADIO_FREQ_MHZ = 433.0
CS = digitalio.DigitalInOut(board.D8)
RESET = digitalio.DigitalInOut(board.D5)
print(board.SCK)
print(board.MOSI)
print(board.MISO)
spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
print(spi.frequency)
rfm69 = adafruit_rfm69.RFM69(spi, CS, RESET, RADIO_FREQ_MHZ,baudrate=100000)#Error message:
%Run rfm69_adafruit.py
11
10
9
100000
Traceback (most recent call last):
File "/home/pi/Documents/rfm/rfm69_adafruit.py", line 23, in <module>
rfm69 = adafruit_rfm69.RFM69(spi, CS, RESET, RADIO_FREQ_MHZ,baudrate=100000)#
File "/usr/local/lib/python3.7/dist-packages/adafruit_rfm69.py", line 287, in init
"Failed to find RFM69 with expected version, check wiring!"
RuntimeError: Failed to find RFM69 with expected version, check wiring!
  
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login