[Board]: Seeed Xiao ESP32S3 + SX1262 for xiao (not the kit)
SOC
ESP32
Lora IC
SX1262
Product Link
https://www.seeedstudio.com/Wio-SX1262-for-XIAO-p-6379.html
Description
Hi Meshers! I have bought the board from the link, as I had some "Xiao ESP32-S3" laying around and decided I do not need the kit. It turned out, that the board in question uses different pins for the LoRA chip, as it does not use Seeed's 'sense' connector, but old-school soldiered pins. I have managed to rewrite the firmware by only making changes to pins_arduino.h and variant.h files. I think it is useless to add a new HardwareModel, but maybe a board variant, with proper explanation of the difference between the sold "Kit" version and the alternative "DIY" approach.
I'm very interested in your changes. I am working on a carrier board for Xiao and a 1 watt radio.Already have the nRF version working but it would save me some time if I could look at your variant files for the ESP32S3 version.
Nothing spectacular, only rewritten some of the pins. The boards I have used: SKU: 113010003 Wio-SX1262 for XIAO SKU: 113991114 Seeed Studio XIAO ESP32S3 I used /variants/seeed_xiao_s3/variant.h as a template, and made the changes described below.
pins_arduino.h
static const uint8_t SS = 5; // was 41
variant.h
#define HAS_GPS 0 // (not actually required, on the test board I do not plan using GPS)
//#define USCREEN_SSD1306 // (as above)
#define LORA_CS 5 // was 41
#define LORA_RESET 3 // was 42
#define LORA_DIO1 2 // was 39
//#define LORA_DIO2 5 // was 38 (not sure about that, could not find DIO2 exposed according to Seeed's documentation)
#define SX126X_BUSY 4 // was 40
#define SX126X_RXEN 6 // was 38
bump
Nothing spectacular, only rewritten some of the pins. The boards I have used: SKU: 113010003 Wio-SX1262 for XIAO SKU: 113991114 Seeed Studio XIAO ESP32S3 I used /variants/seeed_xiao_s3/variant.h as a template, and made the changes described below.
pins_arduino.h
static const uint8_t SS = 5; // was 41variant.h
#define HAS_GPS 0 // (not actually required, on the test board I do not plan using GPS) //#define USCREEN_SSD1306 // (as above) #define LORA_CS 5 // was 41 #define LORA_RESET 3 // was 42 #define LORA_DIO1 2 // was 39 //#define LORA_DIO2 5 // was 38 (not sure about that, could not find DIO2 exposed according to Seeed's documentation) #define SX126X_BUSY 4 // was 40 #define SX126X_RXEN 6 // was 38
Thank you very much it works :) the same thing with xiao esp c6 would be great haha
Maybe make a PR?
PR7388 doesn't close this issue. That PR addresses the ESP32S3-SX1262 KIT that uses the Wio-SX1262 V1.1 board in a non-standard way. This Issue revolves around using the Wio-SX1262 v1.0 board, shown here:
The other PR will not work because it tries to remap the SDA/SCL pins to pins D5 and D6 respectively. Unfortunately, on this board, this maps to the RF_SW pin on the SX1262, which causes the I2C bus scan to hang for anywhere from 30 seconds to almost 2 minutes:
INFO | ??:??:?? 5 Scan for i2c devices
DEBUG | ??:??:?? 5 Scan for I2C devices on port 1
INFO | ??:??:?? 117 No I2C devices found
DEBUG | ??:??:?? 117 acc_info = 0
I don't know if we can map SDA to pin 0 or not, but we might just wind up with no I2C on this variant. There's just not enough pins on these micro-footprint devices.
** Images pulled from https://core-electronics.com.au/xiao-wio-sx1262-lora-module.html
Correct, when i first started i thought they shared the same pin layout but they dont unfortunately, PR is addressing the KIT version sold not the WIO hat one.
Ok, I'm working on a PR for the Kit version (labeled v1.0 on the silkscreen). I have it working, but I2C scan takes >100 seconds at boot up. I'm going to remap the I2C pin to the boonies and see if that works. Are we ok releasing something that we know I2C won't work on - i.e. no displays or sensors will work with this variant?
I feel positive since its enabling more devices to be used or old dead ones to be fixed, i would just add a note mentioning that I2C is not enabled for that device in that case
It might be possible to use UART TX as an I2C pin, since even with a GPS attached, there's no real reason to send data TO a GPS. I'll see if I can get baseline stuff working, then move towards I2C.
Hi. I'm facing the same issue. If anyone has a valid firmware for the old XIAO ESP32S3 (not the one included with the kit) with the SX1262 HAT, I would greatly appreciate it. Thank you