How to Make an Automatic Cafe Stirrer for 8$ With Arduino Nano and Magnet

by Turtle Fight in Circuits > Arduino

476 Views, 2 Favorites, 0 Comments

How to Make an Automatic Cafe Stirrer for 8$ With Arduino Nano and Magnet

Screenshot 2023-04-16 082404.png
I made an Automatic Cafe Stirrer for 8$ with an Arduino and a Magnet - Turtle DIY
Screenshot 2023-04-16 082335.png
z4268447754723_231b7d60bd3f830b53aa9377a10b05c1.jpg
Screenshot 2023-04-16 084351.png

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

arduino-nano-v3-0-atmega328p-khong-kem-day-cap-usb-adnnv3-1.jpg
Screenshot 2023-04-16 085046.png
Screenshot 2023-04-16 090010.png
31U4JA+4gVL.jpg
download.jpg
Screenshot 2023-04-16 085121.png
Screenshot 2023-04-16 085219.png
Screenshot 2023-04-16 085237.png
DC_female-round3.jpg
download (1).jpg

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

Screenshot 2023-04-16 090508.png
Screenshot 2023-04-16 090613.png
Screenshot 2023-04-16 090646.png
Screenshot 2023-04-16 090718.png

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

Screenshot 2023-04-16 091428.png

You need to add 2x 15x3mm magnets into part "ga nam cham" like this.

Match 3 Magnets Into 1

Screenshot 2023-04-16 085237.png
Screenshot 2023-04-16 091827.png

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

Screenshot 2023-04-05 222923.png
Screenshot 2023-04-16 092709.png

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

Screenshot 2023-04-16 094128.png

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

Screenshot 2023-04-16 094029.png
Screenshot 2023-04-16 095958.png
Screenshot 2023-04-16 100048.png
Screenshot 2023-04-16 100233.png
Screenshot 2023-04-16 100255.png

I put everything in the box and fixed it with glue. So everything is done.

Testing

Screenshot 2023-04-16 100621.png
Screenshot 2023-04-16 100652.png
Screenshot 2023-04-16 100732.png
Screenshot 2023-04-16 100803.png

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 !