Voltage Sensor Module โมดูลวัดแรงดันไฟฟ้า โวลต์เซ็นเซอร์ (DC 0-25V)
รายละเอียด Voltage Sensor Module เซนเซอร์วัดแรงดันไฟ
This module is based on the design principles of the resistor divider, enabling the terminal interface input voltage narrow five times, Arduino analog input voltage up to 5V, then the input voltage of the voltage detection module can not be greater than 5V × 5 = 25V (3.3V if used system, the input voltage can not exceed 3.3Vx5 = 16.5V). Because Arduino AVR chips used in 10 AD, so the simulation resolution of this module is 0.00489V (5V / 1023), so the minimum input voltage detection module detects voltage 0.00489V × 5 = 0.02445V.
คุณสมบัติ Voltage Sensor Module เซนเซอร์วัดแรงดัน
- input voltage range: DC0-25V
- voltage detection range: DC0.02445V-25V
- voltage analog resolution: 0.00489V
- DC input interface: the positive terminal connected to VCC, GND negative pole
- output interface: "+" then 5 / 3.3V, " - "then GND," s "AD pins connect the Arduino
การต่อขาเซนเซอร์วัดแรงดันไฟ Voltage Sensor Module วิธีการต่อใช้งาน
- ขา - ต่อกับ กราวน์
- ขา + ต่อกับไฟ 5 หรือ 3.3 โวลต์
- ขา S ต่อกับขา A1
- ขา Vcc ต่อกับไฟที่ต้องการวัด
- ถ้าบอร์ด arduino ใช้ไฟเลี้ยง 3.3V ไฟที่วัดได้สูงสุดคือ 16.5V
- ถ้าบอร์ด arduino ใช้ไฟเลี้ยง 5V ไฟที่วัดได้สูงสุดคือ 24.9V
ตัวอย่างโคด Arduino วัดแรงดันไฟฟ้า 0-25 โวลต์สำหรับเซนเซอร์วัดแรงดัน Voltage Sensor Module For Arduino
int val11;
float val2;
void setup()
{
Serial.begin(9600);
}
void loop()
{
float temp;
val11=analogRead(1);
temp=val11/4.092;
val11=(int)temp;//
val2=((val11%100)/10.0);
Serial.println(val2);
delay(1000);
}