Does DAC support implemented?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
tamzur
New user
Posts: 3
Joined: 09 Apr 2023, 08:19

Does DAC support implemented?

#1 Post by tamzur » 09 Apr 2023, 08:40

Hi,
Does DAC support implemented?

User avatar
Ath
Normal user
Posts: 3519
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Does DAC support implemented?

#2 Post by Ath » 09 Apr 2023, 10:11

There is an analog output available on many PCF8591 boards, that can be enabled in the settings of the plugin. The output can then be controlled by the `analogout,<value>` command, where <value> can be in the range 0..255. Have used that to test the analog output, by connecting it to one of the analog inputs of that board ;)
Haven't found other options yet, but using a R/C combination connected to a GPIO pin and using the 'pwm' command, you can have a, somewhat crude, analog output.
/Ton (PayPal.me)

tamzur
New user
Posts: 3
Joined: 09 Apr 2023, 08:19

Re: Does DAC support implemented?

#3 Post by tamzur » 09 Apr 2023, 13:56


User avatar
Ath
Normal user
Posts: 3519
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Does DAC support implemented?

#4 Post by Ath » 09 Apr 2023, 16:33

tamzur wrote: 09 Apr 2023, 13:56 What about this? https://github.com/letscontrolit/ESPEas ... 46_DAC.ino
Someone try?
That plugin is on the PluginPlayground only, and will need some work to be able to run on current mega branch.

I've reserved PluginID P152 for this plugin on the Github issue tracker. Will try to add that, as it doesn't seem too difficult to adapt. We're locking out the ESP8266 though, as the plugin uses an ESP32-only feature DAC1 and DAC2 (and ESP32-S2 uses different GPIO pins than ESP32, and the ESP32-C3 doesn't support DAC output at all...)
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3519
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Does DAC support implemented?

#5 Post by Ath » 10 Apr 2023, 16:41

tamzur wrote: 09 Apr 2023, 13:56 What about this? https://github.com/letscontrolit/ESPEas ... 46_DAC.ino
Someone try?
I have created Pull Request #4600 to migrate this plugin from the PluginPlayground to the Mega branch. A Github Actions build is running, you can download here, once the build is ready, for testing. You will need a (free) Github account, and logged in, to be able to download.
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3519
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Does DAC support implemented?

#6 Post by Ath » 10 Apr 2023, 16:53

I found this interesting Instructables article, that compares the DAC output to a simple RC PWM to Analog converter.
/Ton (PayPal.me)

tamzur
New user
Posts: 3
Joined: 09 Apr 2023, 08:19

Re: Does DAC support implemented?

#7 Post by tamzur » 10 Apr 2023, 21:13

Dude, you're awesome

User avatar
Ath
Normal user
Posts: 3519
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Does DAC support implemented?

#8 Post by Ath » 21 Apr 2023, 14:58

tamzur wrote: 10 Apr 2023, 21:13 Dude, you're awesome
I've initiated a fresh build (with the latest merged code in it) in this GH Actions run. Can you update (you will need a free GH account to download), test and report your findings here?
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 30 guests