Introduction to Raspberry Pi
Troubleshooting Raspberry Pi Wi-Fi Connection Issues
I ran into some issues while trying to connect my main desktop to the Raspberry Pi. My PC could not detect the Raspberry Pi, even though online sources stated that the Raspberry Pi 5 has built-in Wi-Fi.
First, I thought the SD card might be faulty, but this hypothesis was quickly ruled out. If the SD card itself had been faulty, my PC would not have recognized it properly when I tried to write the OS image to it.
Second, I thought I might have made a mistake while installing the OS, but I could not find any major issues even after checking the Raspberry Pi Imager settings several times.
Third, I found that even though the Raspberry Pi 5 has built-in Wi-Fi, there are cases where it does not connect properly at first and may need to be connected via Ethernet. However, even after connecting it to the router with an Ethernet cable, the issue was not resolved. Since I had no screen connected to the Raspberry Pi, I could not even confirm whether the wired connection was working properly.
Finally, I had no choice but to order a micro-HDMI cable and connect the Raspberry Pi to the monitor I normally used with my main desktop in order to identify the cause of the problem. It turned out that the Raspberry Pi was not detecting the SD card properly. However, since I had already ruled out the possibility of a faulty SD card in my first hypothesis, I suspected that the problem might be with the board itself.
After I inserted the SD card into the card reader and then plugged the reader into a USB port, the SD card was finally recognized properly. I could not tell whether the SD card slot had been damaged during shipping or whether I had handled the board too roughly, but the slot itself turned out to be faulty.
The Raspberry Pi screen I checked through TigerVNC is shown above.
Transferring and Running the Code on Raspberry Pi
Next, I moved the lane detection code from my main desktop to the Raspberry Pi and ran it. At first, I was confused because the code that ran perfectly on my desktop would not run on the Raspberry Pi, even after I installed the required libraries. Since the issue seemed to be caused by a version difference in the library, I modified some parts of the code with the help of ChatGPT, and it ran properly on the Raspberry Pi.
Identifying the Camera Cable Compatibility Issue
Next, I tried to connect the camera to the Raspberry Pi to check whether it worked properly. However, I couldn’t connect it because the cable was wider than the port. I later found out that the cable included with the camera was a 15-pin to 15-pin cable, while the Raspberry Pi 5 requires a 15-pin to 22-pin cable.
Later, I replaced the original cable with the one I ordered and confirmed that the camera was working properly. However, the screen response was slow because I was accessing the Raspberry Pi remotely over Wi-Fi. This made me realize that I needed a dedicated monitor for the Raspberry Pi, separate from my main desktop’s monitor.
I have encountered similar issues several times before, but I still make the same mistake of ordering components without checking their compatibility. As a result, I waste time and money unnecessarily. This issue is also one of the problems I need to resolve as I continue working on the project.
Leave a comment