# Raspberry Pi Gabay sa Pag-aayos ng Problema Ang gabay na ito ay nagbibigay ng mga solusyon sa mga karaniwang isyu na nararanasan habang nagpapatakbo ng mga proyekto sa IoT sa mga Raspberry Pi na aparato. Ito ay idinisenyo para sa mga nagsisimula na sumusunod sa IoT-For-Beginners na kurikulum, ngunit kapaki-pakinabang din para sa pangkalahatang pag-develop ng Pi. --- ## 1. Mga Error sa Pag-install at Dependency ### ❗ `ModuleNotFoundError: No module named 'xyz'` Nangyayari ito kapag hindi naka-install ang kinakailangang mga Python module. **Ayusin** ```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 --- **Paunawa**: Ang dokumentong ito ay isinalin gamit ang AI translation service na [Co-op Translator](https://github.com/Azure/co-op-translator). Bagamat aming pinagsisikapang maging tumpak, mangyaring tandaan na ang mga awtomatikong salin ay maaaring maglaman ng mga pagkakamali o hindi pagkakatumpak. Ang orihinal na dokumento sa orihinal nitong wika ang dapat ituring na opisyal na sanggunian. Para sa mga mahahalagang impormasyon, inirerekomenda ang propesyonal na pagsasaling-tao. Hindi kami mananagot sa anumang hindi pagkakaunawaan o maling interpretasyon na maaaring magmula sa paggamit ng pagsasaling ito.