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!
    ![2_1601139176189_IMG_20200926_173542.jpg](Uploading 100%) ![1_1601139176189_IMG_20200926_173524.jpg](Uploading 100%) ![0_1601139176185_IMG_20200926_173518.jpg](Uploading 100%)


Log in to reply
 

Suggested Topics

11
Online

11.2k
Users

11.1k
Topics

112.5k
Posts