User Tools

Site Tools

한국어

modularfaduino:cfadca4l

CFADC-A4L

A 4-channel AD input module that can measure voltage and current. You can select current (0~20mA) or voltage (0~10V) input by setting the dip switch.

Electrical specifications

  • AD input points: 4 channels
  • Voltage input range: 0 to 10VDC
  • Current input range: 0~20mA
  • Error rate: ±0.1%
  • Resolution: Approximately 14.7Bit (0 to 26,666 values ​​returned)
  • Input response speed: approximately 5mS
  • Insulation method: Non-insulated method

Wiring method

Measurement dip switch settings

  • Set the voltage or current you want to measure with the DIP switch.
  • Only one of the V and A switches on each channel must be turned ON.
  • V=On / A=Off ⇒ Voltage measurement
  • V=Off / A=On ⇒ Current measurement

Address Setting

  • Up to 4 CFADC-A4Ls can be used in one system with different address settings.
  • The address setting method is different from other I/O modules. Caution is required.
  • This method turns on only one of the four dip switches.

How to use commands

1. #include “CFMEGA.h” library registration

2. CFNET object creation: CFNET object name CFNET cfnet;

3. Use command: Object name.analogRead();cfnet.analogRead(0,0);

-u16 analogRead(u8 address, u8 channel)

Reads the analog value of the corresponding channel of the specified address module. (about 0~26,666)

  • address: module dip switch value (0~3)
  • channel: Channel number (0~3)
#include "CFMEGA.h"
 
CFNET cfnet;
 
void setup() { Serial.begin(9600); }
void loop() {
 
 u16 CH0 = cfnet.analogRead(0, 0);
 u16 CH1 = cfnet.analogRead(0,1);
 
 Serial.print("CH0:"); Serial.print(CH0); Serial.print("\n");
 Serial.print("CH1:"); Serial.print(CH1); Serial.print("\n");
 delay(200);
 Serial.print("\n");
}

Modular FADUINO

modularfaduino/cfadca4l.txt · Last modified: 2024/07/27 15:07 by COMFILE Technology