Hello, I'm working on a project where I have to run a 5V dc motor using an L298N motor driver with Arduino. In this project, I've used two different power supplies. One is for Arduino nano which is a 5V adapter another one is for the motor driver which is a 9V adapter (this 9V adapter provides almost 840 mA current). Now, my question is do I need to connect the ground of the motor driver with the Arduino ground? I have provided the connection that I have made.
Well, my motor is not working that's why I'm asking this question. I'm a little bit nervous that if I connected both common grounds, my circuit might blast. So,please give me some suggestions about it.