Friday, March 24, 2023
HomePythonHeadless Interfacing with Raspberry Pi 3 over UART utilizing CP210x

Headless Interfacing with Raspberry Pi 3 over UART utilizing CP210x

Hello individuals! For those who learn the final article you may be conscious that I’m exploring raspberry pi proper now. I’ve Pi 3B+ and I’m utilizing it to work on some distant sensors. The most important difficulty I’ve with the Pi is that I don’t have an exterior monitor, mouse, and keyboard helpful to make use of with the Pi. I wished to have a headless interface with the Raspberry pi.

As I’m exploring electronics and sensors, I occur to have entry to a low-cost CP2102 USB 2.0 to TTL UART converter.


I made a decision to interface with my RPi over TTL UART. A lot of the tutorials on-line use ftdi so in the event you use CP2102 this is likely one of the few tutorials which give attention to it.

Step 1: Flashing recent Rasbpian

Flash a recent Raspbian picture on a micro-sd card utilizing Etcher.


Step 2: Updating Config

Edit config.txt file within the boot partition on the sd card. Add the next line on the finish of the file:


Step 3: Connecting CP2102

Wire up the Raspberry Pi and CP2102 collectively primarily based on the diagram beneath.

Plug within the CP2102 together with your laptop computer.

Step 4: Utilizing Display to interface with Pi

Work out which interface it’s essential connect with for interfacing with the mini-UART. You possibly can determine that out by typing this within the terminal on a mac:

$ ls /dev/tty.*

It’s good to search for one thing alongside the strains of /dev/tty.SLAB_USBtoUART. After figuring that out you need to use display to interface with the raspberry pi.

$ display /dev/tty.SLAB_USBtoUART 115200

The quantity on the finish (baud fee) is necessary as a result of each units have to be sending and receiving information on the identical fee for this work. Raspberry Pi sends and receives information at 115200 bps.

After opening up display the raspberry pi will ask you for person and cross. The default person/cross is pi/raspberry.

Observe: If you wish to allow SSH by default on the primary boot of Raspberry Pi, you need to create an empty ssh file within the boot listing whenever you flash a recent Raspbian picture. This file should have no extension. Comply with the Connecting Raspberry Pi to Eduroam Wifi article to robotically connect with the WiFi on boot.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments