On-board electronics make pump smart