Vending machine controlled by potentiometer

Hi! I have a new project at my university and I am stuck a little bit. My project is to make a simulation of vending machine- The selection of candy is controlled by a potentiometer, and the name of chosen candy is written on the OLED screen. I start my DC motor by pushing the button. Can you help me with the circuit? It can be done also on STM32 ARM controller.
Thank you in advance!

You are stuck, WHERE?
Paul

Hey, are you still stuck on that project, I was somewhere else for a while.

Do you need code, too?