Headless Interfacing with Raspberry Pi 3 over UART using CP210x
Hi people! If you read the last article you might be aware that I am exploring raspberry pi right now. I have Pi 3B+ and I am using it to work on some remote sensors. The biggest issue I have with the Pi is that I don’t have an external monitor, mouse, and keyboard handy to use with the Pi. I wanted to have a headless interface with the Raspberry pi. As I am exploring electronics and sensors, I happen to have access to a low-cost CP2102 USB 2.0 to TTL UART converter. I decided to interface with my RPi over TTL UART. Most of the tutorials online use ftdi so if you use CP2102 this is one of the few tutorials which focus on it. Step 1: Flashing fresh Rasbpian Flash a fresh Raspbian image on a micro-sd card using Etcher. Step 2: Updating Config Edit config.txt file in the boot partition on the sd card. Add the following line at the end of the file: enable_uart=1 Step 3: Connecting CP2102 Wire up the Raspberry Pi and CP2102 together based on the diagram below. Plug in the CP2102 with your laptop. Step 4: Using Screen to interface with Pi Figure out which interface you need to connect to for interfacing with the mini-UART. You can figure that out by typing this in the terminal on a mac: $ ls /dev/tty.* You need to look for something along the lines of /dev/tty.SLAB_USBtoUART. After figuring that out you can use screen to interface with the raspberry pi. $ screen /dev/tty.SLAB_USBtoUART Read the full article













