The VC-02 Module, manufactured by Ai-Thinker Technology Co., Ltd., is a Voltage Controlled Oscillator (VCO) designed for use in electronic circuits where frequency modulation is required. It is an essential component in synthesizers, audio equipment, and signal processing devices, allowing for the generation of waveforms whose frequency can be precisely controlled by varying the input voltage.
Pin Number | Name | Description |
---|---|---|
1 | Vcc | Power supply input (5V to 12V DC) |
2 | GND | Ground connection |
3 | Vin | Voltage input for frequency control |
4 | OUT | Output signal |
5 | NC | No connection (reserved for future use) |
// Example code to control VC-02 Module with Arduino UNO
int controlPin = 3; // PWM output connected to Vin of VC-02
void setup() {
pinMode(controlPin, OUTPUT);
}
void loop() {
// Generate a control voltage via PWM to set the frequency of VC-02
analogWrite(controlPin, 128); // Set to 50% duty cycle for demonstration
delay(1000); // Wait for 1 second
// Change the frequency by adjusting the PWM signal
analogWrite(controlPin, 64); // Set to 25% duty cycle
delay(1000); // Wait for 1 second
}
Note: The above code is a simple demonstration. The actual frequency control will depend on the specific characteristics of the VC-02 Module and the input voltage applied to the Vin pin. Use a low-pass filter to convert the PWM signal to a DC voltage for finer control over the frequency.