I'm making a vape, just like nicotine vapes, but it has a computer that allows you to 1-select a specific dosage (say 5mg) or 2- select a target effect intensity, and deliver a sequence of doses to sustain the target, based on a pharmacodynamic curve.
(not for nicotine)
My sense (coming from a place of complete ignorance) is that the difficulty here is not going to be software/control side, but rather the hardware. It'll have to be capable of:
1. Accurately dose the required ingredients based on a setting selected.
2. Do so in a repeatable manner. 5mg is microscopic and likely well beyond the margin of error for a small dose pump. So you'll need to get creative in how you manage your product dosages. Perhaps a "reel" of pre-measured 1mg doses? You say it's not for Nicotine, so I assume it's for harder drugs. What will the risk of a double digit % overshoot be?
3. Be small enough to fit into a handheld vape module.