Powering Arduino Board

Drawing.pdf (495536Bytes)

Hi all

I have the following components (Arduino Uno, two DC motors , three Ultrasonic Sensors, L298N module) , I want to connect them together. First I connect each motor to the A and B connections on the L298N module. Next, I connect battery (16 v) - the positive to 12V pin on the module and negative/GND to GND pin on the module. I connect +5V and GND pins of each sensor to +5V and GND pins of Arduino board. I fed up Arduino (Vin & GND) from 5v and GND pins of the module. ENA & ENB of module to PWM pin of Arduino. IN1 , IN2 , IN3, IN4 of module to 20-24 Arduino pins. But when I run Arduino the sensors don't work normally and they result unstable readings, but when I just connect the Arduino board to the PC by USB cable without change any of pervious connections, the sensors work good and normally. So, What is the problem ? Any advices about connection the components? Thanks a lot

see the sketch in the attachments.