Remind Me to Take Medicine Machine
by meganlin23 in Circuits > Arduino
322 Views, 0 Favorites, 0 Comments
Remind Me to Take Medicine Machine
This is a machine that can remind you to take medicine. People often forget to take medicine, whether before going out or before going to bed. It will drop a medicine when you pass by the machine, so put it where you regulary pass, like by the bed or by the door.
Let's get started!
Download this first https://github.com/johnrickman/LiquidCrystal_I2C
Prepare What We Need
- A cylinder
- A box
- Ruler
- Scissor, tape
- Breadboard
- LCD screen
- Ultrasonic Wave Detector
- Stepper motor
- Jumper wires
- Arduino UNO
Code
https://create.arduino.cc/editor/meganlin123/b8b303b6-1095-435f-9e7e-37d5e45ced33/preview
Copy the code and paste it on Arduino.
Don't upload it yet.
Connect the Circuit
(On a breadboard)
- Connect 5V to positive electrode (+)
- Connect GND to negative electrode (-)
- Connect the motor to Pin 8, 9, 10, 11
- Connect #Trig to Pin 4
- Connect #Echo to Pin 5
-
Other according to the picture
Start Assembly
- Cut a rectangle at the bottom on the box so that the screen is exposed and stuck.
- Cut two round holes beside the screen to expose the Ultrasonic Wave Detector.
- Also cut a small rectangle on the back of the box to connect with the computer (be tight).
- Leave the wires in the box.
- Cut a rectangle on the side to take out the motor.
- Sealed off the box.
- Stick the motor in the cylinder.
- Put a small sector on the motor (to make it move).
- A big sector is glued under the motor, in this way, when the motor rotates, there will be a hole for the medicine to fall off.
You can upload the code now!
Done!
This is the test video.
Hope you enjoy it!