Questions tagged [serial]

is the process of sending data one bit at a time, sequentially, over a communication channel or computer bus. Traditionally "serial" relates to a three (or more with hardware handshaking) wire system (TIA-232-F), now using ∓25V Voltages. Technically speaking the specialized SPI (Serial Peripheral Interface) and I2C (Inter-Integrated Circuit) buses are serial communication systems as well - use one of those tags if they would be more appropriate!

Filter by
Sorted by
Tagged with
51 votes
4 answers
263k views

How do I make serial work on the Raspberry Pi3 (PiZeroW, Pi4 or later models)

My Pi3 serial console produces rubbish and fails to respond to the keyboard.
user avatar
  • 54.2k
30 votes
3 answers
16k views

Can Raspberry Pi reliably bit bang a 9600 baud serial and is there example code?

I am wondering how feasible it is to use bitbanging to drive a 9600 baud serial via the GPIO pins on the Raspberry Pi. Obviously, Linux is not a terribly good platform for bitbanging, as there is a ...
user avatar
  • 1,491
16 votes
3 answers
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 ...
user avatar
  • 22.2k
14 votes
5 answers
15k 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 ...
user avatar
  • 324
13 votes
3 answers
57k views

Safest way to connect Raspberry Pi to Arduino Uno R3

I am working on a robot using an Arduino Uno R3 and I wanted to have the ability of controlling the Arduino wirelessly, like stopping the Arduino without having to pull the power-plug every time. I ...
user avatar
13 votes
1 answer
2k views

What are the usage of extra available holes in model B

Despite some research on the web, I cannot find the options available from these "opportunity" holes on the Rpi. I probably do not use the proper words to identify them. What is the name for this ...
user avatar
  • 435
13 votes
5 answers
16k views

GPIO-UART-to-Arduino communication

I have been trying with no luck to get the Raspberry Pi talking to an Arduino. I am using a 3.3 V-to-5 V converter to swap voltages. I did put an LED on the UART TX pin, and it looks like it ...
user avatar
  • 131
13 votes
4 answers
66k views

How can I connect to a USB serial device?

I have a device with a USB serial port cable that I'd like to connect to my Raspberry Pi. The chipset for this USB to serial cable it the PL-2303 from Prolific Technology, Inc. How can I read data ...
user avatar
  • 235
13 votes
4 answers
67k views

How do I get the data from the serial port?

I have a Ciseco XRF radio module and a Slice of Pi expansion board. Using the program 'screen' works fine; I can see data being transmitted to the XRF module. How do I get the data from the serial ...
user avatar
  • 181
12 votes
2 answers
27k views

Why does USB port enumeration change?

I'm using a Huawei GMS/UMTS USB modem with Gnokii and Gammu. The modem was in the lower port on Pi. With dmesg | grep tty it would show up on /dev/ttyUSB0 and /dev/ttyUSB1. (2 USB devices on 1 stick ...
user avatar
  • 589
12 votes
1 answer
57k views

What is /dev/ttyAMA0

complete newbie here. Can someone please tell me what /dev/ttyAMA0. I read that it is the TxRx pins. But what is it? is it used to refer to the pins or their address? is it explicitly the Rx or the tx ...
user avatar
10 votes
2 answers
31k views

How to configure serial port settings of /dev/ttyAMA0?

I want to access the serial port by some BASH script files via /dev/ttyAMA0. How do I configure the serial port settings like speed, parity even/odd?
user avatar
  • 328
9 votes
4 answers
10k views

Colored console over serial connection?

I am accessing two of my Pis via a serial connection on pins 8 and 10. One of them uses a serial to USB connector for my Mac and the other uses an HC-06 which connects to my Android. The console/...
user avatar
  • 6,235
9 votes
3 answers
92k views

How do I display an image file (PNG) in a simple window?

I've got a prototype I need to show for an RFID project. I've got the RFID (Parallax USB) working, and the sample Python script (my first) is displaying the ID of the card just like it's supposed to......
user avatar
  • 115
9 votes
2 answers
14k views

How many serial ports are on the Pi 3?

How many serial ports are on the Pi 3? There is one on the GPIO pin that goes to ttyS0. Is there a separate one for USB? I have read somewhere about /dev/ttyUSB0. Is that a separate serial port? ...
user avatar
  • 419
