Microcontrollers reset problems are created when you are using same power supply for driving the microcontroller and the motor.
If your board is not behaving as expected then there is a way to find out ,

If you have an LED/Buzzer on the board then add code to blink/beep  the LED/Buzzer once at the start of the main program. If the microcontroller is getting reset then when you power up the board the LED or Buzzer Will blink or beep continuously.




About the Author

is the author of this blog and is an Embedded systems design engineer by profession & Founder @ Valetron Systems Pvt Ltd


Email:This email address is being protected from spambots. You need JavaScript enabled to view it.

Find us on Google+

HIRE ME FOR YOUR PROJECT AS A FREELANCER

 

EasyEDA: Free Circuit Design Software

  • Easy Schematic Capture
  • Powerful Circuit Simulation
  • Online PCB design

Design Your Circuit and PCB here:

https://easyeda.com/editor

PCB Prototype Manufacturer - JLCPCB

Electronic Components Online Store