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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
Inconsistent LED Colors
Inconsistent LED Colors
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
Gather Diagnostic Information
Document the Problem
- What were you trying to do?
- What happened instead?
- What error messages appeared?
- When did the problem start?
- What changes were made recently?
Try Basic Troubleshooting
- Restart the system:
sudo reboot - Check all physical connections
- Verify power supplies are working
- Test with minimal configuration
- Review recent changes or updates
Support Resources
GitHub Issues
Discord Community
Runtime Repository
Documentation
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)
Integrated Systems
- Servo daisy chain communication
- Coordinated movement patterns
- Audio-visual coordination
- Complete system integration
Previous: Lamp Control