The best cure for the free solar power generation bug is to go buy a cheap $20 solar trickle charger and install it on one of your tractors.
After you discover you killed your $100-$200 tractor battery reverse powering your cheapo solar cell, you wont be tempted to cheap out on your $5000-$10,000 solar charging system that requires regular maintenance if you want the batteries to last more than 5 years.
That wall receptacle powered by the utility starts looking better and better!
While true power flows from higher voltage to lower voltage, and thus power from a battery has the potential to flow backwards at night in a "cheap $20 solar trickle charger" (you get what you pay for) unless you also install a blocking diode, you also don't have to go $5000 to set up what the OP wants.
Using any charge controller will do the trick, as they don't allow backflow.
Here is a simple setup I use on my sawmill battery to keep it charged. I started to have power at the building at one time (reason for the meter base/etc), then decided I really didn't need it, nor the $40/mo minimum bill for having a meter there, so I later did this solar charging system to keep the battery topped off. About 100 bucks in the setup, been working fine for many years.
40w panel, south facing:
Wire from the panel to the 10amp charge controller. 3 red LED lights mean fully charged battery.
Wire from the controller to a plug I disconnect when the mill is running (saw with battery moves, can't stay connected)
Then another small setup we have is for an automatic chicken door that uses a 12v motor twice/day. The coop is something temporary we use to raise new layers to get big enough until they can be integrated with the existing flock, so I don't have 120vAC power to it, nor does it stay in the same place each time we use it....so an independent solar power system works best for it.
50watt panel on the roof:
Charge controller, battery, 12v timer to operate the door, wiring mounted in a box on the front wall: