Getting ready

We shall replace the previous Darlington array module with the H-bridge motor controller shown in the following image:

The H-bridge motor controller allows for directional control of motors

The datasheet of L298N is available at http://www.st.com/resource/en/datasheet/l298.pdf.

Get Raspberry Pi 3 Cookbook for Python Programmers - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.