LeLamp Troubleshooting Guide
This comprehensive guide covers common issues encountered during LeLamp assembly and operation, with detailed solutions and diagnostic procedures.Quick Diagnostic Checklist
Before diving into specific issues, run through this quick diagnostic checklist:Power and Connections
Power and Connections
- All power supplies connected and providing correct voltage (5V)
- USB communication cable securely connected
- All servo cables properly connected in daisy chain
- ReSpeaker Hat properly seated on Raspberry Pi
- No loose connections or damaged cables
System Status
System Status
- Raspberry Pi boots successfully (green LED activity)
- SSH connection works reliably
- LeLamp runtime software installed and accessible
- All system tests pass without errors
- No error messages in system logs
Component Function
Component Function
- Individual servo response test passes
- LED matrix displays colors and patterns
- Audio input/output functions correctly
- Camera captures images (if applicable)
- Network connectivity stable
Hardware Issues
Power and Electrical Problems
LeLamp Won't Power On
LeLamp Won't Power On
Symptoms: No LED indicators, no servo movement, Pi doesn’t bootDiagnostic Steps:
- Check power supply voltages with multimeter
- Verify power supply current capacity (minimum 2A each)
- Test power cables for continuity and proper connection
- Check fuses in power supplies (if applicable)
- Replace faulty power supplies with proper 5V 2A units
- Use shorter, higher-quality power cables
- Ensure power supplies can handle startup current surge
- Check wall outlet with known working device
Intermittent Power Issues
Intermittent Power Issues
Symptoms: Random shutdowns, servo stuttering, Pi reboots unexpectedlyDiagnostic Steps:
- Monitor voltage under load with multimeter
- Check for voltage drops during servo movement
- Inspect all connections for looseness or corrosion
- Test with different power supplies
- Upgrade to higher-capacity power supplies (3A recommended)
- Add bulk capacitors near servo driver for power smoothing
- Use thicker power cables to reduce voltage drop
- Separate power supplies for Pi and servos (recommended configuration)
Servo Driver Not Detected
Servo Driver Not Detected
Symptoms: Cannot find servo port, communication timeoutsDiagnostic Steps:Solutions:
- Try different USB cable (data cables, not just charging cables)
- Test different USB ports on Raspberry Pi
- Check servo driver power supply
- Verify servo driver firmware is compatible
- Restart both Pi and servo driver
Servo and Mechanical Issues
Servo Not Responding
Servo Not Responding
Symptoms: Individual servo doesn’t move or respond to commandsDiagnostic Steps:
- Test servo individually outside of daisy chain
- Check servo ID configuration matches expected value
- Verify servo cable integrity and connections
- Test with known working servo in same position
- Reconfigure servo ID using setup script
- Replace damaged servo cables
- Reset servo to factory defaults and reconfigure
- Replace faulty servo if hardware failure confirmed
Mechanical Binding or Stiffness
Mechanical Binding or Stiffness
Symptoms: Servo struggles to move, unusual noises, jerky movementDiagnostic Steps:
- Manually test joint movement with power off
- Check for interference between moving parts
- Inspect servo horn alignment and mounting
- Verify proper assembly against 3D model reference
- Realign servo horns to proper zero position
- Check for over-tightened screws causing binding
- Verify 3D printed parts are properly post-processed
- Lubricate mechanical joints if appropriate
- Check for debris or foreign objects in mechanism
Servo Position Inaccuracy
Servo Position Inaccuracy
Symptoms: Servo doesn’t reach commanded position, drift over timeDiagnostic Steps:
- Run calibration verification test
- Check servo feedback accuracy
- Monitor position over time for drift
- Test under different loads
- Recalibrate servo using calibration script
- Check for mechanical backlash in servo gears
- Verify servo is not overloaded beyond specifications
- Update servo firmware if available
- Replace servo if internal feedback system is faulty
LED and Visual Issues
LED Matrix Not Working
LED Matrix Not Working
Symptoms: No LED illumination, partial lighting, wrong colorsDiagnostic Steps:
- Check power connections to LED matrix (5V, GND)
- Verify data signal connection (GPIO18 by default)
- Test with simple LED pattern
- Check LED count configuration in software
- Verify correct wiring: 5V (red), GND (black), Data (signal)
- Check solder joints on LED matrix connections
- Adjust LED count in configuration file:
- Test with known working LED strip
WS2812B LEDs are sensitive to voltage levels. Ensure clean 5V power supply and proper signal levels.
Inconsistent LED Colors
Inconsistent LED Colors
Symptoms: Colors don’t match commands, flickering, random patternsDiagnostic Steps:
- Check power supply stability under LED load
- Verify signal wire integrity and shielding
- Test with reduced LED count to isolate issues
- Monitor for electromagnetic interference
- Add capacitors across LED power supply for stability
- Use shielded cable for data signal
- Keep LED data wires away from servo power cables
- Reduce LED brightness if power supply is marginal
- Add level shifter for data signal if needed (3.3V to 5V)
Software and Configuration Issues
Raspberry Pi and System Issues
Cannot SSH into Pi
Cannot SSH into Pi
Symptoms: Connection refused, host not found, timeout errorsDiagnostic Steps:
- Check Pi power and boot status (LED indicators)
- Verify network connectivity (Pi and computer on same network)
- Test with IP address instead of hostname
- Check SSH service status if you have physical access
- Verify SSH was enabled during OS setup
- Check firewall settings on computer and network
- Try connecting via Ethernet cable for troubleshooting
- Re-flash SD card with SSH explicitly enabled
- Use network scanner to find Pi’s IP address:
nmap -sn 192.168.1.0/24
- Network Troubleshooting
- Alternative Access Methods
Runtime Installation Fails
Runtime Installation Fails
Symptoms: Package installation errors, dependency conflicts, build failuresDiagnostic Steps:
- Check internet connectivity on Pi
- Verify sufficient disk space on SD card
- Update system packages before runtime installation
- Check for specific error messages in installation log
- Update system packages:
sudo apt update && sudo apt upgrade - Free up disk space by removing unnecessary packages
- Install missing system dependencies manually
- Use larger SD card (32GB+ recommended)
- Clear package cache:
sudo apt clean
Permission Errors
Permission Errors
Symptoms: “Permission denied” errors, cannot access hardwareDiagnostic Steps:
- Check user group memberships
- Verify file permissions on device files
- Test with sudo to isolate permission issues
- Check udev rules for hardware devices
- Add user to required groups:
- Set proper permissions on device files
- Use sudo for hardware-related commands (LED control, servo access)
- Restart session after group changes:
logoutthen reconnect - Check device file permissions:
ls -l /dev/ttyACM0
Audio System Issues
ReSpeaker Hat Not Detected
ReSpeaker Hat Not Detected
Symptoms: Audio device not found, ALSA errors, no sound input/outputDiagnostic Steps:
- Check physical connection of ReSpeaker Hat
- Verify device tree overlay installation
- List available audio devices
- Check system logs for hardware detection errors
- Reinstall ReSpeaker device tree overlay:
- Verify overlay is loaded at boot in
/boot/firmware/config.txt - Check GPIO header connection between Pi and ReSpeaker
- Reboot Pi after configuration changes
- Test with different Pi if hardware failure suspected
Audio Quality Issues
Audio Quality Issues
Symptoms: Distorted audio, low volume, crackling sounds, no microphone inputDiagnostic Steps:
- Check audio levels in alsamixer
- Test with different sample rates
- Verify speaker connections and polarity
- Monitor system resources during audio processing
- Adjust audio levels in alsamixer:
- Check speaker wiring polarity (+ and -)
- Reduce audio processing load on system
- Use higher quality audio cables
- Test with external USB audio device for comparison
Network and Connectivity Issues
WiFi Connection Problems
Pi Cannot Connect to WiFi
Pi Cannot Connect to WiFi
Symptoms: No network connectivity, WiFi adapter not found, connection timeoutsDiagnostic Steps:
- Check WiFi adapter status:
iwconfig - Scan for available networks:
sudo iwlist wlan0 scan | grep ESSID - Verify network credentials in configuration
- Check network compatibility (2.4GHz vs 5GHz)
- Use 2.4GHz network (better Pi compatibility)
- Update WiFi configuration in
/etc/wpa_supplicant/wpa_supplicant.conf - Restart networking services:
sudo systemctl restart networking - Check for interference from other devices
- Try connecting to mobile hotspot for testing
Changing WiFi Networks
Changing WiFi Networks
Symptoms: Need to connect to different WiFi network, moved locationsMethod 1: Ethernet ConnectionMethod 2: Hotspot with Same Credentials
- Create mobile hotspot with exact same SSID and password as old network
- Pi will automatically connect to matching credentials
- SSH in and update configuration for new permanent network
- Remove SD card and insert into computer
- Edit
wpa_supplicant.confin boot partition: - Safely eject and reinsert into Pi
Performance and Optimization Issues
System Performance Problems
Slow or Laggy Response
Slow or Laggy Response
Symptoms: Delayed servo response, choppy movement, system freezesDiagnostic Steps:
- Monitor system resources:
htop - Check system temperature:
vcgencmd measure_temp - Review system logs:
sudo journalctl -f - Test with reduced functionality to isolate issues
- Reduce servo update rate if too aggressive
- Optimize Python code for better performance
- Increase GPU memory split:
sudo raspi-config→ Advanced → Memory Split → 16 - Disable unnecessary services:
sudo systemctl disable bluetooth - Use faster SD card (Class 10 or better)
- Add heatsink or fan if temperature > 70°C
Memory or Storage Issues
Memory or Storage Issues
Symptoms: Out of memory errors, disk full warnings, swap usage highDiagnostic Steps:Solutions:
- Clean package cache:
sudo apt clean - Remove old log files:
sudo journalctl --vacuum-time=7d - Use larger SD card (32GB+ recommended)
- Move recordings to external storage
- Increase swap file size if needed
- Monitor and clean temporary files regularly
Diagnostic Tools and Commands
System Health Monitoring
Hardware Status Commands
Hardware Status Commands
Network Diagnostics
Network Diagnostics
LeLamp Specific Tests
LeLamp Specific Tests
Getting Help and Support
Before Asking for Help
Document the Problem
Prepare a clear problem description:
- What were you trying to do?
- What happened instead?
- What error messages appeared?
- When did the problem start?
- What changes were made recently?
Support Resources
GitHub Issues
Report bugs, search existing issues, and request new features
Discord Community
Real-time help from community members and developers
Runtime Repository
Software-specific issues and runtime problems
Documentation
Complete build and operation guides with troubleshooting
Information to Include in Support Requests
System Information
System Information
- Raspberry Pi model and revision
- SD card size and type
- Operating system version
- LeLamp runtime version
- Hardware configuration details
Problem Details
Problem Details
- Clear description of the issue
- Steps to reproduce the problem
- Complete error messages (text, not screenshots)
- When the problem started occurring
- Any recent changes or updates
Diagnostic Data
Diagnostic Data
- Output of diagnostic commands
- System logs related to the issue
- Photos of hardware setup (for hardware issues)
- Configuration files (with sensitive data removed)
- Test results from troubleshooting steps
Component Testing Order
When diagnosing complex issues, test components in this systematic order:Power and Basic Systems
- Power supply voltages and current capacity
- Raspberry Pi boot and SSH connectivity
- Basic system functions (file system, network)
Individual Components
- Individual servos (one at a time, outside daisy chain)
- LED matrix (power, data signal, color accuracy)
- Audio system (input, output, ReSpeaker Hat)
- Camera (if applicable)
Previous: Lamp Control