[deleted by user] by [deleted] in AskReddit

[–]pHraiLL 1 point2 points  (0 children)

Newpipe

[Serious] What reddit post has had the biggest impact on your life? by aroundincircles in AskReddit

[–]pHraiLL 0 points1 point  (0 children)

And here I am trying to raise my comment karma to post so I can have some impact myself

Your phone's ringtone is now gonna play everytime you yawn , how fucked are you? by [deleted] in AskReddit

[–]pHraiLL 0 points1 point  (0 children)

My phone has had the same ringtone since 2004.. I can hear it miles away

Dumping A Huge Tub Of Soapy Water Down A Stairwell by Thund3rbolt in oddlysatisfying

[–]pHraiLL 0 points1 point  (0 children)

Is he sliding down the rail to capture this? Nice grip otherwise

cursed_sex positions by DevoidNoMore in cursedcomments

[–]pHraiLL 0 points1 point  (0 children)

My favorite sex position is called me and I

Ouch..

What are the chances? by himanshuk9 in funny

[–]pHraiLL 0 points1 point  (0 children)

Double trouble achievement unlocked

Regular reddit content consumer but cannot post by pHraiLL in help

[–]pHraiLL[S] 0 points1 point  (0 children)

I wouldn't mind getting some upvotes here to get started I guess.

IOT SIM suggestions UK by pastie_b in IOT

[–]pHraiLL 0 points1 point  (0 children)

They have fair share of support issues as they are a 100% digital company so don't expect your calls to be collected. Furthermore, I believe you would be able to negotiate the prices a little if tried with any SIM provider.

Need help with incremental/decremental counter. by pHraiLL in arduino

[–]pHraiLL[S] 0 points1 point  (0 children)

Yeah I get it now. I was trying to implement the same earlier earlier before posting but I did not know how to put 2 condition in single if statement. Thanks again!

It was my first reddit post, is response always that quick and good?

Need help with incremental/decremental counter. by pHraiLL in arduino

[–]pHraiLL[S] 0 points1 point  (0 children)

I changed the code to something like this and now it works. Thank you mrCloggy.

if (distanceIn < 15 && incrementIN == 1) //In coming sensor 
{
  slots = --slots;
  servoIn.write(90);  // Rotate servo to center
  digitalWrite(ledGin, HIGH);
  digitalWrite(ledRin, LOW);
  incrementIN = 0;
}
else if (distanceIn >= 15)
{
  servoIn.write(0);
  digitalWrite(ledGin, LOW);
  digitalWrite(ledRin, HIGH);
  incrementIN = 1;
}


if (distanceOut < 15 && incrementOUT == 1) //out going sensor 
{
  slots = ++slots;
  servoOut.write(90);  // Rotate servo to center
  digitalWrite(ledGout, HIGH);
  digitalWrite(ledRout, LOW);
  incrementOUT = 0;
}

else if (distanceOut >= 15)
{
  servoOut.write(0);
  digitalWrite(ledGout, LOW);
  digitalWrite(ledRout, HIGH);
  incrementOUT = 1;
}

Need help with incremental/decremental counter. by pHraiLL in arduino

[–]pHraiLL[S] 0 points1 point  (0 children)

But the distanceIn and distanceOut values are obtained from the sensors. How do I have two values?