@pert
ok sorry, I though you were just making fun of me
@others
I'm well aware the motor might require more energy than the control device
Therefore, some extra information:
The motor would only have to work like once per hour approximately. I will add some pictures for clarity.
The horizontal tube is obviously a sewer output connection, the only place we can access it without breaking out walls is the vertical tube as shown on the picture. The landlord won't fix it (he should but ... you know how it goes), and we are not allowed to break down walls to try to fix it, nor do we want to start breaking down walls. Also we are a bit on a budget, because we are students.
So that's how we arrive at this problem with these very odd constraints.
The problem with the current solution is that I now have to manually lift the foam ball with the stick and run some water through the tubes by e.g. flushing the toilet. A few times a day. As the vertical tube is located outside, this is not sustainable to do in winter or in the long run. I tried to fix it indoors, but there are too many penetrations all around the house that let the sewer smell in.
I came here to get some advice on the microcontroller. But if you have advice on sensors of motors, or mounting solutions, also welcome.
I'm an rc hobbyist (drones) so I have a lot of 650 mah 3s lipo's and the charging devices. Also, I can program in MATLAB and a bit of C++.