wanderingbob wrote:
where would I put the controller , close to the batteries or close to the panels.
Close to the batteries usually works best, so that the controller is actually measuring the voltage at the batteries (instead of the voltage at some point along the wiring that may be different due to losses in the wiring itself.)
Some controllers have a separate battery voltage "sense" connection that allows you to run a second wire to the batteries just to measure their voltage without the effects of losses in the main current-carrying wires - in which case you can mount the controller just about anywhere.