Hi,
I am completely new to Arduino and I am wanting to create a sound-reactive LED for a wearable using a lilypad. I have attached a photo of the sound sensor I am using and the lilypad pins. The code i have used is :
#define LEDstrip 7
void setup()
{
pinMode(7,INPUT); //SIG of the Parallax Sound Impact Sensor connected to Digital Pin 7
pinMode(LEDstrip, OUTPUT);
}
//this function will make the LED dim once the Parallax Sound Impact Sensor sends a 1 signal, and then return to it's original brightness.
void loop()
{
boolean soundstate = digitalRead(7);
if (soundstate == 1) {
analogWrite(LEDstrip, 255);
delay(10);
}
else{
analogWrite(LEDstrip,0);
}
}
The error messages I get are:
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: exit bootloader
I have tried this on board: Lilypad Arduino USB and Lilypad Arduino and port: serial 1 and 2
Again bare with my noob experience and any guidance will be greatly appreciated thankyou (: