If you think that the dynamo is not charging then put a multimeter across the battery. With the engine off it should show 12V (give or take a quarter of a volt). With the engine running at about 1500rpm it should show about 14V (no lights on, no wipers, no heater fan). If it is much less than that then the dynamo (or regulator or wiring) is faulty.