ESP resetting

Submitted by Ethan on Fri, 06/28/2019 - 18:59

hey, i was doing a project of reading temperature sensor from DHT11 with NodeMCU and i am trying to control a 5V motor with gpio but NodeMCU is resetting when i start the motor by sending high signal in D0 pin of NodeMCU. Also the data doesnt show on the serial monitor. please help me 

dear ethan, this is clearly a problem of voltage. as we know that the NodeMCU pins can output 3.3V but you have connected a 5V motor. So NodeMCU is resetting whenever you give high signal to D0. i would sugget that use relay module to run a motor. or you can use level shifter also. 

  Joined January 21, 2019      42
Monday at 12:12 PM