I was doing a project with TSOP, a 12v fan, LED, and a buzzer all taking power from ardunio. Yes, i agree it drew way too much current than arduino could provide. The project was to activate the fan, led or buzzer by pressing the remote control of my tv. Since only one of them was activated at once, i was not worried. The fan was spinning but only at a low speed. LED was lighting up well as well coz when i turn on LED, the fan stops. All according to the plan. I am using IRremote library. After some time, only one of the components were working properly. If the first component is fan, then it will spin as usual, but the second component, LED will only light up a little. I found out that current to LED is very low. I think my arduino is destroyed. Help please. Here is my code too, see if anythings wrong
/*
* IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
int RECV_PIN = 11;
int ledPin = 5;
int fan=8;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{pinMode(ledPin,OUTPUT);
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop() {
digitalWrite(ledPin,LOW);
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
if(results.value ==2)
digitalWrite(ledPin,HIGH);
else
digitalWrite(ledPin,LOW);
if(results.value ==1){
digitalWrite(fan,HIGH);
delay(500);
digitalWrite(fan,LOW);
}
}