Questions tagged [uart]

a Universal Asynchronous Receiver/Transmitter, better known as serial port

Filter by
Sorted by
Tagged with
36
votes
11answers
60k views

How to get more than one uart interface

Ok, I have one uart interface (TXD GPIO 14, RXD GPIO 15). I want at least one more uart interface. Possible solutions: Bit banging: Use two unrelated spare GPIOs. I understand that timing is a ...
16
votes
3answers
2k views

How do I connect my printer to the serial GPIO pins?

I've purchased a Mini Thermal Printer from Adafruit. The documentation states: This printer is ideal for interfacing with a microcontroller, you simply need a 3.3V to 5V TTL serial output from ...
14
votes
2answers
50k views

How can I set the UART speed?

How should you set the baud rate of the UART Bonus question: What baud rates are available on the RPi? Edit: Since reading up from Steve's answer, I have found that there are two UARTs available. ...
13
votes
5answers
13k views

Disable DTR on ttyUSB0

I'm connecting from Pi to Arduino-clone board. The problem is, that I need to disable DTR line, in order to prevent Arduino from resetting on connect. I have read that on RPi is not possible to ...
11
votes
2answers
17k views

PiGPIO Library Example for Bit-Banging a UART

The PiGPIO library http://abyz.me.uk/rpi/pigpio/index.html mentions that one of it's features is "software serial links using any user gpio". I take this to mean that you can use it to generate a ...
10
votes
7answers
10k views

True 9-bit serial port data?

I have an existing, half complete, vending machine project running on an Atmel UTC, which I want to port to the Pi. In order to talk to peripherals, such as coin acceptor, it has to support Multi-...
10
votes
1answer
4k views

Pi 4 I/O interface options... and where to find them

The BCM2711's hardware documentation lists multiple I/O interface options. Among others these are: up to 6 × I2C, up to 6 × UART (muxed with I2C), up to 6 × SPI (only five exposed on Raspberry Pi ...
8
votes
3answers
28k views

How to connect SIM800 GSM ADD-ON to RaspberryPi 3

I am confused about how to connect SIM800 GSM module to RaspBerry PI 3. I connect the module to RaspBerry PI using the GPIO pins. What happends now? Are those GPIO pins automatically connected to ...
7
votes
2answers
20k views

Where are the uarts on the raspberry pi 4?

The raspberry pi 4 has at least two uarts (as shown here), I know where I can connect to one of them. Pins 8, 10 and 12 have a uart as an option. Source: This site describes accessing uart1, where ...
7
votes
1answer
479 views

Bit waveform clarification

