Hi guys,
So planned out things... So started with the Amp and the Speakers.
The Amplifier board is based on PAM8403, which says its a Class D Amplifier with a 3W + 3W Output.
The speakers were from Radioshack, Each 4Ω.
Started to solder out.
A bit of soldering, Low pass filters and some testing....
Things were smooth till I smelled it, Yep the Amp-IC was about to burn, the output terminals were short.
Hopefully I had a spare Board (Still I have no Idea why I had two, anyway everything happens for good).
So this time I use a Filter Capacitor for Input Power. and soldered all the components in the ProtoShield which came with the kit.
Do not short the Left Ground and Right Ground with the power or Edison's GND, these are Completely Isolated and are Connected Internally in the PAM8403.
Fed the audio signal into the Edison so it could turn on a few Led which will be replaced with EL wire, Just waiting for the EL sequencer to arrive.
The code :
void setup() {
for(int i=2;i<6;i++)
{pinMode(i,OUTPUT);
}
Serial.begin(9600);
}
void loop() {
int L = analogRead(A0);
int R = analogRead(A1);
if(150<L&&L<250)
{
digitalWrite(2,HIGH);
}
if(351<L&& L<1023)
{
digitalWrite(2,HIGH);
delay(10);
digitalWrite(3,HIGH);
delay(10);
}
if(150<R&&R<250)
{
digitalWrite(4,HIGH);
}
if(351<R&&R<1023)
{
digitalWrite(4,HIGH);
delay(10);
digitalWrite(5,HIGH);
delay(10);
}
offall();
delay(10); // delay in between reads for stability
}
void offall()
{
for(int i=2;i<6;i++)
{digitalWrite(i,LOW);
}
}





Top Comments