Strange issue here. I have the wemos connected to the L298n Hbridge shield to drive two motors to open/close two windows. I am using the 5V output from the 298 to power the mini. When 12V power is applied to the 298, I get 5V at that terminal on the 298 and 5V on the mini. LED on mini flashes. Problem is that the mini does not connect to WIFI. I have tried three different 298's and mini's but none work. However, if I disconnect the mini from 298 5v and ground and instead connect via USB to a computer, the connection to WIFI is accomplished but switches are not recognized. If I then connect the mini ground back to the 298 ground all switches are recognized and system is fully functional. Finally, if I connect a wire from 5v on the 298 to the mini and then remove the USB cable, wifi and full system functionality are maintained.
Any thoughts on why this might be happening as I am at wits end!