Loading...
Pages: [1]   Go Down
Author Topic: Using Arduino to Generate CV Gates (5V Pulses)  (Read 1552 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Netherlands
Offline Offline
Tesla Member
***
Karma: 101
Posts: 9551
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
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!

Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 270
Posts: 17040
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Assuming you don't need much current to drive those pulses high, maybe this will give you some ideas
Code:
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
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

CV GATE signal  can be read by older synth?
Logged

https://www.facebook.com/pages/TonyMake/160740054064026

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

Pages: [1]   Go Up
Print
 
Jump to: