Voltage detection module VOLTAGE SENSOR voltage sensor electronic building block
Module introduction:
This module is designed based on the principle of resistance division voltage, which can reduce the voltage of the terminal interface input by 5 times, and the maximum input voltage is 5V, so the input voltage of the voltage detection module cannot be greater than 5V × 5 = 25V (if the 3.3V system is used, the 3.3V system is used for system, The input voltage cannot be greater than 3.3VX5 = 16.5V).Because the AVR chip used is 10 -bit AD, the analog resolution of this module is 0.00489V (5V/1023), so the voltage detection module detection input into the minimum voltage of 0.00489V × 5 = 0.02445V.
parameter:
Voltage input range: DC0-25V
Voltage detection range: DC0.02445V-25V
Voltage simulation resolution: 0.00489V
DC input interface: terminal is connected to VCC, negative electrode connecting GND
Output interface: "+" connect 5/3.3V, "-" to GND, "s" connected AD pin
Reference code:
#include
int Val11;
int Val2;
void setup ()
{{
pinmode (LED1, OUTPUT);
Serial.begin (9600);
Serial.println ("emartee.com");
Serial.println ("Voltage:");
Serial.print ("v");
}
void loop ()
{{
float test;
Val11 = Analogread (1);
temp = Val11/4.092;
Val11 = (int) test; //
Val2 = ((Val11%100)/10);
Serial.println (Val2);
delay (1000);
}
This module is designed based on the principle of resistance division voltage, which can reduce the voltage of the terminal interface input by 5 times, and the maximum input voltage is 5V, so the input voltage of the voltage detection module cannot be greater than 5V × 5 = 25V (if the 3.3V system is used, the 3.3V system is used for system, The input voltage cannot be greater than 3.3VX5 = 16.5V).Because the AVR chip used is 10 -bit AD, the analog resolution of this module is 0.00489V (5V/1023), so the voltage detection module detection input into the minimum voltage of 0.00489V × 5 = 0.02445V.
parameter:
Voltage input range: DC0-25V
Voltage detection range: DC0.02445V-25V
Voltage simulation resolution: 0.00489V
DC input interface: terminal is connected to VCC, negative electrode connecting GND
Output interface: "+" connect 5/3.3V, "-" to GND, "s" connected AD pin
Reference code:
#include
int Val11;
int Val2;
void setup ()
{{
pinmode (LED1, OUTPUT);
Serial.begin (9600);
Serial.println ("emartee.com");
Serial.println ("Voltage:");
Serial.print ("v");
}
void loop ()
{{
float test;
Val11 = Analogread (1);
temp = Val11/4.092;
Val11 = (int) test; //
Val2 = ((Val11%100)/10);
Serial.println (Val2);
delay (1000);
}
Product Attributes | |
Brand | none |
Radio frequency type | Power module |
Unlimited Blocks, Tabs or Accordions with any HTML content can be assigned to any individual product or to certain groups of products, like entire categories, brands, products with specific options, attributes, price range, etc. You can indicate any criteria via the advanced product assignment mechanism and only those products matching your criteria will display the modules.
Also, any module can be selectively activated per device (desktop/tablet/phone), customer login status and other criteria. Imagine the possibilities.
$0.14
- Stock: In Stock
- Model: ULLS1655
- Weight: 0.01kg