I'm trying to use a little pump with my arduino nano:
void setup ()
{
pinMode(waterPump, OUTPUT);
}
...
while (val < valueWater)
{
Serial.println ("in while"); // testing purpose
digitalWrite(waterPump, HIGH);
delay(1000); // 1 second
digitalWrite(waterPump, LOW);
val = analogRead(sondeEau);
}
When I try this one, pump isn't working. When I unplug the waterPump pin, I see "LED3" that run, and when I plut it, LED3 is not running, why?
I tried to plug pump directly on 5V on arduino, pump works well...
This is the pump I bought: http://www.dx.com/p/hsyy01-water-pump-motor-w-hose-white-silver-236808
Thanks in advance to help me!