bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/Node.js/Hardware & IoT
Node.js•Hardware & IoT

Node.js Raspberry Pi - Components

What are Components?

Components are parts of a larger whole. In this chapter, we explain the different components we use in our tutorial.

The Raspberry Pi and GPIO Pins

This is an illustration of the Raspberry Pi 3. The GPIO pins are the small red squares in two rows on the right side of the Raspberry Pi, on the actual Raspberry Pi they are small metal pins.

Formula

Input pins are like switches that you can turn on or off from the outside world (like a on/off light switch).
Output pins are like switches that the Raspberry Pi can turn on or off (like turning on/off a LED light).

The Raspberry Pi 3 has 26 GPIO pins, the rest of the pins are power, ground or "other". The pin placements correspond with the table below. Raspberry Pi B+, 2, 3 & Zero 3V3

5V

Gpio 2

5V

Gpio 3

Gnd

Gpio 4

Gpio 14

Gnd

10

Gpio 15

Gpio 17

11 12

Gpio 18

Gpio 27

13 14

Gnd

Gpio 22

15 16

Gpio 23

3V3 17 18

Gpio 24

Gpio 10

19 20

Gnd

Gpio 9

21 22

Gpio 25

Gpio 11

23 24

Gpio 8

Gnd

25 26

Gpio 7

Previous

Node.js Raspberry Pi RGB LED with WebSocket