need help on how to go about with project

My project requires me to build a vending machine for medicines, I want to make it such that the doctor can use a GUI to prescribe the medicine and that prescription must go to the vending machine which should use fingerprint for authentication. I am thinking of using java netbeans for the GUI, since it's the only way I know how to build one and a mysql database to store the fingerprints and prescriptions. I am using this as reference: https://howtomechatronics.com/projects/diy-vending-machine-arduino-based-mechatronics-project/ Can someone help me out, I am new to arduino and I have till August to complete the project

Can someone help me out

That is what we are here for? What help do you need?

I am new to arduino

Most who ask for help here are new.

I have till August to complete the project

Now that is refreshing. Most people that have projects with deadlines are due tomorrow.

Read the how to use this forum sticky and some of the other stickies in bold at the top of each topic to get some advice on how to get the most from the forum. That starts with knowing how to ask a good question and providing as much information as is necessary.

My first thought with this is that if you build this machine and it vends the wrong drugs and someone dies as a result....

Since it is a school project, the chance of anyone actually using this is next to impossible.
For this to ever be implemented as a real machine, there would be testing and regulations and such.
The laws and regulations would make mistakes next to impossible to make machine errors.
Besides, my local pharmacy has such a machine now.
Pharmacist enters the prescription. that is sent to the machine
the machine picks the bottle and puts it on a tray.
the pharmcist picks it up, reads the label, verifies that the prescription matches the drugs
checks the other drugs the patient is taking, verifys there is no drug interaction
looks at the pills, verifies that the square blue pills are not green triangles.
then puts them into the vile for the customer with label.

===========================

For any project, we suggest you make a simple drawing of flow lines and devices.
This help you organize your thoughts.

As I see your project, it is easy to break into bits.

Mechanically, you have a machine that moves jars to some point.
To know the jar is the correct jar, having the jar bar coded, maybe on the bottom
You can put a jar, scan it, verify it and then put it on the outbound side.

Or, retrieve it, and place in the storage rack.

So, you need a data base for the jars and a mechanical means to pick.

That is a great place for the Arduino.

Second you have the MMI or Man Machine Interface. or whatever they are calling it these days.

Think of the flow,
Pharmicist walks up to the display, fingerprint scan, I assume a PC interface ?
Password or whatever
Display allows some search type. possibly scan from prescription ?
Say, you want Plecibo-21
Then enter your drug name
The PC would then send the Arduino the code for that drug.

As I see this project, you have the pharmacist input unit and the machine operations unit
and they talk.

Are you part of a team ? this sounds like a great project for a very advanced robotics class.

gwenmillett: Can someone help me out, I am new to arduino and I have till August to complete the project

Let's assume you have all the PC programming figured out (or most of it) ...

You need to design the mechanical system that the Arduino will control and you need at least a high-level concept of what the Arduino program will need to do. if you are competent with PC programming that high-level concept will be well within your grasp.

Then you need to consider what messages the PC will need to send to the Arduino to get it to do its task and whether it will be necessary for the Arduino to send messages to the PC - maybe to confirm that it has received an instruction or to say that it has completed a task and is ready for the next instruction.

I avoid Java as much as possible but this Python - Arduino demo and Serial Input Basics should give you a good idea about how to communicate between the PC and the Arduino.

If you make the messages from the PC as simple as possible it will make the Arduino programming much easier. For example if there are 15 pill bottles then use letters A to O to identify them.

I try to keep as much as possible of the complex logic in my PC programs as the PC program is generally a lot easier to modify and debug.

If you are planning to use stepper motors as part of your system these links may help Stepper Motor Basics Simple Stepper Code

...R

Robin2: Let's assume you have all the PC programming figured out (or most of it) ...

You need to design the mechanical system that the Arduino will control and you need at least a high-level concept of what the Arduino program will need to do. if you are competent with PC programming that high-level concept will be well within your grasp.

I have given this some thought. supplies on shelving in special locations. X/Y/Z axis to pick from shelf and to put back there are many ways to do this. since this is the heart of the part the Arduino would play, the design needs some thought.

I think the OP has missed an important part of the doctor/prescription/pharmacy system. A doctor does not prescribe a jar of some medicine. He/she prescribes a certain number of pills per day at a certain strength for some time period. The pharmacist then fills the prescription by computing the number of pills required and draws that number from their BULK supply of that strength of medicine.

SO the op needs to consider how the pill count will get from a bulk supply to his machine and into his jar, which will vary in size.

At my age, I am quite familiar with the system.

Paul

dave-in-nj:
I have given this some thought.

I was rather hoping the OP would do that

…R

There is a huge gap of information hete. If the phamacist stuffs the vials and pits on yhe labels and all the patient does is popock up the scropt, it changes the scope

dave-in-nj: all the patient does is popock up the scropt,

Indeed :) :)

...R

Hi, I think the OP is thinking along these lines, I have quite a few Pharmacies here that have similar machines. |500x335

I think the days of the Pharmacist making individual packets of tablets is long gone, and they very rarely open a packet to change the number of tablets for a particular patient.

These machines are fun to watch and entertain while you are waiting for your prescription to be made up.

Tom.... :)

I concurr with paul KD7HB Meds in my pharmacy come in large bottles. Pharmicist dispenses 3 day supply to one patient, 2 week supply to the next. One of my local pharmacies has a similar machine to the photo. Not sure which way it works.

This dispensing machine project is a school assignment so we are probably over thinking it.

No matter how it really works to OP is getting themself set up for success.