Hardware & IoTLesson 105Free preview
RasPi Components
This lesson is part of Node.js · All levels
Summary
This lesson introduces the basic electronic components commonly used with Raspberry Pi, from resistors, LEDs, buttons, temperature sensors, to relay. You'll understand the function of each component and how to choose the resistor value with Ohm's law. This knowledge makes IoT projects safer and more reliable.
Key points
- The resistor limits the current; it counts with the Ohm law V = I × R (e.g. (3,3-2)/0,01 = 130 ohm).
- LEDs need a series resistor; reverse polarity LEDs won't turn on.
- Simple button: connect to the input pin with pull-down/pull-up so as not to float.
- General sensors: DHT11/DHT22 (temperature and humidity), PIR (motion), LDR (light), ultrasonic HC-SR04.
- The relay allows the Pi to control the high-voltage load (220 V light) separately.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.