I have the solution! (Ok, so I found it. ) Lemme know when you want it.

The secret lies in assigning each ball a unique "code" made up of the 3 positions that it can occupy during each use of the scale: left, right, or set aside.