Remind Me to Take Medicine Machine

by meganlin23 in Circuits > Arduino

322 Views, 0 Favorites, 0 Comments

Remind Me to Take Medicine Machine

IMG_9290.jpeg
How to download

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

IMG_9216.jpg
IMG_9217.jpeg

Code

Connect the Circuit

截圖 2019-12-17 上午11.17.42.png
截圖 2019-12-17 上午11.22.15.png

(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

IMG_9231.jpeg
IMG_9232.jpeg
IMG_9229.jpeg
IMG_9228.jpeg
IMG_9230.jpeg
IMG_9274.jpeg
Motor rotates
IMG_9234.jpeg
  • 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!

test video

This is the test video.

Hope you enjoy it!