Hanging chads were caused by a dumb idea to make ballots automatically countable. The solution is to make ballots easier to hand-count, by having separate ballot papers for each position (or at least the most important ones) and counting them by hand.