The following circuit comprises of NodeMCU (ESP8266) which is intended to run a 200 RPM johnson motor. The circuit comprises of 5V Relay connected via Darlington pair using transistors. The circuit is powered by 12V, 1.3A battery through a 7805 Voltage Regulator.
Circuit Info: Transistor: BC547, Resistor: 120 ohm, Cap/Capacitor: 0.33 muF
The circuit runs the motor for few seconds and then turns OFF abruptly. Please let me know if there is an error in the circuit or any power circuit need to be additional put.