Which Sensors I could use to detect if there is a glass on a specific Spot or not? I dont want to use visible Buttons which will be pressed by the glass. I thought about something like a capacitive Touch sensor hidden below a thin plate. But I dont know if that could work.
Thank you for the Quick reply!
These are good ideas. But with the Micro switch... How would I build it waterproof but elastic? Since the surface where the glass is placed has to move a bit up and down.
I don't want to distract the conversation from the optical sensors, but if you are not sure if your glasses will reflect light an ultrasonic sensor (such as the HC-SR04) can also do the job. The disadvantage is that they are much larger than the IR sensors, and your glass would have to be wider than the sensor itself.
If you bend the micro switch arm you can have a short piece sticking up where glass goes , unnoticeable ! The weight of the glass then trips the switch .
Problem is , unless you drink a lot you have to switch the system on and off which takes longer than a normal optic dispenser .
Old shot lying in the pump may well take a funny smell from the rubber parts .
Maybe just me , but simple is good …
You need to guard against it going wrong too and emptying your alcohol all over the floor when you are out .