06-16-2023, 01:02 PM
Hi, I'm working on a project where I need to control a 0-10V fan. I was going to use the two DAC channels on the KC868-a6 development board but without success. from the following code, I couldn't get a measurement with my multimeter
can someone help me with how to use the DAC?
Code:
/*KC868-A6 DAC CODE*/
#define DAC1 26
#define DAC2 25
void setup() {
//Serial.begin(115200);
}
void loop() {
dacWrite(DAC1, 127);
dacWrite(DAC2, 127);
delay(2000);
dacWrite(DAC1, 255);
dacWrite(DAC1, 255);
delay(2000);
}![[Image: TUu6Wq3.png]](https://i.imgur.com/TUu6Wq3.png)
![[Image: S261a41c1a8a344a0b41f29984edaf26eG.jpg_9....jpg_.avif]](https://ae-pic-a1.aliexpress-media.com/kf/S261a41c1a8a344a0b41f29984edaf26eG.jpg_960x960q75.jpg_.avif)