Go Down

Topic: Using Arduino to Generate CV Gates (5V Pulses) (Read 2822 times) previous topic - next topic

I'm relatively new to Arduino.  I'm trying to build a gate sequencer to use with an analog synth.  I need to be able to send 4 separate 5V pulses.  Does anyone have any tips for getting started.

robtillaart

Code: [Select]
Does anyone have any tips for getting started.

Spend a day ofr two in the tutorial section - http://arduino.cc/hu/Tutorial/HomePage -
especially the digitalWrite() , the Serial class and the analogRead().

By working through the examples you will learn a lot about how to do this, what the arduino can do and what it cannot.
I expect you have a first sketch working at the end of the first evening maybe even faster!

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

CrossRoads

Assuming you don't need much current to drive those pulses high, maybe this will give you some ideas
Code: [Select]

byte pin2 = 2; // connect to D2
byte pin3 = 3; // D2
byte pin4 = 4; // D4
byte pin5 = 5; //D5
byte pulseWidth = 10;  // width in mS

void setup(){
pinMode (pin2, OUTPUT); // set pin as an output
digitalWrite (pin2, LOW); // set pin as low output to start
pinMode (pin3, OUTPUT);
digitalWrite (pin3, LOW);
pinMode (pin4, OUTPUT);
digitalWrite (pin4, LOW);
pinMode (pin5, OUTPUT);
digitalWrite (pin5, LOW);
} // end void setup

// repeat loop over & over
void loop(){
digitalWrite (pin2, HIGH); // pulse the pin High
delay (pulseWidth);          // for this long
digitalWrite (pin2, LOW);  // and then back low
delay (1000);                     // wait this long and then do the next pulse
digitalWrite (pin3, HIGH);
delay (pulseWidth);
digitalWrite (pin3, LOW);
delay (1000);
digitalWrite (pin4, HIGH);
delay (pulseWidth);
digitalWrite (pin4, LOW);
delay (1000);
digitalWrite (pin5, HIGH);
delay (pulseWidth);
digitalWrite (pin6, LOW);
delay (1000);
} // end void loop
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

toxman

CV GATE signal  can be read by older synth?
https://www.facebook.com/pages/TonyMake/160740054064026

(mezzi a disposizione)*(intelligenza)= K (costante)

Go Up