Pan Tilt Hat not working on Raspberry Pi 5

You can close this issue. The problem was caused by the fact that the hat was not fully engaged in the PI GPIO connector. See this thread: OS error :Failed to write byte

thanks