Search found 28 matches

by sb_espressif
Fri Sep 06, 2024 2:20 pm
Forum: ESP-IDF
Topic: Serial communication with an ESP32-s3
Replies: 6
Views: 3155

Re: Serial communication with an ESP32-s3

This works! Thank you so much! What intrepid internetting, I tried searching all manner of phrases to find help with this and never came across that git link you posted, very awesome. At the risk of overstaying my welcome, I have a followup question. The above link furnishes some code that works fin...
by sb_espressif
Wed Sep 04, 2024 11:48 am
Forum: ESP-IDF
Topic: Serial communication with an ESP32-s3
Replies: 6
Views: 3155

Re: Serial communication with an ESP32-s3

Hey thank you so much! Note that the S3 has multiple UARTs, and a built-in USB-UART. You can e.g. use the USB-UART for flashing and idf-monitor'ing, and another UART (via external USB<->UART adapter) for data output. I think this is the part where I'm getting confused. Is it possible to communicate ...
by sb_espressif
Tue Sep 03, 2024 10:49 pm
Forum: ESP-IDF
Topic: Serial communication with an ESP32-s3
Replies: 6
Views: 3155

Serial communication with an ESP32-s3

Hi; I have an esp32-s3 Feather development board, and have written a PID controller that I would like to tune. I imagine the way I'd like to do this is send PID coefficients to this esp32 as it's running, then be able to check the effects of my inputs. I thought the way to do this was via serial com...
by sb_espressif
Fri Apr 19, 2024 2:09 pm
Forum: Hardware
Topic: ESP32 and PSRAM
Replies: 0
Views: 984

ESP32 and PSRAM

Hi there; I am relatively new at hardware design, and am trying to work through designing my first esp32-s3 board from scratch, with the aid of this (very helpful!) document: https://docs.espressif.com/projects/esp-hardware-design-guidelines/en/latest/esp32s3/index.html I am also referencing two oth...
by sb_espressif
Sun Mar 17, 2024 2:46 am
Forum: General Discussion
Topic: Help with SPI reading/writing to as5048a
Replies: 3
Views: 3237

Re: Help with SPI reading/writing to as5048a

It's the "this only works on half-duplex transactions" part of that particular parameter that dissuaded me from using it, as this sensor communicates using full duplex transactions.
by sb_espressif
Sat Mar 16, 2024 7:18 pm
Forum: General Discussion
Topic: Help with SPI reading/writing to as5048a
Replies: 3
Views: 3237

Re: Help with SPI reading/writing to as5048a

For any intrepid adventurers in the future who stumble upon this thread: I eventually traced my issue above to a quirk of the as5048a, which is namely that the datasheet for this sensor prescribes a minimum 350ns delay between when cs is pulled low and when the first clock cycle is sent for an SPI t...
by sb_espressif
Thu Mar 14, 2024 3:07 am
Forum: General Discussion
Topic: Help with SPI reading/writing to as5048a
Replies: 3
Views: 3237

Help with SPI reading/writing to as5048a

Hi, this is my first rodeo with SPI communication; I am trying to interact with an as5048a, which is an angular magnetic encoder with 16-bit registers: https://look.ams-osram.com/m/287d7ad97d1ca22e/original/AS5048-DS000298.pdf I am using an esp32-s3 seeed module. My problem is that I cannot seem to ...
by sb_espressif
Wed Mar 06, 2024 2:41 pm
Forum: ESP-IDF
Topic: esp32-s3 i2c failure in esp-idf 5.2
Replies: 4
Views: 5050

Re: esp32-s3 i2c failure in esp-idf 5.2

This is a great clue, thank you! TL;DR, I tried increasing my task allocation size from 2048 to 4096 and the error messages I was seeing went away. However, I still do not seem to be able to successfully communicate with an i2c device (whereas an identical circuit using a C3 and the same code does f...
by sb_espressif
Tue Mar 05, 2024 3:25 pm
Forum: ESP-IDF
Topic: esp32-s3 i2c failure in esp-idf 5.2
Replies: 4
Views: 5050

Re: esp32-s3 i2c failure in esp-idf 5.2

As I understand it, that setup uses a soon-to-be-deprecated way of communicating via i2c. The reason I think this is because my code actually WAS set up as exemplified in that link, and I saw a warning in the runtime messaging telling me the i2c.h header is outdated and to migrate to i2c_master.h. I...
by sb_espressif
Tue Mar 05, 2024 2:25 am
Forum: ESP-IDF
Topic: esp32-s3 i2c failure in esp-idf 5.2
Replies: 4
Views: 5050

esp32-s3 i2c failure in esp-idf 5.2

Hi; I recently upgraded my setup from esp-idf 5.1.2 to 5.2, and am trying to write a driver for a magnetic encoder that configures the chip via i2c. This code/driver runs fine on an esp32-c3 seeed module I have, but crashes the same way on two different esp32-s3 boards I've tried. I don't understand...