As we have four motors, we will connect the motors from the same side of the platform to the same output. We will connect digital signals to the L298N board to control the motors' behavior.
Each channel needs three signals to be controlled. IN1 and IN2 are digital signals used to set the rotation sense of the motor. ENA is used to control the intensity of the motor using Arduino Pulse Width Modulation (PWM) signal. This signal will control the left motor. For the right motor, IN3, IN4, and ENB will be the control signals. In the figure mentioned earlier, you have a diagram of the connection. ...