Has your family all gotten a bit sick for no reason? If you answer, “Yes,” to the question, then you may have been forced to filter water at home. If you haven’t faced this situation yet, who’s to say you won’t in the near future? Make your own water filtration system at home with a pump at home to keep everyone away from water-borne diseases.
int in1=9;
int in2=8;
int en=10;
void setup() {
// put your setup code here, to run once:
pinMode(in1,OUTPUT);
pinMode(in2,OUTPUT);
pinMode(en,OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
analogWrite(en,100);
digitalWrite(in1,0);
digitalWrite(in2,1);
}