If you look at the schematic you posted, it shows only TWO inputs connected.'
What's missing ? ENB ! (for inputs IN3 & IN4)
Each bridge is driven by means of four gates the input of which are In1 ; In2 ; EnA and In3 ; In4 ; EnB.
The In inputs set the bridge state when The En input
is high ; a low state of the En input inhibits the bridge.
All the inputs are TTL compatible.
While not mandatory, it is recommended to use an ENable input so you can inhibit (disable) the motor if necessary.
I have no idea why the L298 should smoke but I CAN tell you that the two inputs you connected would not work
because there is no RETURN signal to the L298 for the input signals. The NodeMCU GND is NOT common to the
L298 and thus if you measure from the L298 GND (ALSO the 12V Batt GND) to either of those inputs coming from
the NodeMCU, you should NOT see a 0 to 5V TTL logic signal because the NodeMCE GND is NOT connected to the
L298 GND. This is clearly a mistake. I would take that measurement to see what voltage you actually have on the
input pins of the L298. If they are 12V INSTEAD of 5V, that explains the smoke.
I realize that you are probably new to electronics, but I am obligated to advise you that connecting and powering
electronics BEFORE consulting electronics experts is unwise for a noob. It cannot end well.
This whole thread is about switching an actuator with relays until your last post where you inform us (AFTER the
FACT) that you tried the L298 . In retrospect, it would probably have been wiser to post your miswired fritzing for
that circuit BEFORE turning on the power. This is especially true when using such a powerful power source (12V
Battery) that is capable of delivery high levels of current.
Measure the voltage from the L298 GND to IN3 & IN4 and post the results. Then replace the L298 and make sure
to connect the L298 GND to whatever MCU used to input the input signals, as they have no meaning without a
return. I would also recommend adding the ENB connection from a NodeMCU output. FYI, an EMO (Emergency
Motor OFF) panic button can be wired using a Normally Open contact (instead of the standard N.C.) that connects the ENB input to the L298 GND, such that pressing the EMO asserts a logic LOW on the ENB input of the L298.
An EMO wired in Normally Closed mode between the 12V battery and the L298 motor power input would not
work for the simple reason the EMO switch would immediately burn up with 2A of motor current going through
it. (I'm explaining this for your benefit since everyone on the forum already knows this)
I would also disconnect the battery and measure continuity from the buck converter input GND to the buck
converter Out
- to see if they are connected.
