Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pin-8.md #393

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/en/pin/pin-8.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
This pin doubles up as the UART transmit pin, TX. It's also commonly known as "Serial" and, by default, will output a Console from your Pi that, with a suitable Serial cable, you can use to control your Pi via the command-line.
This pin doubles up as the UART transmit pin, TX. It's also commonly known as "Serial" and, by default, will output a Console from your Pi that, with a [suitable Serial cable](https://elinux.org/RPi_Serial_Connection), you can use to control your Pi via the command line.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might not actually be the default behaviour any more (because it requires setting the SoC to a fixed clockspeed, rather than letting it turbo on demand), and you need to explicitly request this functionality using raspi-config?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that so? I don't mind lying temporarily to get this merged, and then figuring this out after the fact.

I uh... have been very, very deep in RP2040 lately so my Pi know-how is rusty.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that so? I don't mind lying temporarily to get this merged, and then figuring this out after the fact.

See https://www.raspberrypi.com/documentation/computers/configuration.html#interfacing-options and https://www.raspberrypi.com/documentation/computers/config_txt.html#enable_uart
(although this is often a moving target, and unfortunately the documentation isn't always kept up to date with the changes in Raspberry Pi OS)

I uh... have been very, very deep in RP2040 lately so my Pi know-how is rusty.

Nice! 😀


The UART pins are useful for setting up a "headless" Pi (a Pi without a screen) and getting it connected to a network.
The UART pins can be useful for setting up a "headless" Pi (a Pi without a screen) and getting it connected to a network.

UART can be used to talk to Serial GPS modules or sensors such as the PM5003, but you must make sure you disable the Serial Console in raspi-config first.

On the Pi 3 and 4 the UART is, by default, used for Bluetooth and you may need to add "dtoverlay=miniuart-bt" to "/boot/config.txt" to achieve a stable.
On the Pi 3 and 4 the UART is, by default, used for Bluetooth and you may need to add "dtoverlay=miniuart-bt" to "/boot/config.txt" to be able to use UART (although a reduced version, mini UART).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the Pi Zero W

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah the pitfall of mentioning any specific Pi... the list is getting too darn long!


Note that all UARTs are 3.3V only and damage will occur if they are connected to 5V systems.

[Learn more about UART](/pinout/uart)

[Raspberry Pi UART documentation](https://www.raspberrypi.org/documentation/configuration/uart.md)
[Raspberry Pi UART documentation](https://www.raspberrypi.org/documentation/configuration/uart.md)