Pill Dispenser by sopak 3d model
Warning. This content is not moderated and could be offensive.
drug
3dmdb logo
Thingiverse
Pill Dispenser by sopak

Pill Dispenser by sopak

by Thingiverse
Last crawled date: 2 years, 12 months ago
Pill Dispenser for up to 20 doses.
This tool use NodeMCU(ESP-12) (in C++ mode), that means we use eps8266 as main prosessor.
This cheap little board can run webserver, which is used to setup dose times and internet connection may be used used for time synchronization in future. My application needs no exact times as dosing starts in different time each day.
Movement is done with cheap 28BYJ 5VDC step engine and ULN2003 stepper driver, it is accommodated with optical sensor for right position (Carrier wheel have printed special cylinder with spacing). 0.96" I2C 128X64 monochromatic OLED display is used to show immediate data.
I use 3* parallel 18650 scrap laptop batteries and TP4056/microusb charger (photo included), it may be replace by another 3.7V+ source (on NodeMCU to Vin). Batteries are not necessary. I did not make it to be "super low consumption device", but it easily works longer then 5 days without charging and display is always on.
Control is done by webserver also by one button, and display.
Button is any with 12mm and nuts, Recommend easy to press, I already had to replace it.
Display show's dose number, sequence number in day and time to next dose.
Short button press will move to next dose in daily sequence, mainly because targeted person can start medication in different times as sleeping is irregular.
Button press for 5 seconds will execute full deploy and return to 0 position.
Button press for 30 seconds will execute restart of network configuration.
Device is capable of OTA uploads over WIFI.
Dose timing is controloed by sequence of minutes (zero means wait for press button)
example: 0,120,1,0,1,120,120,120,120,120
fill time is between 16:00-18:00
press button around 18:00, pill at position 1 is released
20:00 position 2 released
20:01 position 3 released (another pill before sleep)
press button after wake up around 06:00, pill at position 4 is released
6:01 position 5 released
8:00 position 6 released
10:00 position 7 released
12:00 position 8 released
14:00 position 9 released
16:00 position 10 released
Source code for NodeMCU(eps8266) will be in this repositoryhttps://bitbucket.org/sopak/pill-dispenser
(...I will upload source code and schema in future...)
Prototype on photos(will be included in future) had problem with charger, therefor is only hot glued to the top.

Tags