Yeah the solution is simple.

Just licence everything private people can buy except (healthy food). /S

Microcontrollers and electric motors are too dangerous for the general public.