Project tutorial
Arduino Sump Pump

Arduino Sump Pump © CC0

This Arduino Pump Tutorial shows an example of how to use a float switch, Powertail, and pump to create a sump pump system.

  • 3,640 views
  • 0 comments
  • 6 respects

Components and supplies

Necessary tools and machines

M3 Bolt Driver

Apps and online services

About this project

This Arduino Pump Tutorial shows an example of how to use a float switch, Powertail, and pump to create a sump pump system. When you want to operate larger pumps from an Arduino you need a stronger relay to handle the larger voltage and current. The PowerSwitch Tail is a perfect tool for the job. It incorporates the relay and outlet plugs all into one unit making it easy to turn on and off larger motors, fans, and pumps.

Step 1: Setup your Arduino/Geekduino

Our tutorial will be using the RobotGeek Geekduino board and the RobotGeek Sensor Shield. If you've never used an Arduino or the RobotGeek Sensor Shield, these guides will get you up to speed.

RobotGeek Hardware Primer

RobotGeek Sensor Shield Wiring Primer

Geekduino Getting Started Guide

We'll also have some wiring diagrams for a standard Arduino Uno if you're not using a RobotGeek kit.

Step 2: Wiring

Wire as shown in the diagram above that matches the parts you've chosen to use.

Step 3: Coding

You can download the code sketch here: https://github.com/robotgeek/sumpPumpDemo/archive/master.zip

If you take a look at the code, you'll notice that it is incredibly simple, turning the pump and LED on when the float switch is floating, and turning them off when it isn't. We do take advantage of the Arduino's internal pullup resistors using the line pinMode(FLOAT_SWITCH_PIN, INPUT_PULLUP); to invert the HIGH/LOW behavior of the float switch and allow us to use it with no external pullup resistor.

Step 4: Project ideas

Now that you've got a working sump pump, what are you going to do next? Could you find a sensor to replace the float switch? How about activating something that makes noise instead of just the LED? What about finding a way to integrate a Raspberry Pi to send twitter alerts when the pump is active? Maybe you could integrate this into a Hydroponic system, keeping your fluid levels steady? There's a lot you can do, so get to it!

Code

Github
https://github.com/robotgeek/sumpPumpDemo/archive/master.zip%20

Schematics

Sump Pump Wiring with RobotGeek Sensor Shield
Sump Pump Wiring with RobotGeek Sensor Shield
F1l9hjiig9os3ly.large
Sump Pump Wiring with Breadboard
Sump Pump Wiring with Breadboard
Fdq41w8ig9os4px.large

Comments

Similar projects you might like

ShotBot - Arduino Powered Pump Project

Project tutorial by Team RobotGeek Projects Team

  • 5,102 views
  • 0 comments
  • 16 respects

Automated Dehumidifier Sump Pump

Project tutorial by Zachary J. Fields

  • 4,702 views
  • 10 comments
  • 17 respects

Aquarium Auto Refill With Arduino

Project showcase by Team RobotGeek Projects Team

  • 4,626 views
  • 0 comments
  • 8 respects

Sump Pump Monitor and Alarm

Project showcase by JoSain

  • 1,247 views
  • 1 comment
  • 7 respects

Automatic Plant Watering System with Arduino

Project tutorial by Team RobotGeek Projects Team

  • 32,775 views
  • 2 comments
  • 45 respects
Add projectSign up / Login