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

For this particular example, we will need two LEDs and one buzzer. The wiring connections of the LEDs and the buzzer to the RPi are as follows:

We can see the following from the connection diagram:

  • The positive (anode) pin of the first LED is connected to the wiringPi pin number 15, while the negative (cathode) pin is connected to the physical pin number 6 (the ground pin).
  • The positive pin of the second LED is connected to the wiringPi pin number 4, while the negative pin is connected to the physical pin number 14 (the ground pin).
  • One pin of the buzzer is connected to the wiringPi pin number 27 and the other pin is connected ...
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