Actions as simple as taking the container that contains the dishwasher to clean the dishes can be annoying. That, at least, is what was happening to this user and that is why he decided that a solution had to be found. So that’s why he created a soap dispenser controlled by a Raspberry Pi.
How to make an automatic soap dispenser
Years ago, those of us who are already a certain age, we dreamed of having one of those devices that we saw in science fiction movies or that showed us how they imagined the future could be. That future has already arrived and although flying cars are not common, there are many advances in the use of home automation.
Thanks to these improvements made in our day-to-day things, we have all improved or can improve how we interact with our house when cleaning it using robot vacuum cleaners or we prepare rice and even the first coffee in the morning. And it is that manufacturers like Xiaomi among others have been launching really interesting smart products for the home.
Of course, not all the options on the market always cover the exact needs of each user. That is why the Raspberry Pi continues to prove why it is such an interesting device, because with a little ingenuity you can do things like this: create an automatic soap dispenser to supply dishwashers when you are doing the dishes.
Yes, a user created a dispenser equipped with a proximity sensor so that as soon as you bring the scourer or sponge you use to wash dishes, glasses, cutlery, etc., you dispense a specific amount on it. How do i do it? Well, with a list of parts that really anyone could get.
- Raspberry Pi Pico , but it could be worth any other Raspberry Pi models. So it will depend on other aspects to choose one or the other.
- A peristaltic pump, a type of positive displacement hydraulic pump used to pump / dispense different types of liquids. The only thing is that it must work at 12v
- Ultrasonic distance sensor
- Control module HW-095
With all this and knowing how each device is connected to each other and then to the Raspberry Pi, the next thing is to use a code that will be the one that allows defining how much soap or dishwasher it is going to dispense when it detects that it has to be done. In this case, the user who created this dispenser established 0.5 seconds as the time that he would be making soap, but it can be modified to suit the user or the amount that the used pump dispenses.
From there it is a matter of polishing details such as the use of the bottle that will be used for the liquid, how the casing will be where the pump will go and even other elements. But in the end the interesting thing is the components and code topic, so that you can replicate it to your liking if you consider it interesting. Something that you could do not so much for the home but for your workplace. Here let your imagination fly.
Code for soap dispenser
This project, the work of FireMarsMallow, has the code that the Raspberry Pi should run available to everyone on GitHub . So you just have to go, copy it and after mounting your own dispenser, run it to get it working.
So if you start doing it, it inspires you for another idea or to adopt something that you already had, do not stop sharing your creations with us. Of course, if you do not want to complicate yourself or you do not have a Raspberry Pi lying around at hand, you can also choose to acquire an automatic soap dispenser that there are of many types and prices at this point in the movie.