This is a DAC module that can output 0~10VDC voltage.
* Up to 8 CFDAC-1Vs can be used in one system with different address settings of 0x00~0x07.
1. <html>
#include "CFMEGA.h"
</html> library registration
2. CFNET object creation: CFNET object name ⇒ CFNET cfnet;
3. Call the function(s): Object name.analogWrite(); ⇒ cfnet.analogWrite(0, 0, 409);
Outputs the voltage (0 ~ 10V) corresponding to the provided data value to the channel of the module at address.
address: The address of the module as configured by its DIP switch (0~7)channel: Channel number (0~1)data: 0 ~ 4094 values (0 ~ 10Vdc)#include "CFMEGA.h" CFNET cfnet; void setup() { } void loop() { cfnet.analogWrite(0, 0, 409); //CH0 1V cfnet.analogWrite(0, 1, 2047); //CH1 5V delay(500); }