I have some concerns with the L296N module.

Let's consider the below module notation.

  1. I understand what all the connections do except the pair (7 and above) and (12 and above). Let's consider only the pair 7 and above(7b). To what should be 7 and 7b connected? To two different GPIO or to GPIO and GND?

  2. Why do they need 2 pins for the motor direction?Souldn't be only one enough since there are only two directions?(HIGH-HIGH and LOW-LOW encodings are not used).

enter image description here


1 Answer 1


What you refer to as 7b and 12b are 5V pins and should NEVER be connected to a Pi GPIO which are only tolerant of 3.3V.

Pins 7 and 12 are enable pins and enable motor A and motor B respectively. Generally it's simplest to connect a jumper between 7-7b and 12-12B so that motors A and B are permanently enabled.

Why two pins per motor? Why not? That's how the chip/module is designed.

8 9 (or 10 11 for motor B)
| |
0 0 free wheel (not driven)
0 1 clockwise
1 0 counter clockwise
1 1 active brake

L298N module

  • Thank you very much, thus LOW-LOW and HIGH-HIGH are used as brake and free whekk commands. Feb 17, 2016 at 13:03
  • @CosminMihai Yes, LOW/LOW is no power and no brake, HIGH/HIGH is no power but there is a brake effect (I don't know what causes the brake effect).
    – joan
    Feb 17, 2016 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.