J
jh112323
I'm grateful for some advice.
I'm deep down the rabbit hole and getting out of my depth. I realise this has come up several times previously and have read and tried to understand these previous posts:
DAC controlled buck regulator
Is it possible to control a DC/DC buck converter's output voltage with the DAC of an ESP32?
I have a buck converter based on the XL4016 chip, datasheet here: https://www.makerfabs.com/desfile/files/XL4016-Datasheet.pdf
I am taking a 12V supply voltage and using the converter to regulate a range of around 4-10V. The total current will be around 4-6A. The use case is thermostatic control of Peltier modules.
I am trying to use a microcontroller - Arduino Uno and a DAC the MCP4725, to control the voltage regulation instead of the onboard trimpot, inspired by Curious Scientists videos on Youtube and his website:
https://curiousscientist.tech/blog/mcp4725-szbk07-circuit-control
My understanding is that via the feedback pin, I can use current to imitate the usual feedback loop and make the IC vary its output voltage. I've realised the chip on my buck converter is different to his example..
https://www.analog.com/en/resources...-output-voltage-in-portable-applications.html
With Kirchhoffs law of current and reading through the above site, my understanding is that at the the FB pin, where the voltage is maintained at the Vref of 1.25V, the net current into the pin is 0, i.e. I1 = I2 + I3. By changing I3, the FB pin will regulate Vout and therefore I1.
By my calculations and measured resistances in my scenario, I2 is 3.7mA (1.25V/340ohms). For a desired Vout of say 6V, I1 would be 5.4mA (4.75V/880ohms). I3 therefore should be 1.7mA, which say could be Vdac of 1V with a R3 of 147ohms.
Whilst this makes sense on paper, my prototyped setup does not behave well. I have managed to get some voltage regulation by altering the DAC output, but it fluctuates wildly, has a steep gradient of change over a tiny variation of output voltages. I've tried different resistor values for R3 at 100ohms, 470ohms, 1000ohms etc with no significant change. By my calculations and measurements, I only manage to regulate the voltage with an I3 current into the node rather than sinking it. e.g. Vdac of 2.85V with R3 of 470ohms produced a Vout of 7.1V, suggesting I3 of 6mA, although when I tried to measure it it was around 3.5mA.
I guess my questions are many:
More broadly:
Many, many thanks in advance
I'm deep down the rabbit hole and getting out of my depth. I realise this has come up several times previously and have read and tried to understand these previous posts:
DAC controlled buck regulator
Is it possible to control a DC/DC buck converter's output voltage with the DAC of an ESP32?
I have a buck converter based on the XL4016 chip, datasheet here: https://www.makerfabs.com/desfile/files/XL4016-Datasheet.pdf
I am taking a 12V supply voltage and using the converter to regulate a range of around 4-10V. The total current will be around 4-6A. The use case is thermostatic control of Peltier modules.
I am trying to use a microcontroller - Arduino Uno and a DAC the MCP4725, to control the voltage regulation instead of the onboard trimpot, inspired by Curious Scientists videos on Youtube and his website:
https://curiousscientist.tech/blog/mcp4725-szbk07-circuit-control
My understanding is that via the feedback pin, I can use current to imitate the usual feedback loop and make the IC vary its output voltage. I've realised the chip on my buck converter is different to his example..
https://www.analog.com/en/resources...-output-voltage-in-portable-applications.html
With Kirchhoffs law of current and reading through the above site, my understanding is that at the the FB pin, where the voltage is maintained at the Vref of 1.25V, the net current into the pin is 0, i.e. I1 = I2 + I3. By changing I3, the FB pin will regulate Vout and therefore I1.
By my calculations and measured resistances in my scenario, I2 is 3.7mA (1.25V/340ohms). For a desired Vout of say 6V, I1 would be 5.4mA (4.75V/880ohms). I3 therefore should be 1.7mA, which say could be Vdac of 1V with a R3 of 147ohms.
Whilst this makes sense on paper, my prototyped setup does not behave well. I have managed to get some voltage regulation by altering the DAC output, but it fluctuates wildly, has a steep gradient of change over a tiny variation of output voltages. I've tried different resistor values for R3 at 100ohms, 470ohms, 1000ohms etc with no significant change. By my calculations and measurements, I only manage to regulate the voltage with an I3 current into the node rather than sinking it. e.g. Vdac of 2.85V with R3 of 470ohms produced a Vout of 7.1V, suggesting I3 of 6mA, although when I tried to measure it it was around 3.5mA.
I guess my questions are many:
- Am I measuring some things wrong? Could I2 be completely different, since otherwise
- The DAC in this case always going to act as a current sink?
- Is my breadboarded setup with wires all over the place causing significant interference?
- I have done the tests with the presence of a load on the Vout, is this wrong?
- Is this beyond the limits of my DAC? (I read about voltage DAC vs current DAC control - DS4432 being a good choice)
More broadly:
- Should I just change DAC to the DS4432 as mentioned in another post?
- Am I better off using a digital potentiometer rated to the max Vout (12)?
- Is there something about the XL4016 compared to the LM25116 (found on the SZBK07 used by Curious Scientist) that is preventing me from succeeding?
Many, many thanks in advance