Shaztech / Pilldispenser

Automated pill dispenser
62 stars 5 forks source link

Automatic Pill Dispenser

Complete open source project with cheap and easily available parts (listing below). All 3d printable parts are in STL format, Gerber PCB are packed in zip for easy drag-drop in your prefered provider (JCLPCB, PCBWay, etc). Software are available in pre-compiled (bin files) for the ESP32, or all Arduino files are there so you can edit them. I've included all the library I used. The full LCD interface is in Squareline Studio. Just follow the guides in order to assemble it once you have all the parts.

Please check the user manual for the usage of the device.

Alt text

Features:

Alt text Alt text Alt text

Part listing:

(A## = Printed parts, B# = PCB, B#.# = PCB Parts, P# = Parts purchased, S# = Screws)

Printed parts (STL Files) (complete profile in makerworld):

PCB parts:

Parts purchased:

Assembly/Notes:

Alt text

Note #1:

Fill the hole with hot glue after you carefully placed and aligned the usb connector. You can hold it in place with a USB-C cable plugged in the other end.

Note #2:

You can add 24 flat washers Ø5/8" and print the A1.1 washers holders, to add weight to the base.

Alt text

Note #3:

Before you install the A12 Cam to the servo, connect the PCB with the servo into the base. And power the base. The servo will self align to the resting position and install the cam like in the picture.

Alt text

Note #4:

There's a notch and a line printed in the rotating tray (A15), so you can align the P-Touch label from the start of the label all around the ring (starting with E, ending with 30).

Note #5:

When you insert the ring be sure that the hole in the bottom of the tray is fully align with a container in the ring. (Not half of 2 containers)

Note #6:

The top dust cap have a hole to insert the stylus that usually come with the LCD module when you buy it.

Firmware flashing:

The first Firmware Installation:

esptool.exe --chip esp32 --port COM4 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 PillDispenser.bootloader.v1_3.bin 0x8000 PillDispenser.partitions.v1_3.bin 0xe000 boot_app0.bin 0x10000 PillDispenser.esp32.v1_3.bin 0x3D0000 PillDispenser.spiffs.v1_3.bin

In the future if there's an update:

Use the OTA update page in the web portal of the device, only 2 bin files are needed (esp32 and spiff)

Buy me a coffee.