ESP8266 (D1 mini) fails to upload sketches
Thank you for your input. Especially the tip on connecting the battery while connected to usb [tttapa] I finally got it to work by changing the baud rate and messing around with the settings(i.e. board in IDE). I believe I got it to work with the "WeMos D1 R2 &amp; Mini" board whereas I was using the generic esp8266 board.