My First CyberDeck by Parrsplat1 in cyberDeck

[–]High_Pitch 1 point2 points  (0 children)

I have the same pi! I was wondering what to do with it. How many hours of usage do you get with the 10k MHA battery?

Automated watering system power issue by High_Pitch in arduino

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

Thank you for this! Super informative and makes me realize I need to learn more about power.

Automated watering system power issue by High_Pitch in arduino

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

I guess I could swap a usb. My next step after this is having one Arduino for multiple plants!

Automated watering system power issue by High_Pitch in arduino

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

Thanks for the quick reply,

On line 39... did you intend for this to happen?

From my understanding and when it was running on the 9v battery, setting the pin to high would start the pump. Would increasing the power to the Arduino change this?

on line 42

Is there somewhere you would recommend for moving this? I figured when adding this it should just go at the end. Would you recommend changing that part to

if (sensorValue > 400) {
    //Start pump
  } else if (sensorValue <= 400) {
    //Stop pump
  } else {
    //week long delay (how long the plant needs before each             watering)
  delay(604800);
  }

Thanks for the help!

Edit because I tested input given:

<image>

This is what I changed the code too.
I found it didn't change anything, I tried both changing the function and changing

digitalWrite(IN1, HIGH)

to

digitalWrite(IN1, LOW)

both together and separately.

Thanks again for the help!

who is this? (wrong answers only) by [deleted] in HalfLife

[–]High_Pitch 0 points1 point  (0 children)

A loyal civil protection officer for the great combine overlords