# Raspberry Pi 문제 해결 가이드 이 가이드는 Raspberry Pi 장치에서 IoT 프로젝트를 실행할 때 자주 발생하는 문제에 대한 해결책을 제공합니다. IoT-For-Beginners 커리큘럼을 따르는 초보자를 대상으로 하지만 일반적인 Pi 개발에도 유용합니다. --- ## 1. 설치 및 의존성 오류 ### ❗ `ModuleNotFoundError: No module named 'xyz'` 필요한 Python 모듈이 설치되지 않았을 때 발생합니다. **해결 방법** ```bash pip3 install Permission denied when running scripts Often caused by accessing GPIO, I2C or system hardware without elevated privileges. Quick fix: sudo python3 script.py Recommended fix (no sudo needed every time): sudo usermod -aG gpio,i2c,spi $USER sudo reboot 2. GPIO / I2C / SPI Not Working ❗ RuntimeError: No access to GPIO Add user to GPIO group: sudo usermod -aG gpio $USER sudo reboot ❗ I2C / SPI devices not detected Enable interfaces: sudo raspi-config → Interface Options → Enable I2C / Enable SPI Check if I2C device appears: i2cdetect -y 1 3. Camera / Video Issues ❗ Camera not detected or fails to start Enable camera interface: sudo raspi-config → Interface Options → Camera → Enable sudo reboot Check if camera is visible: vcgencmd get_camera 4. Wi-Fi / SSH / Connectivity Problems | Problem | Fix | | -------------------------------- | --------------------------------------------- | | SSH connection refused | `sudo raspi-config → Interface Options → SSH` | | Device not showing on network | Check IP using: `hostname -I` | | Slow Wi-Fi / unstable connection | Prefer 2.4 GHz band, update OS | | Unable to access Pi headless | Add `ssh` file to boot partition | 5. Performance Issues Raspberry Pi running slow / laggy Close unused applications Reduce background services Use Lite OS if no desktop needed Ensure sufficient power supply (5V/3A or better) Check CPU load: top htop Storage issues: sudo apt autoremove sudo apt clean df -h --- **면책 조항**: 이 문서는 AI 번역 서비스 [Co-op Translator](https://github.com/Azure/co-op-translator)를 사용하여 번역되었습니다. 정확성을 위해 최선을 다하고 있으나, 자동 번역에는 오류나 부정확한 부분이 있을 수 있음을 유의해 주시기 바랍니다. 원본 문서가 권위 있는 출처로 간주되어야 합니다. 중요한 정보의 경우 전문적인 인간 번역을 권장합니다. 본 번역 사용으로 인한 오해나 잘못된 해석에 대해 당사는 책임을 지지 않습니다.