I'm building a gas detection robot. I need to know if I can control for dc motors and two servo from 12v dc powrr using l293d shield at the same time.
You don't need a shield to control servos - they contain all their own control electronics.
...R
But I already bought the shiled to control the motors and it leaves no pin on the arduino
Which shield did you buy?
How much current do your motors draw?
I see that the old Adafruit one can manage two servos and four motors, so maybe yours can.
Dilshanrodrigo:
But I already bought the shiled to control the motors and it leaves no pin on the arduino
I am not an expert on shields - I never bought one for exactly that reason.
I suspect that the shield does not use all the Arduino I/O pins and you can probably connect to the pins that it does not use. But you need to post a link to the datasheet for the shield that you have,
...R