Skip to content

Instantly share code, notes, and snippets.

@antonagestam
Last active February 15, 2019 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonagestam/faafd6ac545e3b71c387aaffab2fc35d to your computer and use it in GitHub Desktop.
Save antonagestam/faafd6ac545e3b71c387aaffab2fc35d to your computer and use it in GitHub Desktop.

Setting up serial on Raspberry Pi 3

Disable bluetooth and setup serial on /dev/ttyAMA0

  1. /boot/config.txt must contain:
enable_uart=1
dtoverlay=pi3-disable-bt
  1. Remove console=serial0,115200 entry from /boot/cmdline.txt

  2. Disable hciuart

$ sudo systemctl disable hciuart
  1. Reboot
$ sudo systemctl reboot
@antonagestam
Copy link
Author

Note: When setting up a Raspberry Pi 3 I failed to do step 2 which resulted in the port intermittently failing. I could send some commands but after that communication would fail and require re-opening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment