When I powered it up it took just a couple of minutes for the regulator to reach thermal shutdown! That's weird.
This is the schematic for that board.
So I thought I must have under estimated the power consumption and so I upgraded the regulator to a TO220 L7805CV of 1.5amp max output. Again it got hot and eventually went into thermal shutdown.
So back to the breadboard I went and sure enough, with an input of 18vdc the reg would shut down after a few minutes. If I went back to 12v input it would stay cool enough to not shut down but was still hotter than I would like. The regs I used are rated for up to 35v input which I needed because the project may be fitted to 24v vehicles.
I measured the current draw of each item. The wemos was 80-85mA, the GPS was 8mA, the stepper driver was 70mA, I did not have the linkage sensor connected. I then measured the current going into the regulator at around 170mA. Well within limits of the reg.
The other odd thing is, while powered from the regulator to the 5v pin, the wemos would be active and I could log on via browser but the stepper driver would not work. By simply disconnecting the power to the 5v pin and then powering via the usb port, everything works fine. I thought this might be caused by dirty power from my power supply so I breadboarded a circuit like this minus the 9v regulator.
When powered via the reg to 5v pin I still had no working stepper driver.
I must be missing something. I cannot understand why the regulators are getting so hot, or why the stepper driver works on usb power but not on 5v pin power.
Any clues anyone?