TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (403 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (132 codes)
  5. Bugz Bensce (97 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 (140986 times)
  2. FAT32 Library (73520 times)
  3. Network Ethernet Library (58328 times)
  4. USB Device Library (48514 times)
  5. Network WiFi Library (44136 times)
  6. FT800 Library (43696 times)
  7. GSM click (30548 times)
  8. mikroSDK (29307 times)
  9. PID Library (27220 times)
  10. microSD click (26933 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
Project

VCF Controller for function generator

Rating:

0

Author: Philippe LE GUEN

Last Updated: 2016-02-21

Package Version: 1.0.0.0

Category: Measurement

Downloaded: 501 times

Followed by: 2 users

License: MIT license  

If your generator has a VCF input, then you will be able to control the finely example using a microwave to contrôelur system equipped with a DAC (Digtal Analogic Converter), clear digital converter / analog.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "VCF Controller for function generator" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "VCF Controller for function generator" changes.

Do you want to report abuse regarding "VCF Controller for function generator".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Project Blog

VCF Controller for function generator

VCF Controller for function generator

The finished VCF controller.

View full image
VCF Controller for function generator

VCF Controller for function generator

I used a 'Ready for PIC' board with a PIC18F25K22 and a 12-bit DAC (MCP4921)

View full image

If your generator is equipped with a [VCF1] input, then you will be able to control it very finely, for example using a microcontroller system equipped with a DAC converter (Digtal Analogic Converter), a clear digital to analog converter.
It goes without saying that if your GBF does not have this VCF input, then this accessory will not be useful!

In fact the principle is to adjust the base frequency of its generator normally, with the buttons associated with it, then fine tune this frequency with the help of our VCF interface.

Usually, some micro-controllers already have such a converter internally ... yes, but on 10 bits, which gives us a resolution of 1023 different steps for example to change a voltage from 0V to + 5V. It is little, and not very precise for our generator.

We will give him a present! an external converter that converts on 12 bits, or 4095 no resolution. This changes everything, because to control the generator with its entry VCF, it needs precisely a voltage between 0V and + 5V, and there we will do it on 4095 steps (or steps ...).
I do not tell you comfort!

During tests on my generator, I realized that for a given frequency, when applying a VCF voltage of + 5V, this frequency had practically doubled! We can go from single to double (or almost ...) of our base frequency in steps of 1 thousandth of a volt! Do you see a little better interest?
Finally, this is not quite true, in fact if we divide 5000 (mV) by 4095, we get a coefficient of 1.221001221E0 very exactly. I use this coefficient for the calibration of the DAC in the software written in MikroC.

Programming

The processor comes pre-programmed with a bootloader from mikroElektronika, which allows me all the fantasies to change simply and very quickly (115200 baud / s) my program via the USB port. I used the software suite mikroC including all the necessary tools to carry out my project.

Be careful however, my software using 4680 bytes of the microcontroller ROM, you can not change it as you please without buying the license mikroC. The free version is limited to 2K bytes.

From project to design

I designed mine on a basis from MikroElektronika, the 'Ready for PIC' equipped with a PIC18F25K22 microcontroller (DIP28) running at the 32MHz clock rate, as you can say that it reacts quickly!
It is obviously possible to use other processors (in DIP28 or DIP40 and provided you review the option bits ...),

but it is with the PIC18F25K22 that I get the best operation.
The 12-bit converter is a MCP4921 from Microchip. I added a backlit LCD 2x16 character display (whose brightness varies according to the ambient light thanks to an LDR cell and a PWM port), 5 sub-miniature pushbuttons which allow to adjust the output voltage of the DAC and the delay between each step, and as a bonus, as I was tired of adjusting my VCF voltage every morning when designing one of my personal applications, I planned to save the last value VCF in the internal memory of the microcontroller. Whenever you change the VCF value, it is immediately stored in memory. In case of power failure and even after reprogramming, the last value thus stored reappears immediately. Super comfortable!

The setting in box and the decoration of the front face

For the boxing of this new tool, I used the box distributed by mikroElektronika (Reference: MIKROE-1350), and performed cutting (sometimes risky ...) with the help of my trusty Dremel. The front panel was screen printed on aluminum self-adhesive paper from 3M (Reference: 3031) available from Selectonic, which I printed with my laser printer.
This gives it a more 'professional' presentation ...

The VCF controller is fully operational, it is visible on my website: http://pleguen.fr/


1. VCFVoltage Control Frequency

RELATED CODES

GP2Y0E03 Short Range IR Rangefinder Demo

0

GP2Y0E03 short range IR rangefinder demo with MSP430F149. The code is written with TI's Code Composer Studio (CCS).

[Learn More]

Car's battery voltage and charging system monitor

5

This project is about making a simple electronic voltage monitor system for car’s battery and its charging system. It plugs into the car’s cigarette lighter receptacle and displays the instantaneous output voltage across the battery terminals on a 4-digit seven segment LED display.

[Learn More]

MaxSonar®-EZ LCD velocity meter

0

This project use maxsonar, with analoge mode. and pic 16f688. one switch for begin and stop the measurement and a lcd for show the distance, time and object velocity.

[Learn More]