Skip to Content
Hands-On Robotics Programming with C++
book

Hands-On Robotics Programming with C++

by Dinesh Tavasalkar
March 2019
Intermediate to advanced
312 pages
7h 37m
English
Packt Publishing
Content preview from Hands-On Robotics Programming with C++

Wiring connections

The L298N motor driver consists of four input pins, four output sockets (two sockets for each motor), and two sockets for power. The Raspberry Pi pins are connected to the input pins of the motor driver. The DC motor wires are connected to the output socket of the motor driver and the battery snapper is connected to the power socket. The four input pins of the L298N motor driver are labeled IN1, IN2, IN3, and IN4. The output sockets are labeled OUT1, OUT2, OUT3, and OUT4. The following figure shows the wiring connection of Raspberry Pi, motor driver, and motors:

As you can see in the preceding diagram, the wiringPi pin numbers ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming

Learn Robotics Programming

Danny Staple
C++ Reactive Programming

C++ Reactive Programming

Praseed Pai, Peter Abraham

Publisher Resources

ISBN: 9781789139006Supplemental Content