dc motor with npn transistor

I want to control two dc motors with npn transistors can it be possible please provide me the circuit diagram

Do not power a motor with the Arduino 5V. External power supply ground to Arduino ground. Do not omit diode.

Make that resistor 150 ohms, not 1k, if the motor's not miniscule. Also many motors will overload a 2N2222, and a higher current transistor or logic-level MOSFET may be needed.

Back to the original question:

I want to control two dc motors with npn transistors

By control do you mean on/off, one direction or two, and do you want speed control? What is the motor in question (motors come in many sizes!). What power supply might be involved?

You probably don't want to use npn transistors, you probably want whatever will do the job properly!

transistors can do the function efficiently like driver?

I want dc motor in two direction

rko111: I want dc motor in two direction

Then you need an h-bridge.

Without using that?we cant do?

4 switching devices in an H-bridge are required to drive a motor in both directions.

Here's a nice article from NYU on H-bridges https://itp.nyu.edu/physcomp/labs/motors-and-transistors/dc-motor-control-using-an-h-bridge/ Be sure to see the datasheet links also.

Without using that?we cant do?

We ?

Here’s a nice article from NYU on H-bridges

Except it doesn’t tell you how to control the speed.

This tutorial shows how to do that

The request did not ask for speed control, but it is a nice addition.