Go Down

Topic: Sanitizer dispenser code help (Read 3045 times) previous topic - next topic

TheMemberFormerlyKnownAsAWOL

Sorry, It should be

Code: [Select]
else {
    digitalWrite (6, LOW);
    priState = false;

No, it should be
Code: [Select]
digitalWrite (pumpPin, LOW);
Please don't PM technical questions - post them on the forum, then everyone benefits/suffers equally

vinodamarathunga

D PIN 6 is the Relay Control Input na d I have not defined any pumpIN variable in my code.

TheMemberFormerlyKnownAsAWOL

D PIN 6 is the Relay Control Input na d I have not defined any pumpIN variable in my code.
You should
Please don't PM technical questions - post them on the forum, then everyone benefits/suffers equally


TheMemberFormerlyKnownAsAWOL

Reason ?
It's a great habit to learn.
And it makes boo-boos like
Code: [Select]
digitalWrite (5, LOW); even easier to spot, fix or modify.
Please don't PM technical questions - post them on the forum, then everyone benefits/suffers equally

vinodamarathunga

Yes, Got it,
you mean defining the pins, good practice indeed

souravrout9

Friends
Request you all to help me by sharing a code for automatic hand sanitizer based on ultrasonic sensor,5v relay, 5 v DC pump and Arduino-Nano

mehpako

Hi
Is it possible for me to have the complete code of the program and
if I want to use the FC-51 ir module, what will be the code changes?
I had exactly the same problem.

Go Up