If you are working on the sketch, you will want this part in place of the current H bridge. It isn’t quite correct yet as I haven’t figured out which motor pins are ground (as they need to be bused) but that won’t hurt for the moment. Schematic on this one actually works.
H-Bridge with L298N-fixed.fzpz (14.7 KB)
Just download the fzpz file and load it in to fritzing via open and it will appear in your mine parts bin ready for use.
edit:
Fritzing is giving you a poor first impression , I’m so far no further ahead on why your regulator(s ?) failed. How do you know the regulator has failed? With Vin present 5V doesn’t appear on the 5V pin? In any case, there are two additional problems (both Fritzing). The hc-05 part is also defective, it will not connect properly to the breadboard because its pin spacing is incorrect. Below is yet another replacement part for that. The second problem is a new (at least to us) bug found by someone a couple of weeks ago. You can not connect parts via wires through the breadboard (which I’m fairly sure is a Fritzing bug). Part to part connections work, but part to breadboard via a wire and then back out via a wire to a part does not work. That is why your sketch is having routing problems. In addition, the voltage divider on the HC–05 receive pin is wired wrong. If the resistors were not there, that would possibly explain the regulator burn out, as connecting a 5V pin to a 3.3.V pin clamped by another voltage regulator (inside the HC-05 board) could cause burnout, but likely not with a 1K or 2K resistor in the way. I’ll continue poking at the sketch tomorrow now I have an HC-05 part that can be made to work on the breadboard (with it not being able to connect to breadboard it needed wire to breadboard to other part which won’t work).
Edit:
An updated version of this part (the first one’s schematic is wrong!). If you have downloaded the old one please replace iit with this one.
Bluetooth HC-05 Macho-fixed.fzpz (41.6 KB)
I will also submit this one as a fix to core parts.
Peter