รหัสสินค้า | AG00759 |
หมวดหมู่ | I/O Converter/Adapter/MUX |
ราคา | 395.00 บาท |
สถานะสินค้า | พร้อมส่ง |
จำนวน | ชิ้น |
SHIPPING LIST
Num | Label | Description |
---|---|---|
1 | GND | Power GND(0V) |
2 | VCC | Power VCC(3.3~5.5V) |
3 | SIGNAL | Voltage Signal Output |
4 | I+ | Current Input |
5 | I- | Current Output |
This tutorial demo how to read the 4~20mA current signal with this module and Arduino UNO. The module input current is linear with the output voltage, as shown below:
Before uploading the sample code, it is recommended that you use a voltmeter to confirm the actual reference voltage of the ADC on the main control board, and then modify VREF in the sample code, to improve the measurement accuracy.
/***********************************************************
DFRobot Gravity: Analog Current to Voltage Converter(For 4~20mA Application)
SKU:SEN0262
GNU Lesser General Public License.
See <http://www.gnu.org/licenses/> for details.
All above must be included in any redistribution
****************************************************/
#define CurrentSensorPin A2
#define VREF 5000 // ADC's reference voltage on your Arduino,typical value:5000mV
unsigned int voltage; //unit:mV
float current; //unit:mA
void setup()
{
Serial.begin(115200);
}
void loop()
{
voltage = analogRead(CurrentSensorPin)/1024.0*VREF;
Serial.print("voltage:");
Serial.print(voltage);
Serial.print("mV ");
current = voltage/120.0; //Sense Resistor:120ohm
Serial.print("current:");
Serial.print(current);
Serial.println("mA");
delay(1000);
}
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,375,394 ครั้ง |
ผู้ชมทั้งหมด | 5,878,472 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 5 ก.ย. 2568 |