I want use Arduino pro mini for my DC motor. My algorithm like this
Motor is working on clockwise ? If yes; my Arduino Uno give 5V on my motor. If no; my Arduino Uno Give 5V on my pro mini and pro mini give 5V my DC motor.
Question 1: Can I use in this way ?
Question 2: What should I need ?
No. An Arduino cannot provide power to any motor.
A suitable motor driver. Pololu has the best selection.
Motors need a lot of current. Logic chips provide very little current, they are about signal, not power. Think nerve v. muscle if you want an analogy.
Motor controller is the muscle, the microcontroller sends it signals, the motor controller drives large currents for the motor.