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.
This 4x12 mm miniature motor with 0.6 mm shaft...
$2.39
Ferrule Connector Kit (400 pcs) See...
$7.20
15000 RPM Motor See description for more...
$1.20
3.5 mm Stereo Audio Jack Module See...
$0.47
The Plusivo Micro development board is not...
$4.80
Name: LED bright red red 3 mm LED Attributes:...
$0.09
This buzzer can be connected to the standard...
$0.34
TDA2822 2x1W DC 5V 12V Stereo Audio Amplifier...
$3.43
• 1.0 1571-28 line: Each copper wire 0.12...
$0.14
These are test clips made of plastic which can...
$0.31