How to Make an Automatic Cafe Stirrer for 8$ With Arduino Nano and Magnet
by Turtle Fight in Circuits > Arduino
509 Views, 2 Favorites, 0 Comments
How to Make an Automatic Cafe Stirrer for 8$ With Arduino Nano and Magnet
Hello everyone, my name is Turtle an automation engineer. Now, I will show you how can I build an automatic cafe stirrer. It is very easy and you can build it at home.
This is all project file: https://drive.google.com/drive/folders/1xF19CZfPxWgg5PZ-TmQDUVi_LJTM4vt4?usp=share_link
The device works very simply, it is based on two magnets of different poles attracting each other.
Let's get started!
Supplies
1x Arduino Nano
1x Motor
1x MX1508 motor diver
1x Photoresister
1x 10k resister
3x 3D printed parts
2x 15x3mm magnet
2x 8x10mm magnet
1x 10x3mm magnet
1x DC Female Jack
1x 5V Power supply
Design and Print 3D Parts
I used SoilidWork to design 3D Parts and print them with my Ender 3.
You can download all of parts here: https://drive.google.com/drive/folders/1xZmv8RNl5nrzCOO6rYaYrLph2LXsPIgn?usp=share_link
Add 2 Magnet Into a 3D Part
You need to add 2x 15x3mm magnets into part "ga nam cham" like this.
Match 3 Magnets Into 1
Here I have 2x 8x10mm and 10x3mm magnets. I matched 3 magnets into one, once completed it will look like the picture above and can be rotated.
Electronic Circuit
This is the diagram of this device.
I used 1 analog pin to read the voltage from the photoresistor. Does it mean that the cup is placed on the device?
I used a digital pin to control the motor speed through MX1508.
I thought the circuit was pretty simple so I used wire and soldered it all together.
Up Load the Code
This is the main code of this device. You can download it here: https://drive.google.com/drive/folders/1XfW5zsygtrCYUSTx1DPZnPLYX1WAiDxs?usp=share_link
The code is very simple: When the cup is placed on the device. The voltage in the analog pin is high. The motor is stated in 100ms. After that, I used PWM to control motor speed. If no cup on the device, the motor is off.
Assem Everything Together
I put everything in the box and fixed it with glue. So everything is done.
Testing
I tried using it to stir a packet of instant tea and coffee.
Everything works perfectly and I am quite enjoying it.
If you find it interesting, follow me for more tutorials in the future. Thank you !