TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137090 times)
  2. FAT32 Library (70234 times)
  3. Network Ethernet Library (56110 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42053 times)
  6. FT800 Library (41384 times)
  7. GSM click (29111 times)
  8. mikroSDK (26560 times)
  9. PID Library (26489 times)
  10. microSD click (25486 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

Hz to V click

Rating:

5

Author: MIKROE

Last Updated: 2018-03-09

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Measurements

Downloaded: 4161 times

Not followed.

License: MIT license  

HZ to V 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.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Hz to V click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Hz to V click" changes.

Do you want to report abuse regarding "Hz to V click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

Hz to V click

Hz to V click

Native view of the Hz to V click board.

View full image
Hz to V click

Hz to V click

Front and back view of the Hz to V click board.

View full image

Examples Description

The demo application shows how to control the Hz to V click using MCU's PWM module.
The demo application is composed of two sections:

  • Application Task - Alternates between different output voltages.
  • hz2v_setOutputVoltage - Sets the PWM frequency to the required value, changing the output voltage.
//Sets the output voltage in millivolts
void hz2v_setOutputVoltage(uint16_t voltage)
{
 pwmPeriod = PWM_TIM5_Init(voltage*2);
 PWM_TIM5_Set_Duty(pwmPeriod/2, _PWM_NON_INVERTED, _PWM_CHANNEL1);
 PWM_TIM5_Start(_PWM_CHANNEL1, &_GPIO_MODULE_TIM5_CH1_PA0);
}

void applicationTask()
{
 hz2v_setOutputVoltage(5000); //5 V output
 Delay_ms(3000);
 hz2v_setOutputVoltage(2500); //2.5 V output
 Delay_ms(3000);
 hz2v_setOutputVoltage(1000); //1 V output
 Delay_ms(3000);
 hz2v_setOutputVoltage(500); //0.5 V output
 Delay_ms(3000);
}


Other MikroElektronika Libraries used in the example:

  • PWM

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or  RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

Timer Calculator

41

Timer Calculator is a free software development tool used for easier calculation of timer interrupts. If you like Timer Calculator you can support further development by contributing on following page: http://www.mikroe.com/timer-calculator/#support

[Learn More]

Opto Encoder 2 click

0

Opto Encoder 2 click is a linear incremental optical sensor/encoder click which can be used for the movement or rotation encoding.

[Learn More]

NB IoT click

6

NB IoT click is a Click board that allows LTE Cat NB1 connectivity by utilizing Quectel BC95, a specialized multi-band IoT module with very low power requirements and compact form factor, making it perfectly suited for various IoT-based applications.

[Learn More]