Open inspectorgrowadmin opened 1 year ago
How do you set voltage in the dac?
I had a success with following:
fan:
The example at github (below) did not work well - the voltage change was not linear to the slider.
light:
Can you post full code please?? Also, how do you set 0-10v or 0-5v in the dac?? Thanks
I have updated the original post with the full code. I haven't checked if its been merged into the ESPHome branch yet so adding the external GitHub still might be needed.
FWIW the gp8403 component is in esphome upstream and you'll get a linear output voltage by setting gamma_correct: 0
.
Just thought I would let you all know that Jesse kindly integrated the module into ESPHome. Its not part of the main branch yet but you can see the PR here: https://github.com/esphome/esphome/pull/4495
You can pull it from the git using this at the start of your ESPHome config.yaml:
Link to the module: https://wiki.dfrobot.com/SKU_DFR0971_2_Channel_I2C_0_10V_DAC_Module