Skip to content

Instantly share code, notes, and snippets.

@Muqsit
Last active September 28, 2021 04:27
Show Gist options
  • Save Muqsit/d5439c4a4aff1eeffaa701f453a5e41e to your computer and use it in GitHub Desktop.
Save Muqsit/d5439c4a4aff1eeffaa701f453a5e41e to your computer and use it in GitHub Desktop.
Setting up Raspberry Pi (4) to access via TTL

Steps

  1. Install Raspberry Pi OS image and "Raspberry Pi Imager" software from https://www.raspberrypi.org/software/
  2. Flash OS image via Raspberry Pi Imager
  3. Open E:\config.txt (assuming E:\ is the drive the image was flashed on to)
  4. Add enable_uart=1 under the [all] section (the section is most likely at the end of file)
  5. Add dtoverlay=disable-bt under the [all] section
  6. Insert SD card in Raspberry Pi
  7. Connect to device via serial line at speed=115200

Precautions

  1. Don't forget to connect the ground cable when using a USB to TTL cable

Other Information

  1. Default login credentials for Raspberry Pi:
raspberrypi login: pi
Password: raspberry
  1. Setup WLAN connection by running raspi-config and selecting "System Options" and then "Wireless LAN"

Sources

  1. https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/enabling-serial-console
  2. https://www.raspberrypi.org/forums/viewtopic.php?p=1656617#p1656617
  3. https://www.raspberrypi.org/forums/viewtopic.php?p=187392&sid=5bfa8b76a0d568175a07d33642017dff#p187392
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment