DC Motors with a 220V Relay

Hello World!

I want to run a dc motor with a 220V relay. I know DC motors can be run using a relay but when I search the internet for this, I am not getting good results. Can someone please give the code and circuitry for this ( especially the circuit )...Thank you so much!

(deleted)

I am sorry for not being clear.

I wanted to spin the DC motor using a 9V battery.

Could anyone help me out? Thank you!

(deleted)

I have a 2 channel relay how should I give connections? The same as you have posted above?

(deleted)

(deleted)

relay vs module2.PNG

I am sorry for not being Precise. I want two motors to run on the module with using a 9V battery. I have attached the image of my module to this post below. Please download it and tell the circuit and code.

Thank you!

Here is my relay module attached to this post :-

(deleted)

(deleted)

Thank you so much! By the separate DC Supply you mean we can attach a 9V battery right?

I have +1 Karma for smart-jb

(deleted)

(deleted)

Ok thank you so much!