SPI interface on Waveshare ESP32-C6-WROOM-1

I feel like I've read myself around in circles here. haha. I'm trying to figure out how to hook up SPI connection to the Waveshare ESP32-C6-WROOM-1 Module (MOSI, MISO, SCK and CS). I've mostly worked with the simple 2 Wire I2C connections in the past and can't seem to get a straight answer (maybe because there isn't one?). I've tried multiple different methods for detecting the SPI, including a couple of pieces of code, etc. I've read that I may have to define the connections myself, as well. Any help or references to something to read to get a better understanding would be much appreciated! I'm looking to hook up an AS3935 Lightening Detector module.

which Tools>Board do you select?

try running the Finding your ESP32 Board’s Default SPI Pins code from ESP32 SPI Communication: Set Pins, Multiple SPI Bus Interfaces, and Peripherals
if I select Tools>Board ESP32C6 Dev module my ESP32C6_Dev_Board displays

MOSI: 19
MISO: 20
SCK: 21
SS: 18
SDA: 23
SCL: 22

then try connecting your AS3935 to the default SPI pins

possibly try the as3935 library?

1 Like

Running this: ESP32 SPI Communication: Set Pins, Multiple SPI Bus Interfaces, and Peripherals

I get pretty much nothing in the serial monitor.

Just this output: ESP-ROM:esp32c6-20220919

I'm on ESP32 version 3.1.1 in the IDE.

I find to get Serial Monitor output on my ESP32C6 under
Tools set USB CDC On Boot > Enabled

1 Like

That did it! Thanks so much. Never had reason to change that with my S3s! Lol. Thanks guys.

does the AS3935 work OK?

1 Like

Yes. It is reading out to the serial monitor correctly. Im going to play around with a couple of 70cm/2m radios and my HF rig to see if I may need to do some adjustments to sensitivity and all that, but main goal for today was getting it up and working with sample code. I do appreciate the assistance!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.