I have been trying to learn more about bit transmission through the uart, and I have the following code in python to transmit information: import serial ser = serial.Serial( port='/dev/ttyAMA0',...
7
votes
2answers
5k views

Is there a way to make a regular GPIO pin into a Tx UART pin?

I'm working on a project that is going to need two different UART interfaces. Is there a way to make a regular GPIO pin into a Tx UART pin, I don't need an Rx pin too. Is there a software solution ...
6
votes
2answers
5k views

Virtual UART ports

I want to use a Rpi to interface with 3 atmega ics in an embedded system but the pi seems to only have one uart port. I know arduino can emulate a serial connection over two io pins, will this be ...
6
votes
2answers
3k views

UART Output working on 57600 Baud but with 115200 only gibberish

I've got a strange problem with serial output. Using Wheezy and 8 Databits, 1 Stopbit, NoFlowcontroll, NoParity (config as stated in eLinux Wiki). With 57600 Baud everything works fine but with 115200 ...
6
votes
1answer
4k views

UART RX stops reading data after working correctly

I'm trying to read an continuous stream of data from my device (laser altimeter). The device is connected to the UART Rx pin of raspberry Pi 3B+. Everything works fine with this python code: import ...
6
votes
1answer
15k views

How to communicate between Pi 3 and an Arduino using UART from GPIO?

I need to transfer data between Arduino and Pi. I have an Pi 3, and I used a simple circuit with a voltage divider to deal with 3.3v vs 5v logic levels. But I got nothing. Then, I used only Pi3 with ...
5
votes
4answers
11k views

Connect sim800 to Raspberry PI (RX, TX)

I've been trying to connect my sim800L to my Raspberry pi 3 model B (rasbian) but without success... I'm at the very first step, and since I'm new to Raspberry pi, I don't understand very well how it ...
4
votes
2answers
2k views

Binary garbage on the UART when powering the RPi

I have a strange issue I cannot figure out. I have a thermal printer (https://www.adafruit.com/products/597) plugged to the UART (/dev/ttyAMAO). I configured the RPi to remove the console on /dev/...
4
votes
2answers
1k views

Impact of using UART

I'm trying to understand the impact of using UART communication of the Raspberry's GPIO pins. So I'm reading the Raspberry UART documentation, but I'm not sure if I get everything right. It says: ...
4
votes
1answer
663 views

How do I use a Raspberry Pi to install OpenWrt firmware on a BT HomeHub 5a or PlusNet Hub One router

I have a spare BT HomeHub 5a clone (actually a PlusNet Hub One router). I would like to install the OpenWRT firmware on it, in order to reliably use it as a wired wifi range extender without a DHCP ...
4
votes
1answer
139 views

Is Fingerprint Scanner - TTL (GT-511C3) compatible with Raspberry Pi Zero

I have a question regarding Fingerprint Scanner - TTL (GT-511C3). Here is a link. Please help me. Is this fingerprint scanner compatible with Raspberry Pi Zero? please give me the answer.
4
votes
3answers
2k views

ttyAMA0 disabled but still shows one boot message

I'm trying to use the UART for my own purposes. I'm using Raspbian I've edited cmdline.txt and inittab but I still get the one line message Uncompressing Linux... done, booting the kernel. How do ...
4
votes
3answers
13k views

UART serial interrupt routine

Is there a simple way to use the registers as an interrupt trigger? I can make the application run in a new pid and poll for serial input using fork() I just need to read data, no write needed This ...
4
votes
1answer
26k views

Identifying USB devices [closed]

I have several RS232 to TTL UART converters plugged into my Pi. The problem is that their device assignments change sporadically. Sometimes the first device gets /dev/ttyUSB0, and another time /dev/...
4
votes
1answer
2k views

Bluetooth UART on the Compute Module

We're trying (unsuccessfully) to attach a UART bluetooth SoC to the Raspberry Pi 3 Compute Module. The bluetooth SoC is a based off a Nordic nRF51. It's running project Zephyr RTOS hci_uart sample. ...
3
votes
3answers
1k views

RPi 4 -- Garbage on serial console (UART) using upstream kernel

I'm experimenting with upstream kernel and now I try to get serial console working. I'm getting only garbage symbols when I try to communicate: I think it is important to notice that I only get ...
3
votes
2answers
58k views

How can I test if the serial / UART is good on a Raspberry Pi?

I've purchased a used Raspberry Pi and have followed the instructions from Wolf Paulus's Journal to connect to the Raspberry Pi from my computer using a PL2303 USB adapter. The specifications on the ...
3
votes
2answers
3k views

9 Data Bits on UART pins?

I am wondering if it is possible to send 9 data bits framed with a start/stop bit at 1.25MBaud. I am currently using PySerial to configure the UART pins on the pi. I've stumbled across a few ...
3
votes
1answer
5k views

Why am I seeing some garbage bytes at the serial console login?

When I log into my serial console using screen /dev/ttyUSB0 115200, I see some garbage in the output: �� Arch Linux 3.6.11-10-ARCH+ (ttyAMA0) raspberry login: root �Password: Login incorrect ...
3
votes
1answer
2k views

Can I use the TX/RX pins and the USB ports for multiple serial devices?

I have two devices I want to use (GPS module and a PM2.5 sensor) that both use serial communication. I know you can't throw two devices on the same serial line. However, I've seen some badly explained ...
3
votes
1answer
645 views

Adafruit Ultimate GPS HAT Connections

I have been messing around with this GPS HAT for a few days now. I do have it working, although I have multiple modules running at once on stacked breadboards. My main question is on AdaFruit's ...
3
votes
2answers
4k views

Rpi to Arduino Serial UART Communication Tutorial

I'm trying to connect my Arduino to my Raspberry Pi using the GPIO pins. I understand that the Pi uses a 3.3V signal while the Arduino uses a 5V signal so I bought a bi-directional logic level ...
3
votes
3answers
9k views

How to set non standard serial port speed

I need to set the serial port /dev/ttyS0 to 250k bit/sec in order to send commands to another device expecting 250k. I am using Python and trying to set the speed with the command ser=serial.Serial( ...
3
votes
5answers
19k views

UART problems on my Pi3

I am trying to send and receive radio signals using my Raspberry, but I am already stuck at the first step :) My Radio module uses UART for communication but I have failed to set up my serial ...
3
votes
1answer
6k views

Pi 3 Boot with UART console

I use Raspberry Pi 3 with image "RASPBIAN JESSIE" which is 2016-02-26 build. I plug in micro-usb to power on. Then I use USB to TTL adapter to try to login. I've set baud rate 115200, and connect GND, ...
3
votes
1answer
628 views

Strange issue on UART (via FTDI USB <--> RS-232 adapter)

I'm trying to establish a high speed UART communication. Since ttyAMA0 is not quite good at 1+ Mbaud, decided to use FTDI adapter (based on FT232RL chip) instead. I've tested an adapter on my laptop ...
3
votes
1answer
3k views

Sim800 not responding to AT commands

I have a Sim800 GSM module hooked up to pins 8 and 10 of the a PI B+ running the latest version of Jessie. I have configured Jessie so that nothing else is using the TXD0 and RXD0 pins. If I connect a ...
3
votes
1answer
857 views

UART cannot send

UART on my pi cannot send data, I can receive data from another machine, but I cannot send any data using the 'tx' pin of UART. I also try to connect 'tx' and 'rx' on my pi, but still no data is sent ...
3
votes
1answer
1k views

Serial USB-RS485 failing to read on Pi but not on Ubuntu laptop?

I am reading values from a Battery Management System using two, serial USB-RS485 adaptors (ftdi). I am doing this over MODBUS using the minimal modbus library and python: # Bank A # port name, slave ...
3
votes
1answer
363 views

uart issue in pi-3

I have a problem regarding the uart not working at all, following are the steps as done from my side. updated and upgraded the raspberry pi,initially i installed raspbian wheezy to sd card and i am ...
3
votes
2answers
2k views

Serial Communication between Raspi and Arduino Mega

I apologize for the double post, but I asked this question earlier and somehow it does not appear under my user and I can't make any edit or comments to it: Trouble with UART Serial Communication with ...
3
votes
1answer
3k views

Raspberry pi, how to debug rx, tx pin

I have made a program which give instruction to a motor module. I have successfully send instruction to him, asking it to make a rotation back and forth, but I can't get back the feedback result. I ...
3
votes
0answers
569 views

Bare Metal RPI 3B UART not working

I have referred many tutorials to get UART working in bare metal environment on RPI 3. https://github.com/dwelch67/raspberrypi/tree/master/uart05 https://github.com/mrvn/RaspberryPi-baremetal/tree/...
3
votes
0answers
4k views

Raspberry Pi and LIN Bus

I want to implement a LIN Bus using a Raspberry Pi 3. The RPi will be the master controlling slaves on the LIN Bus. My idea is to use the Raspberry Pi UART, but I am not sure to what extent this ...
3
votes
0answers
659 views

Disable onboard Bluetooth device and remap UART0 on Windows 10 IoT Core

We would like to use Gertbot card on Raspberry Pi 3 to control motors and to read distance sensors. For that, serial communication using UART0 on GPIO pins 8 and 10 is required. Observing Raspi serial ...
3
votes
0answers
2k views

Raspberry Pi 3 Bluetooth Baud rate

How do I increase the available baud rate of the bluetooth module for the Raspberry P1 3 model B? I have tried editing the /boot/config.txt file with: init_uart_baud=1000000 init_uart_clock=16000000 ...
3
votes
1answer
486 views

Raspberry PI Uart: pi to pi communication (B+, B2, CMIO)

Good day I am currently setting up UART communications for two Raspi's using wiring Pi's uart library. I have three Raspberry Pi's (B+, Compute Module IO board, B2). I have been able to make ...
3
votes
1answer
3k views

Cannot send data from RaspberryPi to Arduino using UART

I want to send data from RaspberryPi to Arduino UNO using UART. I tried sending my data 10 times to Arduino but it received it once. It reads as follows. Connected to PC pi: ÿpi: ÿpi: ÿ 1) I ...
3
votes
0answers
392 views

Can I use the TX pin as a normal GPIO output alongside serial communications on the UART? [closed]

I'm using the raspberry pi's UART to interface with a third-party radio. At startup, the radio reads its RX pin (the pi's TX pin) to determine which baud rate should be used. I'm using Gordon's ...
3
votes
1answer
2k views

USART resending Problem via console

I have some trouble with my USART interface. I short-circuited the RX and TX pins and tried to test sending stuff via the cli using these commands: sudo stty 200 -F /dev/ttyAMA0 cat /dev/ttyAMA0 ...
2
votes
2answers
3k views

What is the difference between the GPIO pins BCM 14 and BCM 18?

I am total noob. I read that the pins 14 and 15 are input and output for UART. But what does it actually mean? Is it a purely data pin? If its a data pin does it not go high and low? If so how is it ...

1
2 3 4 5
7