I'm a junior high sudient using a arduino uno for a selfdriving car competition but when I use power out for IRsensor ( TCRT5000 using 5v) and Ultrasonic (HC-SR04 3.3V) also 4 logic output(L298n without pwm) on arduino it doesn't work ,I'm guessing it's over the max current (40mA) of arduino so I use another battery to power the sensors but its not working at all