LeLamp Control and Operation
⏱️ Estimated time: 30 minutes
🔧 Required tools: Computer with SSH access to LeLamp
📦 Required: Fully assembled and configured LeLamp with working software
🔧 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
SSH into your LeLamp and navigate to the runtime directory:
Verify you’re in the correct directory by checking for LeLamp Python modules:
ls lelamp/Calibration Process
Calibration is essential for accurate movement and prevents damage to servos and mechanical components.Understand Calibration Requirements
LeLamp calibration involves two phases:
- Follower Calibration
- Leader Calibration
Purpose: Teaches LeLamp to follow external movements
- Records servo positions during manual manipulation
- Establishes range limits and safe operating zones
- Maps physical positions to servo commands
Prepare LeLamp for Calibration
Position LeLamp in its zero/home position before starting calibration:

Zero Position Reference
Zero Position Reference
The zero position can be viewed in the 3D model.Key characteristics:
- 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
Execute the calibration process:The script will guide you through:
- 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
The calibration script provides step-by-step instructions:
- 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
Capture expressive movements for later playback:Example recording session:
Recording Best Practices
Recording Best Practices
Movement Guidelines:
- 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
Play back previously recorded movements:Example playback:
- Playback Options
- Playback Monitoring
Basic playback: Plays movement once at recorded speedAdvanced options (check runtime documentation):
- Speed adjustment (faster/slower playback)
- Loop playback (repeat continuously)
- Blend between movements
- Interrupt and resume capabilities
Advanced Control Features
Real-Time Control
Direct Servo Control
Direct Servo Control
Control individual servos in real-time:Position values typically range from 0-1023 (depending on servo model and configuration).
Coordinated Movement
Coordinated Movement
Execute complex coordinated movements:
Sensor Integration
Sensor Integration
Use sensor data to drive movements:
LED and Audio Control
System Testing and Validation
Comprehensive System Test
Perform complete system integration testing:Expected results:
- All servos respond correctly to commands
- LED matrix displays various colors and patterns
- Audio input/output functions properly
- No error messages or system warnings
Operational Best Practices
Daily Operation
Startup Sequence
Startup Sequence
Recommended startup procedure:
- 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
Proper shutdown procedure:
- 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
Regular maintenance tasks:
- 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
5 degrees of freedom enable natural, lifelike gestures and emotional expressions
Visual Interaction
Camera integration allows environmental awareness and user interaction
Audio Communication
Bidirectional audio enables voice interaction and sound-reactive behaviors
Programmable Expressions
LED matrix provides visual feedback and emotional expression capabilities
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
LeLamp Control Complete! Your robot is ready for creative expression and interaction.
Previous: Raspberry Pi Setup | Troubleshooting: Common Issues