This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cfnet:cfadca4l [2026/02/21 23:49] – created - external edit 127.0.0.1 | cfnet:cfadca4l [2026/02/22 00:07] (current) – [Setting the module's address] admin | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| =====Wiring method===== | =====Wiring method===== | ||
| - | {{: | + | {{.: |
| ===== Measurement dip switch settings ===== | ===== Measurement dip switch settings ===== | ||
| Line 22: | Line 22: | ||
| * V=Off / A=On => Current measurement | * V=Off / A=On => Current measurement | ||
| - | {{ : | + | {{ .: |
| ===== Setting the module' | ===== Setting the module' | ||
| * Up to 4 CFADC-A4Ls can be used in one system with different address settings. | * Up to 4 CFADC-A4Ls can be used in one system with different address settings. | ||
| Line 28: | Line 28: | ||
| * This method turns on only one of the four dip switches. | * This method turns on only one of the four dip switches. | ||
| - | {{ : | + | {{ .: |
| - | =====How to use the API===== | + | |
| - | 1. < | + | [[index|CFNET]] |
| - | 2. CFNET object creation: '' | ||
| - | 3. Call the function(s): | ||
| - | ====-u16 analogRead(u8 address, u8 channel) ==== | ||
| - | Reads the analog value of the corresponding channel of the specified address module. (about 0~26,666) | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | <code c> | ||
| - | #include " | ||
| - | |||
| - | CFNET cfnet; | ||
| - | |||
| - | void setup() { Serial.begin(9600); | ||
| - | void loop() { | ||
| - | |||
| - | u16 CH0 = cfnet.analogRead(0, | ||
| - | u16 CH1 = cfnet.analogRead(0, | ||
| - | |||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | [[modularfaduino: | ||