After seeing the below link.... i have an doubt....since in that link the DC motor was controlled by arduino .... How do I switch ON & OFF a DC fan from an Arduino ????
http://www.ingenstech.com/19-dc-motor-control-arduino-beginners/
After seeing the below link.... i have an doubt....since in that link the DC motor was controlled by arduino .... How do I switch ON & OFF a DC fan from an Arduino ????
http://www.ingenstech.com/19-dc-motor-control-arduino-beginners/
jagjeet_k:
After seeing the below link.... i have an doubt....since in that link the DC motor was controlled by arduino .... How do I switch ON & OFF a DC fan from an Arduino ????http://www.ingenstech.com/19-dc-motor-control-arduino-beginners/
That link has it pretty much all correct BUT NEVER power a motor from the UNO. The +v and GND to that IC on the breadboard should be a totally independent power supply.
Looks to me like that schematic shows the 293's enable pin joining one of the outs on the motor which is wrong. But the Fritzing shows the enable hardwired to 5V which is correct except then (to answer the question) you can't switch the motor off with the Arduino.
To off the motor, the enable pin needs to be low; the easiest way to do that is to hook it to a vacant i/o pin on Arduino, and set it high or low with a digitalWrite.