Arduino Nano ESP32 DAC pin

I bought Arduino Nano ESP32 today and I have check the manual for the DAC pin. I couldn't find it. I would appreciate any response.

the task I have is :slight_smile:

I have an analog sensor connected to the ADC pin and I want to feed the digital output of the ADC to the DAC pin.

Thanks but there is no Arduino Nano ESP32 on the attached file

This is the link to the documentation but I can find the DAC pin.
https://docs.arduino.cc/tutorials/nano-esp32/cheat-sheet/

There is no "DAC".
There is I2S.

It seems that GPIO25,26 are not exposed to the user on the Arduino Nano ESP32.
Leo..

looking at Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6 the ESP32-S3 column has ? against the DAC

Of course it shows as there is a DAC in the comparison link you provided BUT… as Wawa mentioned

Use I2S as @runaway_pancake mentioned

Yes! The following digrams validate the above comment.

Any idea why is the following sketch not being compiled in Nano ESP32; but, it is compiled in ESP32 classic? (dacWrite() is not recognied under Nano ESP32)

#include <esp32-hal-dac.h>
#define DAC1 12  //an attempt to route the DAC1's output on DPin-12 of NanoESP32

void setup()
{
  Serial.begin(115200);

}

void loop()
{ // Generate a Sine wave
  // int Value = 255; //255= 3.3V 128=1.65V
  for (int i = 0; i < 255; i = i + 10)
  {
    dacWrite(DAC1, i);

    delay(1000);
  }
}

It's not a matter of re-mapping.
"DAC1 /2" seem misnomers anyway (those are the I2S pins).

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