Page 1 of 1

DAC

Posted: Wed Jan 06, 2021 6:29 pm
by bdjbuster
Hello,


Hello, i can't get the DAC working, can someone help me with this? I have an ESP wroom 32. I have also included the led on the board in the program and it blinks. but have no change on the DAC ports.

Re: DAC

Posted: Thu Jan 07, 2021 9:55 am
by BenR
Hello,

I've removed some of the code in your project and then it became apparent what the problem was. Currently you are outputting 250 but then almost immediatley outputting 0 again. You should instead have the second delay after the setoutput(250).
DAC.jpg
DAC.jpg (30.28 KiB) Viewed 2860 times
Let me know how you get on.

Re: DAC

Posted: Thu Jan 07, 2021 10:07 am
by BenR
Looks like the pin assignment might be off too, I'm on with fixing it now.

DAC1 is on pin GPIO25 and DAC2 is on GPIO26 which is the reverse of what we have now.

Edit. Should be sorted now via the update system.