For the last few weeks I’ve been having electrical issues with my car. At first I thought it was a faulty Halfords battery not charging properly, going completely off of negative feedback from friends who swore it would definitely be that because apparently Halfords sell naff batteries. I have no evidence to back that up and needless to say, the poor reputation they apparently have is not grounds to jump to a conclusion,

Anyway, as you can guess, the battery continued to die so as a temporary measure I purchased a cheap battery charger from screwfix, which has been a lifesaver and has enabled me to get to and from work, but not much else. I work mostly nights, so the lights put more of a strain on the battery, and I found the speedometer to get very dim, but then occasionally it would go back to full brightness, for instance if I went over a slight bump in the road. My immediate thought was that this was then an earthing problem. I cleaned the starter motor’s earth, and replaced the bare metal battery earth and the earthing strap under the gearbox with better protected insulated earth cables, as I thought corrosion might’ve caused them to no longer work. I also cleaned the nuts, bolts and washers, as well as the areas they made contact with the body, but still no luck.

With a battery fully charged the light on the speedo is sometimes dim straight from the start, and the other day whilst on a roundabout the speedo lights went just about as dim as they could go without being fully extinguished, and the car lost all power – I was just able to roll to a safe place in a layby, where the car made a miraculous recovery and kept going, with the lights nearly at their full brightness.
I, being of very limited car knowledge, and with only the most basic understanding of electricity and such, am now under the impression I should be looking for a loose connection that is getting jolted in and out of place, which would explain why sometimes the car plays ball, and why other times it gives up before miraculously curing itself.
Any advice, suggestions on what to check, or what wires are most likely to be causing me jip?

Thanks!