(SKU:RB-02S009)Analog Voltage Sensor

From ALSRobot-Wki
Jump to: navigation, search
Dianya.jpg

Contents

Product overview

Due to the various electronic products, power supply voltage is also each are not identical, to detect requires an appropriate voltage detection module and a controller. Interface controller simulation testing up to 5 v input voltage, that is greater than 5 v voltage will not be able to detect. 2011 new voltage detection module can solve this problem, achieve greater than 5 V voltage, the module design, on the basis of the principle of resistance partial pressure can make the red terminal interface input voltage to reduce the five times the maximum 5 V analog input voltage, the voltage detection module of the input voltage is not greater than 5 V x 5 = 25 V (if use 3.3 V system, the input voltage is not greater than 3.3 Vx5 = 16.5 V). Because the AVR chip used for 10 AD, so this module simulation resolution of 0.00489 V (5 V / 1023), so the voltage detecting module in minimum input voltage of 0.00489 V * 5 = 0.02445 V. By 3 p sensor cable receiving sensor expansion board, not only can easily realize the size of the battery voltage detection, monitoring the interactive media works or robot battery power supply of electricity, also can make the voltage by IICLCD1602 LCD module display voltage monitor.

specification

  1. Input voltage range:DC0-25V
  2. Voltage detection range:DC0.02445V-25V
  3. Analog voltage resolution:0.00489V
  4. Packing: electrostatic bag sealing
  5. weight :4g

Method of use

Pin definition

  • S:Signal output
  • +:(VCC)
  • -:(GND)
  • VCC DC input interface: red terminals anode, cathode connect to GND

Connection methods

  • By 3 p sensor cable plug received Carduino UNO R3 controller board using special sensor extension
Dianyajiexian.jpg

Application of routine

sample program

int analogpin=0;                             
int val,val5;                 
int val2=0;                  
int val3=0;                   
int val4=0;                  
void setup()
{
  Serial.begin(9600);        
}
void loop()
{
  int val,val5;
  float val1;
  val=analogRead(analogpin);  
  val1=val/3.9;
  val5=(int)val1;
  val3=0x30+val5/100;
  val2=0x30+(val5%100)/10;
  val4=0x30+val5%10;
  Serial.print(val3,BYTE);      
  Serial.print(val2,BYTE);       
  Serial.print(".");             
  Serial.print(val4,BYTE);       
  Serial.println("V");          
  delay(100);                   
}

Application effect

Test voltage detection sensor serial simulation values

Products related to recommend

Buy address:[1]

Personal tools
Namespaces

Variants
Actions
Navigation
Tools