OFF
LLC-SPI Click
MIKROE-3126
23 g
Status:
HZ to V 2 click is a device that can convert input frequency of the signal with virtually any wave shape to a DC voltage output, with a level proportional to the input frequency. It features a specialized IC labeled as VFC32KU, which has a good linear response and temperature stability. By applying a signal with the frequency up to 120kHz on its input, the Click board™ will generate a DC voltage up to 3.3V. The IC is supplied by a dual-voltage boost DC/DC converter IC, which provides the power supply of ±15V, required for the VFC32KU IC operation.
This product is no longer in stock
Availability date:
These features allow HZ to V 2 click to be used in various frequency to voltage applications: in instrumentation, industrial, and automation markets. It is well suited for use in A/D conversion, long-term integration, frequency to voltage conversion, RPM measurement, capacitance measurement, and similar applications which can benefit from an accurate and reliable frequency to voltage conversion. Its function can be complemented by the V to Hz 2 click, which does the opposite type of conversion: DC voltage to frequency. This can be utilized to build an FM modulator/demodulator application, for example.
The main component of Hz to V 2 click is the VFC32KU, a voltage-to-frequency and frequency-to-voltage converter from Texas Instruments. It accepts a signal with the frequency within a range between 200Hz and 120kHz on the input and generates DC voltage with the level corresponding to the input frequency, ranging from 0V to 10V, with a highly linear response. The output DC voltage level is further scaled down by the voltage divider on the VFC32KU output, in order to achieve levels acceptable by the MCU. This makes the DC voltage output suitable for sampling, or further processing by the host MCU.
The input signal within the specified frequency range can be applied to either the PWM pin of the mikroBUS™ labeled as FIN on this Click board™ or to the external signal input terminal labeled as FEXT. This signal is AC coupled by a 1nF capacitor, meaning that no DC component will be affecting the connected source. The signal input source can be selected by the onboard switch, labeled as INPUT SEL. A DC voltage output ranging up to 3.3V is available both on the AN pin of the mikroBUS™ labeled as the VO, and the output terminal - labeled as the VOUT on this Click board™.
An onboard high-precision OFFSET potentiometer is used to fine-tune the output of the Click board™. It can be calibrated by using the offset potentiometer, by introducing a signal of a known frequency to either FEXT input terminal or the PWM input pin. An offset trimming procedure should be executed before the first use of the Click board™, since even slight variations in the components tolerances could affect the value at the output. It is recommended to correct the offset after longer time intervals, to compensate for the aging of the passive components on the Click board™.
The VFC32KU IC requires a dual power supply with ±15V. Therefore, this Click board™ utilizes another IC in order to provide the required voltages. It uses the TPS65131, a positive and negative output DC/DC Converter IC, also from Texas Instruments. This DC/DC converter has already been used in Boost-INV 2 click, so it was tested "on the field" for this purpose. Providing well-stabilized output with the plenty of power headroom, it is a perfect solution for the HZ to V 2 click, also.
To enable the conversion circuitry, the EN pin of the TPS65131 boost converter should be pulled to a HIGH logic level. This will activate the boost converter and provide the required power for the VFC32KU IC. This pin is routed to the mikroBUS™ CS pin and it is labeled as EN.
Type
Measurements
Applications
It can be used in instrumentation, industrial, and automation markets. It is well suited for use in A/D conversion, long-term integration, frequency to voltage conversion, RPM measurement, capacitance measurement, frequency demodulation, and similar applications
On-board modules
VFC32KU, a voltage-to-frequency and frequency-to-voltage converter from Texas Instruments; TPS65131, a positive and negative output DC/DC Converter, from Texas Instruments
Key Features
Hz to V click features very good linearity, covers a wide frequency range and it has good temperature stability. Onboard high-precision trimmer potentiometer for increased accuracy of the converted DC voltage output
Interface
GPIO
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
L (57.15 x 25.4 mm)
Input Voltage
3.3V
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED indicator |
SW1 | INPUT SEL | Left | Input signal source selection: left position mikroBUS™ FIN pin, right position FEXT input terminal |
TB1 | VOUT | - | Converted DC voltage output |
TB2 | FEXT | - | External signal input |
This table shows how the pinout on Hz to V 2 click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
We provide a library for the HZ to V 2 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on MIKROE github account.
Library Description
This library contains API for HZ to V 2 Click driver.
Key functions
This function enable the click board.
This function read ADC data and converts it to voltage.
This function sets PWM clock frequency at FIN pin.
Example Description
This app converts input frequency to a DC voltage output.
void application_task ( void )
{
if ( fin > 120000 )
fin = 10000;
hztov2_fin_set( &hztov2, fin );
log_printf( &logger, "Frequency: %lu Hz rn", fin );
Delay_ms ( 100 );
voltage = hztov2_read_voltage( &hztov2 );
log_printf( &logger, "Voltage: %.2f V rn", voltage );
fin += 10000;
Delay_ms ( 1000 );
Delay_ms ( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on MIKROE github account.
Other MIKROE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MIKROE compilers.
This Click board™ is supported with mikroSDK - MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.