7 votes
1 answer
480 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',...
user avatar
7 votes
1 answer
13k views

Is there a way to attach multiple serial port devices to a single raspberry pi?

I have three separate devices that all need access to a data serial port on the pi. My devices are an accelerometer, a GPS unit, and a GMS cell service chip. I've found tutorials on how to attach ...
user avatar
  • 299
7 votes
2 answers
7k views

Serial communication between arduino and rpi using tx/rx pins

I currently working on a project where an Arduino has to communicate with a pi. Since the pi is running out of USB ports, I am forced to use the ux/tx ports on the Arduino and pi. The communication ...
user avatar
  • 171
6 votes
2 answers
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 ...
user avatar
  • 307
6 votes
2 answers
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 ...
user avatar
  • 661
6 votes
3 answers
3k views

How to install PiTFT and use to the GPIO for other usage (like serial console)

I am about to install PiTFT on a RPi model B. However, doing so, I will lose the GPIOs for other usage (like a serial cable cable, for instance). Is it possible to install a PiTFT and still have a ...
user avatar
  • 435
6 votes
5 answers
4k views

Interfacing with an RC receiver using PWM on the GPIOs

I've been struggling for a few days and haven't managed to turn up a lot on the internet. I'm looking to READ from the PWM output of an RC receiver through one of the GPIO's on the RPi. I've read ...
user avatar
  • 83
6 votes
3 answers
19k views

How to connect a Raspberry PI 3 to USB TTY cable

I am trying to connect the ADA Fruit USB to TTY cable to a Mac with Mac OS X 10.11.3. I installed the driver and see /dev/tty.usbserial but when I try screen /dev/tty.usbserial 115200 I get no output ...
user avatar
  • 173
6 votes
1 answer
5k 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 ...
user avatar
6 votes
3 answers
35k views

Serial Port on Raspberry Pi 3 ttys0

I have a Raspberry Pi B and a Raspberry Pi 3. I am trying to get the Raspberry Pi 3's serial port working. I have put a jumper across pins 8 and 10 to check the serial port is working. I've executed ...
user avatar
  • 69
5 votes
3 answers
39k views

Python serial permission issue

I'm trying to connect my Arduino to my RPi through python and PySerial, and I'm using the following code: import serial ser = serial.Serial('/dev/serial/ttyACM0', 9600) and I was getting an issue ...
user avatar
  • 153
5 votes
3 answers
1k views

Serial output in case of no OS

I am using the raspberry pi 4. I have no screen connected to the raspberry pi, I do everything trough ethernet cable. I am currently changing kernels and thus sometimes I cannot boot, since I created ...
user avatar
  • 153
5 votes
3 answers
12k views

Raspberry Pi used as a cheap serial-to-WLAN converter

