Hey guys,
Unfortunately, I donβt own one of the esp32s3 boards I was wondering if some of you guys could help me testing
I would like to know what is the elapsed time of analogRead on that board.
So if someone could let me know what would be the output of this code that would be very very helpful.
void setup() {
Serial.begin(115200);
}
int t = 0;
unsigned int timestamp = micros();
int tmp_read;
void loop() {
tmp_read = analogRead(A0); // read analog input from any analog pin - feel free to change it
if(t++> 10000){ // 10k analog reads
t = 0;
Serial.println(micros() - timestamp);
timestamp = micros();
}
}
Unfortunately, itβs very long. Arround 60us for one analogRead. It is the same for ESP32 based boards.
With the custom driver in our library we are reading analog output with latency of around 10us, which is still very long, but manageable.
Since this driver is not working with ESP-S3, we will not be able to support the low side current sensing with the ESP32-S3 for now.
Hello,
I am also working on this issue, as porting FOC towards ESP32 would create new perspectives on IOT. Unfortunately, on the new ESP32-C6, I am limited at 27 kHz using newest ESP IDF. Our usual implementation is on S32K3, where we can implement nearly isochronous AD of two phase currents. For our motors the discrepency in time is not usable. Did you try i2s with triggering, I am fuddling with the implementation.