1528  Hardware Components and Tools

1528.1 Learning Objectives

By the end of this chapter, you will be able to:

  • Select appropriate sensors for different measurement requirements
  • Choose actuators for motion, switching, and output applications
  • Understand communication module options for different connectivity needs
  • Select proper power components for efficient, reliable operation
  • Set up a prototyping workstation with essential tools

1528.2 Sensors

1528.2.1 Environmental Sensors

Type Common Options Interface Use Cases
Temperature DS18B20, DHT22, BME280 OneWire, Digital, I2C Weather stations, HVAC
Humidity DHT11/DHT22, BME280, SHT3x Digital, I2C Agriculture, indoor air
Pressure BMP280, BME680 I2C, SPI Weather, altitude
Air Quality MQ-series, CCS811, PMS5003 Analog, I2C Indoor air monitoring
Light LDR, BH1750, TSL2561 Analog, I2C Automation, displays

1528.2.2 Motion and Position Sensors

Type Common Options Interface Use Cases
Accelerometer ADXL345, MPU6050 I2C, SPI Tilt detection, vibration
Gyroscope L3G4200D, MPU6050 I2C, SPI Rotation tracking
IMU (9-axis) MPU9250 I2C, SPI Orientation, navigation
GPS NEO-6M, NEO-M8N UART Location tracking
Distance HC-SR04, VL53L0X Digital, I2C Obstacle detection

1528.2.3 Proximity and Touch Sensors

  • PIR Motion: HC-SR501 - detects human movement
  • Capacitive Touch: TTP223 - touch-activated switches
  • Proximity: APDS-9960, VCNL4010 - detect nearby objects

1528.2.4 Industrial Sensors

  • Current: ACS712, INA219 - measure electrical current
  • Vibration: SW-420, accelerometers - detect motion/vibration
  • Flow: YF-S201 - measure liquid flow rates

1528.2.5 Knowledge Check: Sensor Selection


1528.3 Actuators

1528.3.1 Motion Actuators

Type Examples Driver Use Cases
Servo Motor SG90, MG996R Direct PWM Precise angle control
DC Motor Various L298N, TB6612 Continuous rotation
Stepper Motor 28BYJ-48, NEMA17 DRV8825 Precise positioning

1528.3.2 Switching Actuators

  • Relays: Electromechanical (5V/12V coil) or solid-state for high-current loads
  • Transistors: BJT (2N2222) or MOSFET (IRF520) for smaller loads

1528.3.3 Output Devices

Type Examples Interface Use Cases
LEDs Single, RGB, WS2812B Digital, PWM, Data Indicators, lighting
Displays LCD 1602, OLED SSD1306, TFT I2C, SPI User interface
Speakers Piezo buzzer, speakers PWM, DAC Audio feedback

1528.4 Communication Modules

1528.4.1 Wireless Connectivity

Protocol Modules Range Best For
Wi-Fi ESP-01, ESP32 50-100m Home IoT, internet
Bluetooth HC-05, HM-10 10-30m Wearables, proximity
LoRa RFM95W, SX1276 2-15km Agriculture, smart city
Cellular SIM800L, SIM7600 Network Remote monitoring
Zigbee XBee Series 2/3 10-100m Mesh networks
NFC/RFID PN532, RC522 <10cm Access control

1528.5 Power Components

1528.5.1 Voltage Regulators

Type Examples Efficiency Use Case
Linear LM7805, LD1117 30-80% Low noise, small drops
Buck LM2596 85-95% Step-down, battery
Boost MT3608 85-93% Step-up from battery

1528.5.2 Battery Management

  • Charging ICs: TP4056, MCP73831 - Li-ion/LiPo charging
  • Protection: BMS circuits - prevent over-discharge/charge
  • Monitoring: INA219 - current and voltage sensing

1528.5.3 Knowledge Check: Power Design

1528.5.4 Logic Level Conversion

3.3V to 5V Conversion: - Bi-directional level shifters: TXS0108E, BSS138-based modules - Voltage dividers: Resistive (5V to 3.3V only, not bidirectional) - MOSFET logic level shifters: Low-cost, reliable

WarningCritical: Never Connect 5V to 3.3V Directly

Connecting a 5V output directly to a 3.3V input can damage the 3.3V device. ESP32, Raspberry Pi, and most modern MCUs use 3.3V logic and can be damaged by 5V signals. Always use level shifters or voltage dividers.


1528.6 Prototyping Tools

1528.6.1 Essential Equipment

Tool Purpose Recommended
Soldering Iron Permanent connections Temperature-controlled, 60W+
Multimeter Measure V/I/R, continuity Auto-ranging, True RMS
Power Supply Provide power during testing Adjustable 0-30V, current limiting
Oscilloscope Visualize signals USB scope or benchtop 50MHz+
Logic Analyzer Debug digital protocols 8+ channels, I2C/SPI decode

1528.6.2 Additional Useful Tools

  • Wire strippers and cutters - prepare wires for connections
  • Helping hands - hold boards during soldering
  • Heat gun - SMD rework, heat shrink tubing
  • 3D printer - custom enclosures and mounts
  • ESD protection - anti-static mat and wrist strap

1528.6.3 PCB Prototyping Options

Method Cost Time Best For
Breadboard $5-15 Minutes Initial testing
Perfboard $1-3 Hours Semi-permanent
Fab service (JLCPCB) $2-10 1-2 weeks Production-intent
CNC mill $200+ Hours Rapid custom PCBs

1528.7 What’s Next

Continue to PCB Design and Fabrication to learn about designing and manufacturing custom printed circuit boards for production-ready prototypes.