Co-design of a Smart Cajón