MIKROE-2436

MIKROE-2436 Datasheet


Voltmeter click is a mikroBUS add-on board for measuring voltage in an external electric circuit.

Part Datasheet
MIKROE-2436 MIKROE-2436 MIKROE-2436 (pdf)
PDF Datasheet Preview
Voltmeter click

Voltmeter click is a mikroBUS add-on board for measuring voltage in an external electric circuit.

The board is designed to measure Direct Current only, and has a measurement range from 0 to 24V it’s possible to measure both positive and negative charges .

The design of the board is based on an OpAmp set up as a differential amplifier with a buffered input.

Two onboard screw terminals probe+ and probe- are bringing in the current, which then flows through a row of four resistors. A voltage proportional to the input charge is generated across the last two resistors. From there it is sent to the differential amplifier that further intensifies the difference between the two inputs

The resulting charge is exactly 33 times lower than the actual measured voltage. It is converted by an onboard 12-bit ADC before being outputted through the mikroBUS SPI interface the firmware in the target board MCU should be set up to multiply the ADC value to get the actual voltage . It is also possible to output the analog value directly through the mikroBUS AN pin useful if the target MCU has a higher resolution ADC .

The board can work with either a 3.3V or a 5V power supply.

Technical Specifications

Measuring DC Voltage from external circuit

Key features

Measurement range 0-24Vdc 12-bit ADC SPI interface + AN pin 3.3V or 5V power supply

Key Benefits

Measures both positive and negative charges Possible to measure analog values directly Works in all mikroC compilers Ready-to-use examples save development time
mikroBUS is specially designed pinout standard with SPI, I2C, Analog, UART, Interrupt, PWM, Reset and Power supply pins. See Standard Specification.

Programming

The following code snippet shows how to send temperature readings from Voltmeter click to a TFT display.
1 void system_setup void 2 unsigned int getADC void 3 4 void main 6 system_setup 7 8 while 1 10 11 voltage = 0 12 13 measurement = getADC / 2 // Get ADC result 14 voltage = measurement - calibration * 15 16 FloatToStr voltage, txt 17
18 UART1_Write_Text txt ;
19 UART1_Write 32 ;
20 UART1_Write_Text "mV" ;
21 UART1_Write 13 ;
22 UART1_Write 10 ;
24 delay_ms 1000 ;
28 void system_setup void
30 GPIO_Digital_Output &GPIOD_BASE, _GPIO_PINMASK_13 ;
32 UART1_Init 9600 ;
// Initialize UART module at 9600 bps
33 Delay_ms 300 ;
// Wait for UART module to stabilize
34 UART1_Write_Text "UART ;
36 voltage = 0;
37 sum = 0;
38 measurement = 0;
39 calibration = 0;
41 Chip_Select = 1;
43 // SPI
44 SPI3_Init_Advanced _SPI_FPCLK_DIV16, _SPI_MASTER | _SPI_8_BIT |
_SPI_CLK_IDLE_LOW | _SPI_SECOND_CLK_EDGE_TRANSITION |
_SPI_MSB_FIRST | _SPI_SS_DISABLE | _SPI_SSM_ENABLE |
_SPI_SSI_1, &_GPIO_MODULE_SPI3_PC10_11_12 ;
48 Delay_ms 300 ;
More datasheets: CA06EW24-5SB06 | MM74C164N | MX25L6406EMBI-12G | MX25L6406EZ3I-12G | MC13193FC | MC13193FCR2 | LTC4447IDD#PBF | LTC4447EDD#PBF | MC100ES6226FA | MC100ES6226AC


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived MIKROE-2436 Datasheet file may be downloaded here without warranties.

Datasheet ID: MIKROE-2436 649335