If I run the sketch without power supply for the motor (without power supply for the pin 8 of l293 )it run always good. But if give power supply at the l293, few second and Arduino is not controllable. It is stuck.
Pin-8 is the motor power supply . That's where the motor supply should be connected
pin-16 is the 5V logic supply for the L293.
Run the motors using only motor code with the motor supply connected to pin-8 of the L293 and tell me if it works.
I do NOT understand what you mean by this:
But if give power supply at the l293, few second and Arduino is not controllable. It is stuck
WHAT does that MEAN ?
Post photos of two hand drawn schematics :
1- schematic of L293 wiring when it works correctly.
2-schematic of L293 wiring when it does NOT work correctly.
Se si sta utilizzando uno scudo del motore che aveva L293 chip su di esso la tua domanda potrebbe avere un senso , perché uno scudo motore ha una presa di ingresso di alimentazione esterna barreljack , ma il diagramma Fritzing che hai postato con il tuo post apertura mostra un chip L293 e vi è una sola pin per la potenza del motore e che è pin- 8 .
Pin - 16 è per l' alimentazione logica 5V .
Quindi la domanda che hai fatto (che ho detto che non capisco ) non ha senso
If I run the sketch without power supply for the motor (without power supply for the pin 8 of l293 )it run always good. But if give power supply at the l293, few second and Arduino is not controllable. It is stuck.
How can it work with no motor power connected to pin 8 ? Where is the power coming from to drive the motors if there is no power supply connected to pin-8 ?
è necessario individuato la fonte di energia per i motori quando lo si esegue con niente collegato al pin 8 e misurare la corrente della fonte di alimentazione e inserire la misura della corrente e la posizione in cui è stata presa la misura.
I have an L293 circuit on a breadboard that I have ALWAYS run with the motor power (12V) connected to pin-8.
Look at the datasheet
Cosa dice su Vcc2 ? ( A pagina 3 )
Do you understand WHY we need to locate tge source of motor power when there is no connection to pin-8 ?
Capite perché quello che stai dicendo non ha alcun senso ?