|
Project Information
|
Control Voltage SequencerFlash to CV/Arduino
Description - Arduino PWM pin used for CV output with a RC filter ( R = 100Ω, C =470µF )
- Arduino Digital Output pin used for gate out.
- Serproxy - bridge between Arduino / Application
Libraries - Popforge
- Papervision3D
- Caurina Tweener
Links
Arduino code :
int cvOut = 9;
int gateOut = 11;
int led = 13;
int note;
int gate;
void setup() {
Serial.begin(57600);
pinMode(led, OUTPUT);
pinMode(cvOut, OUTPUT);
pinMode(gateOut, OUTPUT);
//Blink led
for( int value = 0; value <= 3; value++ )
{
digitalWrite( led, HIGH );
delay( 300 );
digitalWrite( led, LOW );
delay( 300 );
}
}
void loop()
{
if (Serial.available() > 1)
{
note = Serial.read();
gate = Serial.read();
analogWrite( cvOut, note );
if( gate == 1 )
triggerGate();
digitalWrite( led, LOW );
digitalWrite( led, HIGH );
}
}
void triggerGate()
{
digitalWrite( gateOut, HIGH );
delay( 50 );
digitalWrite( gateOut, LOW );
}
|