I have a USB powered sump pump plugged into my raspberry pi 4. Is there a way to program the turn off and on by including it in my program?

  • HI @user111033, Welcome. Ah, let me see. (1) I am a pump hobbyist. I have 100+ hours playing with AC220V and DC12V/5V pumps, solenoids, and relays etc. (2) I am happy to try helping out. Please let me have the web link to you pump. (3) BTW, I have never heard of the name "sump pump", so I googled and learnt that it for pumping water in the basement. I have never seen any basement in my city (I guess only 0.1% citizens in my city have basements). (4) However, 99.9% have rooftops. I have a rooftop garden and I am playing with pumps, using Rpi3B+ and Rpi4B python programs. Cheers. – tlfong01 Nov 10 '19 at 0:38
  • 1
    A sump pump is a submerged pump to pump water out of a container – user111033 Nov 10 '19 at 1:18
  • HI @user111033, Oh my goodness, your pump is mini/micro submersible, usually for mini fish tanks. Amazon USB Mini/Micro Submersible Motor Pump Water Pumps DC 3/5V 120L/H (1.6 inch Vertical with USB, White) - US$7 amazon.com/dp/B07RP52SZJ I do have a couple of those. I often use 12V/24V DC pumps, or sometimes 220VAC ones. Low voltage < 5V is for toys and loses my face. You need to tell me if you are using your basement as a big fish tank, or planting vegetable, and the flow rate, say, how many liters per hour you guess/estimate. – tlfong01 Nov 10 '19 at 1:28
  • Ah I read you sump pump definition a bit late. So you are not using it in the basement. In that case, you might like to read my old posts to get a rough idea what I have been playng with my pumps: (1) item.taobao.com/item.htm?_u=f3thdsb9af2&id=36993226670 (2) raspberrypi.org/forums/… (3) raspberrypi.org/forums/… (4) raspberrypi.org/forums/…. Cheers. – tlfong01 Nov 10 '19 at 1:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.