Hardware Modifications¶
This guide covers the physical modifications required to install a Luckfox Lyra (or similar SBC) into your PicoCalc.
Prerequisites¶
Tools Required¶
- The allen wrench that came with the picocalc
- Good lighting and magnification (optional)
- A soft cloth to work or pad on
Parts Needed¶
- Luckfox Lyra SBC (see compatible versions)
- MicroSD card (8GB minimum, 64GB+ recommended)
Disassembly¶
Step 1: Power Off and Disconnect¶
- Power off the PicoCalc completely
- remove the batteries
Step 2: Open the Case¶
- Remove all screws, open the case.
- disconnect the LCD
Step 3: Remove Original Board¶
- Locate the existing RP2040/Pico board
- Unplug the RP2040 from its socket.
Installation¶
Step 4: Prepare Luckfox Lyra¶
Before installation:
- Erase SPI NAND (if your board has it) - see SPI NAND Erasing
- Flash Calculinux to your microSD card - see Installation Guide
- Insert the prepared microSD card into the Luckfox Lyra
Step 5: Install Luckfox Lyra¶
- Position the Luckfox Lyra in the same orientation as the original RP2030
- Gently but firmly press the Lyra in to the socket
Step 6: Reassembly¶
- Take care to ensure the board is properly aligned with all screw holes
- Ensure the kayboard rubber is in place
- Ensure the display is properly aligned with the case
- Align the case halves
- Replace all screws
- Verify nothing is binding or misaligned
Risk to your Display!
If the display is misaligned when installed, it can crack when you tighten the screws. make sure it is perfectly aligned with the front case!
Keeping the screen aligned
You may want to tape the screen in place using kapton tape or similar. this will prevent it from moving around as you open and close the picocalc in the future.
Erasing SPI NAND¶
If your Luckfox Lyra has SPI NAND flash, you must erase it for the board to boot from SD card.
Method 1: Using Luckfox Tools¶
- Download Luckfox SDK and tools from GitHub
- Connect Luckfox Lyra via USB while holding boot button
- Use
upgrade_toolto erase NAND: - Wait for confirmation message
- Disconnect and reconnect power
Method 2: Using U-Boot¶
If you can boot to U-Boot prompt:
Method 3: From Running System¶
If you have a working Linux system on the board:
One-Time Operation
You only need to erase the NAND once. After erasing, the board will always boot from SD card (unless you reprogram the NAND).
Pin Mapping¶
TODO: insert information about pin mapping
GPIO Voltage Levels
- RMIO pins: 3.3V operation
- GPIO4_B3/GPIO4_B2: 1.8V operation (not RMIO-capable)
- Always verify voltage levels before hardware modifications
Hardware PWM Limitation
Some GPIO pins (like GPIO4_B3 and GPIO4_B2) cannot output hardware PWM as they are not RMIO-capable. For audio modifications, use RMIO pins that support hardware PWM. A future page needs to be written detailing this.
Power¶
- 5V In: From USB-C connector via PicoCalc board (to charge the batteries)
- 3.3V Regulation: On Luckfox Lyra board
- Current Draw: TODO
Verification¶
After installation:
- Visual Check: Ensure board is seated properly
- Power On: Connect USB-C power
- Boot Check: Look for display activity
- LED Indicators: Observe any status LEDs on Luckfox board
If the system doesn't boot, see Boot Problems.
Common Issues¶
Board Won't Boot¶
- SPI NAND not erased: Most common issue with NAND versions
- SD card not flashed correctly: Verify image integrity
- Power insufficient: Try different USB cable/adapter or replace the batteries
Display Not Working¶
- Driver not loaded: Check kernel logs via the serial terminal on the picocalc USB-C connector
- Connection issue: Reseat display cable
- Wrong device tree: Verify correct DTB is loaded
Keyboard Not Responsive¶
- Driver not loaded: Check kernel logs
- GPIO mapping wrong: Verify device tree configuration
Safety Considerations¶
Electrical Safety¶
- Work on ESD-safe surface
- Avoid static discharge to components
- Never work on powered device
- Check for shorts before powering on
Mechanical Safety¶
- Don't force connectors
- Handle PCBs by edges
- Watch for sharp edges
Reverting to Original¶
To restore the original RP2040 board:
- Follow disassembly steps above
- Remove Luckfox Lyra
- Reinstall original board in reverse order
- Reflash original firmware if needed
Keep Original Board
Store the original RP2040 board safely in case you want to revert or use it elsewhere.
Advanced Modifications¶
Optional Enhancements¶
(TODO: add articles detailing these modifications)
- Hardware PWM Mod
- Add a WiFi Module
- Flash customized firmware to the STM32 southbridge chip
Future Compatibility¶
The modification process should be similar for other SBCs:
- Milk-V Duo (future support)
- Custom carrier boards
Resources¶
- Video Guide: YouTube - Luckfox Lyra on PicoCalc
- Forum Discussion: ClockworkPi Forum Thread
- Image Files: Check forum thread for community-shared modifications
Next Steps¶
After successful installation:
- Follow First Boot guide
- Configure system per Configuration Guide
- Explore User Guide