#2-Channel 0-10V I2C Digital to Analog DA...

1 messages · Page 1 of 1 (latest)

vapid cedar
#

I was looking at the module and the only power inputs are from the ESP/Arduino so the max is 5v. How does this module able to vary the output from 0-10v when the max voltage is 5v? Sorry it is dumb question!

Im not using a Meanwell type driver which accepts PWM dimming so I need a true 0-10v analog input.

The driver/ballast is connected to the mains and also the LED's. There is also a separate DIM 2 wire (+ & -) which I was going to use this instead of the manual pot as I think the + from the dim is 10v.

In the datasheet the driver/ballast states you can use the supplied 0-25-50-75-100% dimming function via a pot type box. If I was to replace that with this using 1 channel to start I could then use increments of 1% as stated in the datasheet (its either manual 25% or 1% via external controller)

Cheers

spring elk
#

Board has a 12V boost converter U1 MT3608. Makes 12V from 3.3V or 5V

vapid cedar
#

Perfect, thank you very much sir

vapid cedar
#

Cheers @spring elk you do mean boost to 10v right though?

spring elk
#

Schematic show 12v tied to Vcc on DAC chip. DAC datasheet says it can be 10-13V, 40V absolute max. So it must have internal regulation to make 10V. Analog usually has voltage headroom, rail-to-rail is a lie, there is always a few tens of millivolts you never get to. So if you put 10.00v into Vcc, might expect max voltage to be 9.95V at dac output. Based on the .5% error on datasheet.

vapid cedar
#

Well, its arrived and was hoping to convert the Arduino code to ESPHome. Don't Suppose there is a guide or something? I have scored the internet and found how to convert a sensor from IDE to ESPHome but not a DAC or similar.

The code etc is below if someone could help out:

https://wiki.dfrobot.com/SKU_DFR0971_2_Channel_I2C_0_10V_DAC_Module#target_2
https://github.com/DFRobot/DFRobot_GP8403

GitHub

Contribute to DFRobot/DFRobot_GP8403 development by creating an account on GitHub.