Hi all.
I need your help. I am building a thermostat that has a fan. The fan starts working when the temprature is too high as well as a red led lights. The problem is that when the red led lights the temprature increases a lot. Why that happens?
Hi all.
I need your help. I am building a thermostat that has a fan. The fan starts working when the temprature is too high as well as a red led lights. The problem is that when the red led lights the temprature increases a lot. Why that happens?
It would help if we could see a schematic to see how you are driving the LED. Do you have a current-limiting resistor in series with the LED? If you don't, the transistor driving the LED can get very hot and may fail. If the transistor is inside a microcontroller, that microcontroller will get hot and may fail.
Typical current-limiting resistor value is 200-1000 Ohms, depending on how bright you want your LED.
It may be difficult for you to undrestand. By the way I am new in Arduino and the deadline is near so I am in hurry 
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
in addition to Johns comments
The following devices should not be driven directly by the Arduino
Speaker
Motor
LEDs without suitable current limiting resistors as John stated but if you want it to be bright then use one of the channels of the LM2003 as stated below
to drive the speaker and the motor you need to employ a transistor driver or another chip to help like an LM2003 which is an 8 channel driver capable of driving the motor and the speaker easily. Speaker may still need a limiting resistor if it a low impedance one (8 - 16 ohms is a lot of current)
a schematic would help too as I can not determine what is connected to what with your picture, only what some of the components are. Also please post the code your testing
what is the model temp sensor
with the direct load you are putting on the controller I am surprised anything is working and if it is it may not for very long.
Show me your schematic and code and I will correct the errors for you that I find
Peter
in addition to Johns comments
The following devices should not be driven directly by the Arduino
Speaker
Motor
LEDs without suitable current limiting resistors as John stated but if you want it to be bright then use one of the channels of the LM2003 as stated below
to drive the speaker and the motor you need to employ a transistor driver or another chip to help like an LM2003 which is an 8 channel driver capable of driving the motor and the speaker easily. Speaker may still need a limiting resistor if it a low impedance one (8 - 16 ohms is a lot of current)
a schematic would help too as I can not determine what is connected to what with your picture, only what some of the components are. Also please post the code your testing
what is the model temp sensor
with the direct load you are putting on the controller I am surprised anything is working and if it is it may not for very long.
Show me your schematic and code and I will correct the errors for you that I find
Peter
Peter Oakes wrote:
The following devices should not be driven directly by the Arduino
Speaker
Motor
LEDs without suitable current limiting resistors as John stated but if you want it to be bright then use one of the channels of the LM2003 as stated below
to drive the speaker and the motor you need to employ a transistor driver or another chip to help like an LM2003 which is an 8 channel driver capable of driving the motor and the speaker easily. Speaker may still need a limiting resistor if it a low impedance one (8 - 16 ohms is a lot of current)
Adding to Peter's suggestions, when you drive an inductive load like a motor, speaker, or electro-mechanical relay be sure you include a flyback diode. They are built into the LM2003 (I think) and most motor drivers, but if you use discrete transistors you'll need to add your own. If you don't, the driver transistor is likely to get fried. Here's the Wikipedia page: http://en.wikipedia.org/wiki/Flyback_diode
John
You are correct, they are indeed included in the 2003 and those devices are capable of over 500mA per channel, more than enough for this application