Hi there,
(First of all, I would like to apologize if this isn't the correct category for my actual problem - and also if this question of mine happens to be downright simple)
I am basically developing a project with the use of an arduino nano, a L298N driver, 2 DC motors and a 4-AA battery holder. On the baterry holder, each battery is supposed to provide 1.5V, so with 4 of them the total voltage should be around 6V.
Since I do not know how to draw a sketch, I will try to describe the connections here: currently, the 6V from the battery holder supplies both the Nano's Vin and the L298N's pin identified as "+12V", but I've also connected the Nano's 5V pin to the "+5V" pin from the L298N (with the L298N's 5V regulator jumper removed). Please have in mind that I am unfortunately a newbie on arduino development, so I do not know if this setup would be actually the correct one. Also, I am using this model for the 2 DC motors.
Here is my current problem: after some time using the same batteries for this project, I've noticed that the 2 DC motors started to behave strangely (one would start operating before the other, and sometimes they would not operate at all when they were supposed to). After checking that the voltage supply have dropped to 5.7V, I've decided to substitute the batteries for 4 new ones and after that everything went back to normal.
In order to avoid the need to substitute the batteries too much frequently, I've started to consider using a 8-AA battery holder (which should supply around 12V). I’ve managed to do some research regarding the maximum allowed voltage for the Nano’s Vin, but some resources stated that the range would be from 7 to 12V, while others stated that it would be something like 6-20V.
Also, I’ve checked the L298N datasheet and discovered that the maximum supply voltage for the +12V pin would be quite high, however a friend of mine told me that if I delivered 12V to the L298N, it would deliver 12V to the 2 DC motors and thus both would be "toasted" (since they are supposed to operate with 3-6V). I’ve asked him if the L298N wouldn’t have some kind of internal voltage regulator for the DC motors, however he wasn’t sure about that (and I couldn’t find any info related to that as well).
Should I keep using the 4-AA battery holder instead of the 8-AA one? If it is actually possible to substitute to the 8-AA, would there be the need for me to implement any kind of modification to my protoboard/driver/code? Any kind of advice here will be very much appreciated!