I want to use my Raspberry Pi as a serial-to-TCP converter. The Raspberry Pi should be a TCP-server that accept one TCP client (because more connections would end in a complete mess on the serial port!...
user avatar
  • 229
5 votes
2 answers
3k views

Receiving data over USB to GPIO

I'm trying to figure out how "plug the GPIO pins into a computer's USB" to receive data from said computer. The results from my searches have been either too confusing or not helpful. Please be gentle,...
user avatar
5 votes
2 answers
6k views

Connecting a Pi to a Projector via RS232

I have recently purchased a projector, and on the back, there is a Round RS232 port. After a quick google, I found this document which seems to describe a protocol that MIGHT (I'll need to do more ...
user avatar
  • 489
5 votes
1 answer
6k views

Cronjob is set to run every 5 minutes but runs every minute

I have a problem with my python script. It looks like this: #!/usr/bin/python import time import serial import datetime import sys Y = datetime.datetime.now().strftime('%Y')[3] filedate = datetime....
user avatar
5 votes
1 answer
14k views

SPI example with Raspberry Pi and another MCU

I've never used SPI before (for serial communication) and was wondering if any experienced Pi users out there know if the Pi board can use SPI to send and receive data to other MCUs on different ...
user avatar
  • 183
5 votes
2 answers
3k views

Raspberry Pi to Arduino (Leonardo) avoiding latency

I'm using a Python script via (TkInter) on the Raspberry Pi to capture mouse movement and events. My goal is to send this data, in real time, to another connected Arduino device(Leonardo). My first ...
user avatar
  • 173
5 votes
2 answers
9k views

Garbage on Raspberry Pi console

Hey! There's a solution under the question, go look... I'm using the Adafruit USB to TTL connector purchased from Microcenter. I have two separate parts, and have tried them both. I've wired it 6/...
user avatar
5 votes
3 answers
1k views

Raspberry Pi as USB serial device

I have two Model A+ Pis and a Model B+, as well as a couple of USB A-to-A Male cables. I want to be able to have the A+es able to communicate over serial to the B+. The reason I'm doing this is ...
user avatar
5 votes
3 answers
2k views

Raspberry Pi/"Arduino" communication

I'm looking to use a raspberry pi to speak to multiple "arduino" ATMEGA328p ICs (through a logic-level converter). I figure I can do this reasonably well over the GPIO RX/TX and use qualifiers to let ...
user avatar
5 votes
1 answer
8k views

Can not use PL2303 USB to Serial with Pi B+

I have a PL-2303 USB-to-serial cable plugged into my Raspberry Pi via the USB port, which is then connected to a serial device. However, the Raspberry Pi is unable to read any data coming from the ...
user avatar
  • 135
5 votes
1 answer
2k views

Simple Custom 1-Wire GPIO Communication Protocol between Master PI and Slave PI

I have 2 Raspberry Pis in my system. One can be 'docked' to the other one and some time later it can become 'undocked'. While docked, the 2 Pis will have a connection between 2 GPIO pins ( 1 pin on ...
user avatar
  • 361
5 votes
2 answers
6k views

Unable to integrate Fingerprint sensor in Raspberry Pi2

I am trying to connect a R305 v1.6 fingerprint scanner with my Raspberry Pi2 Model B. Sensor: http://www.sunrom.com/p/finger-print-sensor-r305 I am using pyfingerprint module which supports ZFM-20 ...
user avatar
5 votes
2 answers
13k views

Connecting to an RC522 RFID reader

I'm trying to connect an RC522 RFID reader to the a Raspi via its SPI port. Up till now, I have tried several different pieces of code that are supposedly working, however, I have had no success with ...
user avatar
  • 151
5 votes
2 answers
83k views

Reading from serial port [loop]

I would like to read from the USB serial port from time to time in a loop. I can open the port and read data with: import serial ser = serial.Serial('/dev/ttyACM0', 9600) while 1 : ser.readline(...
user avatar
  • 101
5 votes
1 answer
733 views

PIC32 connected via USB-Serial to Raspberry Pi

Has anyone managed to get the PIC32MX695F512L microcontroller to connect via USB to the Raspberry Pi? The PIC32 doesn't show up in lsusb or dmesg, however it will happily connect to my laptop with ...
user avatar
5 votes
1 answer
916 views

How do I set up a terminal log-in via USB port in Raspbian?

How can I set up a log-in focused on a USB port so I can hook up a DB9-to-USB cable I already own up to log in using putty or minicom?
user avatar
4 votes
1 answer
30k views

Why my program won't communicate through ttyAMA0 on Raspbian (Jessie)?

I am running two different Raspberry PI and they are running Raspbian Wheezy and Jessie. On Wheezy, I simply commented out a line T0:23: respawn:/sbin/getty -L ttyAMA0 115200 Vt00 in /etc/inittab file....
user avatar
  • 1,032
4 votes
2 answers
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/...
user avatar
4 votes
1 answer
1k views

RS232 to Raspberry Pi Zero W

I know this may be a dumb question but can you connect a RS232 Tx, Rx, and Ground from a device directly to the Rx, Tx and Ground on a Raspberry Pi Zero without having to get a Max3232 or something ...
user avatar
4 votes
2 answers
7k views

How to send and read a string from Raspberry pi to Arduino via serial interface?

I was trying to send and receive data between Raspberry pi and Arduino UNO. I'm able to send and receive a string from Arduino to Pi using Serial.println. I spent hours searching a better tutorial or ...
user avatar
  • 315
4 votes
1 answer
1k 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 ...
user avatar
4 votes
2 answers
3k views

Compute module 3 ttyAMA0

just got my hands on the new CM3, flashed a fresh raspbian image on it and noticed ttyAMA0 is not there (it has been used for bluetooth since raspberry pi 3). the only way to get it back is to change /...
user avatar
  • 112
4 votes
2 answers
64k 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 ...
user avatar
  • 318

1
2 3 4 5
14