LeLamp Control and Operation
🔧 Required tools: Computer with SSH access to LeLamp
📦 Required: Fully assembled and configured LeLamp with working software
Overview
LeLamp control involves several key operations:- Calibration: Setting up servo ranges and zero positions
- Movement Recording: Capturing expressive gestures and behaviors
- Movement Playback: Replaying recorded movements with precision
- Real-time Control: Direct manipulation and interaction
- System Monitoring: Performance tracking and maintenance
Initial Setup and Connection
Connect to Your LeLamp
ls lelamp/Verify System Status
your_lamp_name with the identifier you set during servo setup, and adjust the port as needed.Calibration Process
Calibration is essential for accurate movement and prevents damage to servos and mechanical components.Understand Calibration Requirements
- Follower Calibration
- Leader Calibration
- Records servo positions during manual manipulation
- Establishes range limits and safe operating zones
- Maps physical positions to servo commands
Prepare LeLamp for Calibration
Zero Position Reference
Zero Position Reference
- Base yaw centered (facing forward)
- Base pitch vertical (upright posture)
- Elbow pitch at mid-range
- Wrist roll centered
- Wrist pitch horizontal (head level)
Safety Considerations
Safety Considerations
- Ensure adequate clearance around LeLamp
- Remove any obstacles from movement path
- Have emergency power disconnect readily available
- Work in well-lit area for clear visibility

Run Calibration Script
- Initial position setup - Place LeLamp in zero position
- Range mapping - Move each joint through full range
- Limit detection - Identify safe operating boundaries
- Verification - Test calibrated movements
Follow Interactive Calibration
- Position Setup
- Range Mapping
- Verification
- Place LeLamp in zero position as prompted
- Verify all joints are centered and aligned
- Confirm no mechanical binding or interference
- Press Enter to continue when positioned correctly
Movement Recording and Playback
Record Custom Movements
Recording Best Practices
Recording Best Practices
- Start and end in neutral/stable positions
- Move slowly and deliberately for smooth playback
- Avoid rapid or jerky movements
- Consider the emotional expression you want to convey
- Recording captures position data at regular intervals
- Smoother movements result in better playback quality
- Complex movements may require multiple shorter recordings
Recording Process
Recording Process
- Position LeLamp in starting pose
- Start recording with the command above
- Manually guide LeLamp through desired movement
- Create expressive gestures as needed
- End in stable position
- Stop recording with
Ctrl+C - Save recording when prompted
Replay Recorded Movements
- Playback Options
- Playback Monitoring
- Speed adjustment (faster/slower playback)
- Loop playback (repeat continuously)
- Blend between movements
- Interrupt and resume capabilities
Manage Movement Library
- All available recorded movements
- Recording duration and file size
- Creation date and metadata
- Playback compatibility information
Advanced Control Features
Real-Time Control
Direct Servo Control
Direct Servo Control
Coordinated Movement
Coordinated Movement
Sensor Integration
Sensor Integration
LED and Audio Control
LED Matrix Programming
Audio Integration
System Testing and Validation
Comprehensive System Test
- All servos respond correctly to commands
- LED matrix displays various colors and patterns
- Audio input/output functions properly
- No error messages or system warnings
Performance Validation
- CPU usage < 60% during complex movements
- System temperature < 70°C
- Servo response time < 50ms
- No communication timeouts or errors
Operational Best Practices
Daily Operation
Startup Sequence
Startup Sequence
- Power on servo driver first
- Power on Raspberry Pi
- Wait for system boot (2-3 minutes)
- Verify SSH connectivity
- Run system health check
- Begin normal operations
Shutdown Sequence
Shutdown Sequence
- Stop all active movements and recordings
- Return LeLamp to neutral position
- Shut down Raspberry Pi:
sudo shutdown -h now - Wait for Pi to fully power down (LED stops blinking)
- Disconnect servo driver power
- Disconnect Pi power supply
Maintenance Schedule
Maintenance Schedule
- Daily: Visual inspection, basic function test
- Weekly: Clean dust from components, check connections
- Monthly: Update software, backup recordings, performance review
- Quarterly: Deep cleaning, mechanical inspection, calibration verification
Safety Guidelines
- Never force mechanical movement - stop immediately if resistance is felt
- Monitor system temperature during extended operation
- Keep emergency power disconnect easily accessible
- Avoid rapid or violent movements that could damage components
- Maintain clear workspace around LeLamp’s movement range
- Regular backup of important recordings and configurations
Success Criteria and Validation
After completing LeLamp control setup, verify the following capabilities:Basic Operation
Basic Operation
- Successful calibration of all 5 servo motors
- Smooth movement through full range of motion
- Accurate position control and feedback
- No mechanical binding or unusual noises
- Stable communication with servo driver
Movement Capabilities
Movement Capabilities
- Record custom movements successfully
- Play back movements with accuracy
- Create and manage movement library
- Coordinate multiple servos smoothly
- Express emotions through movement
System Integration
System Integration
- LED matrix responds to commands
- Audio input/output functions correctly
- Camera integration (if applicable)
- Network connectivity stable
- System performance within acceptable ranges
Advanced Features
Advanced Features
- Real-time servo control
- Sensor-driven movements
- Audio-visual coordination
- Automated behavior sequences
- Remote control capabilities
Congratulations! 🎉
You have successfully built and configured your LeLamp! Your expressive robot lamp is now capable of:Expressive Movement
Visual Interaction
Audio Communication
Programmable Expressions
Next Steps and Community
Explore Advanced Features
- Runtime Documentation: Explore advanced features in the LeLamp Runtime repository
- Custom Programming: Develop your own behaviors and interactions
- Integration Projects: Connect LeLamp to smart home systems or AI assistants
Join the Community
- Share Your Build: Post photos and videos on Discord
- Contribute: Help improve documentation or share custom movements
- Support Others: Answer questions and help new builders
Report and Improve
- Bug Reports: Use GitHub Issues for problems
- Feature Requests: Suggest improvements and new capabilities
- Documentation: Help improve these guides based on your experience
Previous: Raspberry Pi Setup | Troubleshooting: Common Issues