I have no doubt that someone here can tell me why I cannot initiate communication with my sx1276:
My setup:
> ESP32-WROVER-B
> Micropython: esp32spiram-20210902-v1.17.bin
> Module: https://github.com/lemariva/uPyLoRaWAN
- config.py has been modified according to my circuit layout
- sx1276.py has been copied to the ESP32
Reproducing the problem:
> At the REPL I run the following:
Code: Select all
from config import *
from machine import Pin, SPI
from sx127x import SX127x
device_spi = SPI(baudrate = 10000000,
polarity = 0, phase = 0, bits = 8, firstbit = SPI.MSB,
sck = Pin(device_config['sck'], Pin.OUT, Pin.PULL_DOWN),
mosi = Pin(device_config['mosi'], Pin.OUT, Pin.PULL_UP),
miso = Pin(device_config['miso'], Pin.IN, Pin.PULL_UP))
lora = SX127x(device_spi, pins=device_config, parameters=lora_parameters)
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sx127x.py", line 121, in __init__
Exception: Invalid version.
> Powered from USB and from 3V lithium cell --- both yield same result
> Installed 100nF and 1uF capacitor over the sx1276 module
> Removed transistor Q1 and powered the sx1276 direct from VCC
> Swapped out sx1276 module for another one
> Copper on the board is 12mil 1oz
> This is the 915MHz version; 78mm wire soldered to PCB as antenna
Please would someone advise me further?
Many many thanks
> Schematic > PCB