DAC

For general Flowcode discussion that does not belong in the other sections.
Post Reply
bdjbuster
Posts: 14
http://meble-kuchenne.info.pl
Joined: Tue Dec 15, 2020 6:16 pm
Been thanked: 1 time

DAC

Post 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.
Attachments
test323.fcfx
(9.53 KiB) Downloaded 292 times

BenR
Matrix Staff
Posts: 1989
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 523 times
Been thanked: 710 times

Re: DAC

Post 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 2980 times
Let me know how you get on.

BenR
Matrix Staff
Posts: 1989
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 523 times
Been thanked: 710 times

Re: DAC

Post 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.

Post Reply