Troubleshooting¶
Things not working? This guide covers common problems and how to fix them. For installation-specific issues, see the Installation Troubleshooting page.
Camera Issues
Cameras Not Detected¶
First, verify the Pi actually sees the cameras:
You should see your cameras listed. If not:
- Check physical connections (ribbon cables fully seated, correct orientation)
- Make sure cameras are powered
- Check
/boot/firmware/config.txtforcamera_auto_detect=1 - Reboot if you just connected cameras
Wrong Camera Type Selected¶
If cameras are detected but PiTrac can't use them:
- Open Configuration in web UI
- Check Camera 1 Type and Camera 2 Type
- Try "Auto Detect" first
- If that fails, manually select your camera model
- Save changes
- Stop and restart PiTrac LM
Camera Gain/Brightness Issues¶
Images too dark or too bright?
Too Dark:
- Increase camera gain (Configuration > Cameras > kCamera1Gain/kCamera2Gain)
- Try values between 8--12
- Add more lighting if possible (better than high gain)
Too Bright/Washed Out:
- Decrease camera gain
- Try values between 3--6
- Reduce strobe intensity if you have control over that
Noisy/Grainy:
- Lower the gain
- Improve lighting instead
- Higher gain = more noise
One Camera Works, Other Doesn't¶
Check:
- Is Camera 2 actually connected?
- Did you calibrate Camera 2? (takes longer, ~2 minutes)
- Are camera types set correctly for BOTH cameras?
- Check logs for Camera 2 specific errors
Some setups work fine with just Camera 1. You might not need Camera 2 depending on your goals.
Ball Detection Problems
Ball Not Detected¶
The most common problem. Here's the checklist:
Lighting:
- Ball needs good contrast with background
- Too dark = no detection
- Too bright = washed out, no detection
- Strobes working?
Camera Position:
- Is ball actually in the camera's field of view?
- Use Testing Tools > Capture Still Image to check
- Should see ball clearly in the center-ish area
Search Center:
- Configuration > Ball Detection > kSearchCenterX/Y
- These tell PiTrac where to look
- Capture a still image, note ball position (pixel coordinates)
- Set search center to those coordinates
Ball Type:
- White golf balls work best
- Colored/patterned balls can confuse detection
- Old scuffed balls might not work well
Ball Detected But Wrong Objects Too¶
PiTrac picking up random circular things as balls?
Adjust the search area to narrow where it looks:
- Make kSearchCenterX/Y more precise
- Remove other circular objects from camera view
- Adjust detection thresholds (advanced -- ask on Discord first)
Ball Detection Slow¶
If it takes a long time to recognize ball placement:
- Search center might be way off
- Too many candidate objects in view
- Camera gain too low (image too dark)
- Adjust kSearchCenterX/Y to be more precise
Calibration Failures
Ball Not Found During Calibration¶
See "Ball Not Detected" above. Calibration needs to see the ball clearly before it can calibrate.
Quick fixes:
- Better lighting
- Adjust camera gain
- Check ball is in frame (use Testing > Capture Still Image)
- Make sure ball is on the tee and stationary
Calibration Times Out¶
Camera 1: Should take ~30 seconds. If it times out:
- Ball moved during calibration
- Camera type wrong
- Check logs for errors
Camera 2: Takes 90--120 seconds. This is normal. Be patient.
If Camera 2 consistently times out past 2 minutes:
- System overloaded? (check CPU usage)
- Some setups don't need Camera 2
Calibration Completes But Results Wrong¶
Numbers look weird (focal length way off, strange angles)?
Could be:
- Ball moved during calibration
- Camera moved during calibration
- Wrong camera type selected
- Wrong lens type selected
Fix the issue and recalibrate. Don't try to manually adjust the calibration values -- it won't work.
Shot Reading Issues
Speed Way Off¶
Shots reading 300 mph? Or 5 mph? Calibration problem or camera setup issue.
Check:
- Did you calibrate both cameras? (if you're using both)
- Camera types correct?
- Cameras moved since calibration?
- Ball detection working properly?
Sometimes you need to apply speed adjustments:
- Configuration > Ball Detection > kSpeedAdjustments
- Hit shots with a known launch monitor
- Calculate the adjustment percentage needed
- Apply it
Launch Angle Wrong¶
Usually a calibration issue. Recalibrate if:
- Cameras moved
- Setup changed
- Angles are consistently off (not just one weird shot)
Spin Detection Not Working¶
Spin is the hardest thing to measure accurately. Could be:
- Not enough ball images captured (strobes not bright enough?)
- Ball moving too fast
- Camera settings need tuning
This is advanced stuff -- hit up Discord with your specific setup details.
Some Shots Not Registered¶
Ball goes flying but PiTrac doesn't record it:
- Ball moving out of search area too quickly
- Detection sensitivity too low
- Strobes not firing properly
- Check logs for that shot -- usually shows what happened
Performance Problems
Web Interface Slow/Unresponsive¶
Check if the web service is running:
Restart if needed:
Dashboard Not Updating¶
WebSocket connection might be dead.
Refresh the page. If that doesn't work:
Pi Running Hot/Slow¶
Check CPU temperature:
Over 80 degrees C? You need better cooling.
PiTrac does a lot of image processing. Make sure:
- Pi has a good, ACTIVE heatsink
- Not running in a hot enclosed space
Shots Taking Forever to Process¶
Could be:
- Pi overloaded with other processes
- Check
topto see what's using CPU - Ball detection parameters set too loose (checking too many candidate objects)
Service Issues
pitrac-web.service Won't Start¶
The web interface service.
Common issues:
- Port 8080 already in use
- Python dependencies missing
Check dependencies:
Network/Connectivity Issues
Can't Access Web Interface¶
Try:
http://{PI-IP}:8080from another devicehttp://localhost:8080on the Pi itself
If localhost works but remote doesn't:
- Check Pi's IP address with
hostname -I - Firewall blocking port 8080?
- Both devices on same network?
If nothing works:
Make sure service is actually running.
Simulator Not Receiving Shots¶
See the Simulator Integration guide for detailed troubleshooting.
Quick checks:
- Simulator PC IP address correct?
- Ports correct? (2483 for E6, 921 for GSPro)
- Firewall not blocking?
- Network connection stable?
Common "Gotchas"¶
Things that trip people up:
Calibration Data Persistence:
- Calibration data is stored separately from configuration
- Resetting config to defaults doesn't wipe calibration
- Good: You won't lose calibration accidentally
- Bad: Old calibration data persists even after fresh install
- Solution: Recalibrate if your setup changed
Camera 2 Takes Forever:
- Yes, 2 minutes is normal
- Background process overhead
- Not a bug, just how it works
- Be patient
Services vs Manual Start:
- The web server (
pitrac-web.service) is the only systemd service - The launch monitor is controlled through the web dashboard Start/Stop buttons
- If in doubt: stop via web dashboard, then
sudo systemctl restart pitrac-web
Left-Handed Mode:
- Marked experimental for a reason
- Might need tweaking
- Spin calculations are tricky
- Ask on Discord for help if needed
Still Stuck?¶
If none of this helps, head to Discord. Bring:
- Description of the problem
- What you've tried
- Log output (check the web dashboard Logging section or
journalctl -u pitrac-web) - System info (Pi model, camera types, etc.)
- Screenshots if relevant
We'll figure it out. The PiTrac community is pretty helpful.