Arduino and cmos (nand 4093) -> 8bit noise.

Here is sound example of using Arduino and 4093 (nand) cmos synth together. With nand I’m using two oscillators.



Same video clip can be found also from instagram.

Example of Arduino code is here, I recommend to experiment with random values and structure. I wrote code really quickly, it is just for testing whole idea:

void setup() {
// digital pins mode
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
}

// the loop function runs over and over again forever

void loop() {

// a-part
for (int i=0; i <= random(2)+3; i++) {

for (int i=0; i <= random(40)+60; i++) {
analogWrite(3, random(255));

digitalWrite(5, random(1));
digitalWrite(6, random(1));
delay(random(5));
}

for (int i=0; i <= random(40)+30; i++) {
analogWrite(3, random(255));

digitalWrite(5, random(1));
digitalWrite(6, random(1));
delay(random(15));
}

for (int i=0; i <= random(20)+10; i++) {
analogWrite(3, random(255));
digitalWrite(5, random(1));
digitalWrite(6, random(1));
delay(random(100));
}

}
// end of a-part

// b-part
for (int i=0; i 0; i=i-random(50)
) {
analogWrite(3, i);
delay(random(20));
}

// end of b-part

}



Connections are with crocodile cables, I explain them a little bit: 3 pwm pin goes to 4093 pin1, which is osc1 input. One of digital outputs (5 or 6) goes to 4093 ground pin, this creates funny noises. With 2nd digital output you can experiment yourself or leave it out.

Those who know a bit of (cmos) electronics and coding, can quickly expand idea to built (boxed) Arduino based cmos synth with some external control: potentiometers, buttons, switches, light sensors etc. And Arduino could be replaced with Attiny85, if something more compact is needed. Have fun!