Automatic Pill Dispenser code convert

Sorry but this ain't a simple conversion project,

If we are to use a Rpi for this then obviously it should replace Arduino as well as the microchip iot board.

That is easily over $500 for an experienced person.