Quote:
boolean volUp[48] = {1,1,0,1,0,1,1,1, 1,1,0,1,1,0,1,1, 1,0,1,0,1,0,1,1, 1,1,0,1,1,0,1,1, 1,1,0,1,0,1,1,0, 1,1,0,1,0,1,0,1};
output(volUp);
//---------OUTPUT-----------------------------------------------
void output(boolean signal[]) {
//first send 8ms high
digitalWrite(alpPin, HIGH);
delay(8);
// send 4.5ms low
digitalWrite(alpPin, LOW);
delayMicroseconds(4500);
for (int i = 0; i <= 47; i++) {
//send bit for 0.5ms
if (signal[i] == 1 ) {
digitalWrite(alpPin, HIGH);
} else {
digitalWrite(alpPin, LOW);
}
delayMicroseconds(500);
// wait 0.5ms
digitalWrite(alpPin, LOW);
delayMicroseconds(500);
}
// send 41ms low
digitalWrite(alpPin, LOW);
delay(41);
}
Fiberglass mid bass enclosure this will most likely have to wait until the semester is over, but I would like to remove the back of my door cards enclosure and build a fiberglass box that will mount to the door frame to hopefully isolate the mid bass driver from the plastic door card. Not only will this kill some unwanted noise it should allow me to raise the high pass filter without it sounding like the door is going to come apart.