Introduction: Medication Reminder
Old Elderies, People who has amnesia and often forgets (English/英文）
Inspirations of this Topic/作品的啟發
My grandparents have been getting older throughout the years. The medications they need to take have increased as well. Their memories have weaken as they aged, so they would sometimes forget to take their medications for breakfast, lunch, dinner. My Arduino device would help my grandparents to remember to take their daily pills! (English/英文)
How would my device function/我的作品會如何運作
My device would mainly need 4 LEDS and also a button. The different led lights would be placed in front of the pill capsules. Whenever you press the button, the light will switch to another capsule position. Hence, the user of this machine would know which capsule of pills they would need to take at that time. (English/英文）
My machine is simple and only uses the functions of button and 4 LEDS because it will be simple for elderly's to understand. My goal was to let the elderly's to easily understand the function of the machine, and also to let elderly's to easy assemble the machine if they need it! (English/英文）
The machine will blink after the day is over, this is a function which I added so the elderies will know whether they have took their medications for dinner （English/英文）
Step 1: Step 1: Materials/材料
- 4 Yellow Resistor
- 1 Blue Resistor
- 4 LED
- 1 Button
- Arduino UNO
- Pill Case
- Arduino UNO
Yellow Resistor: https://www.amazon.com/AUSTOR-Resistors-Assortment...
Blue Resistors: https://www.amazon.com/Resistor-Assorted-Resistors...
Step 2: Step 2: Wiring/電路圖
Connect 3 LED on the breadboard, I've used Dpin 10, 9 ,8m=, but it's optional so you can change it to anything you want. This same goes for the button Dpin I've set my button as 7, but you can changed it into any other dpin later on. Make sure you've connected the positive piece on your breadboard with 5V, and connected the negative part of the breadboard with GMD. For each button you will need to put a yellow resistor, for the button you will need to put a blue resistor. The wiring mappings are on the pictures, so I would not be instructing the paths of each wire.
連結3顆LED到您的麵包板上，我使用了Dpin 10，9 ，和8 做為LED的Dpin，但是您之後可以改他，不需要遵照我的路線。按鈕也是，我使用Dpin7，但使用者可以自己做變動！記得麵包板的正極需要接5V而負極需要接GMD！LED的部分，您需要為每一顆LED放置一顆黃色電阻，按鈕需要放置藍色電阻。電路圖在圖片供應，所以不會再多說明連結的路線。
Step 3: Step 3: Coding/程式
This step is the code for my machine. As I said in the previous step. You do not need to connect the same exact dpin as I did on the LED and button. If you decide to change the dpin, don't forget to change the numbers where I've stated "dpins for *OBJECT*". Change the dpin which you have connected your device with. You can also change the time of delay of millisecond, you would need to change the number of the time. A greater number means that the wait time would be longer. I've set the wait time to be 100ms. You can change the time by changing "100" where it says delay in my code! Here is the link for my Medication Reminder Device: Medication Reminder Code
這個步驟解釋和供應機器的程式。如同我上一部所說，您不需要按照我所有的步伐。如果您在機器上改LED燈的dpin，您要記得也要在程式裡面改他的dpin，否則LED不會亮起。改的地方為"dpins for LED"，前面會有從一到十三的數字。您要改跟你在Arduino所連結的Dpin一樣。按鈕的部分也一樣，在 "Delay NUMBER millisecond（毫秒）"那邊，把數字改成你要的。越大的數字代表等待的時間越久，舉一反三，越小的數字等候時間則更短。這是我的程式碼：吃藥提醒機程式碼
Step 4: Step 4: Decoration/裝飾
Since I'm making this project as simple as possible for elders to understand and make, I've used cardboards as my decoration. Cardboards are easy to find, easy to do, and also cheap because they are free! Just make sure, you've poked in the LED holes outside of the box, and you've glued the pill case on the box. The LEDs would be in front of one of the slots of the pill case. The button should also be outside of the box, on the top of the box to be exact.
Step 5: Step 5: Problems/問題
- My LED does not turn on
This may be caused because you have placed the LED on the wrong position, you would need to put the long leg of the LED on the same path of the breadboard where it connects the Dpin, if you have placed them oppositely, it might cause your LED to burn!
You might also have changed the dpin on the arduino, but have forgotten to change the code where it says dpin!
- My button does not work
This might been caused because you have connect the button with the yellow resistor instead of the blue one.
- MY LED keeps on flashing
This is because you have completed your daily routine of eating pills, if you want to redo it again. You can simply unplug your energy source to your Arduino and replug. This will reset the whole code again, so you your LED would turn on from the start.