Our webstore uses cookies to offer a better user experience and we recommend you to accept their use to fully enjoy your navigation.
View larger
0104110000083234
New product
Voltage Sensor Module
0 Item Items
This product is no longer in stock
Warning: Last items in stock!
Availability date:
This module is designed based on the principle of resistive voltage division, which can reduce the input voltage of the terminal interface by 5 times. The maximum analog input voltage of Arduino is 5V, so the input voltage of the voltage detection module cannot be greater than 5V×5=25V (if 3.3V is used system, the input voltage cannot be greater than 3.3Vx5=16.5V). Because the AVR chip used by Arduino is 10-bit AD, the analog resolution of this module is 0.00489V (5V/1023), so the minimum input voltage detected by the voltage detection module is 0.00489V×5=0.02445V.
#include <Wire.h>
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 temp;
val11=analogRead(1);
temp=val11/4.092;
val11=(int)temp;//
val2=((val11%100)/10);
Serial.println(val2);
delay(1000);
}
Don't delay. Buy today.
USB Type C Adapter to HD useful for...
$10.79
4x8 mm Coreless Vibration Motor See...
$1.20
This 2-channel bidirectional level translator...
$0.48
White Plastic Case (125 x 80 x 32 mm) See...
$2.40
3 mm 8x8 Red Dot Matrix
$1.67
Raspberry Pi Zero 2 W LIMITED TO ONE PER...
$20.55
40 mm Pink Propeller See description for more...
$0.24
This is a 2-channel 3 W miniature class D audio...
$0.72
BJT Transistor Assortment Kit: It includes the...
$6.00
High gain audio amplifier based on the LM386...
$1.56