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
42
votes
3answers
206k views

How do I make serial work on the Raspberry Pi3 , Pi3B+, PiZeroW

My Pi3 serial console produces rubbish and fails to respond to the keyboard.
27
votes
3answers
14k 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 ...
14
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 ...
13
votes
3answers
56k 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 ...
13
votes
1answer
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 ...
11
votes
5answers
13k 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 ...
11
votes
4answers
58k 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 ...
11
votes
4answers
55k 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 ...
10
votes
5answers
8k 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 ...
8
votes
2answers
20k 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 ...
8
votes
3answers
82k 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......
8
votes
2answers
24k 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?
7
votes
1answer
464 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

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 ...
6
votes
4answers
6k 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/...
6
votes
3answers
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 ...
6
votes
3answers
14k 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 ...
6
votes
1answer
8k 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 ...
6
votes
3answers
22k 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 ...
5
votes
3answers
8k 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!...
5
votes
3answers
28k 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 ...
5
votes
2answers
2k 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 ...
5
votes
1answer
5k 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....
5
votes
2answers
4k 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 ...
5
votes
1answer
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 ...
5
votes
2answers
2k 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 ...
5
votes
3answers
932 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 ...
5
votes
1answer
17k 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 ...
5
votes
3answers
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 ...
5
votes
1answer
3k 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 ...
5
votes
1answer
1k 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 ...
5
votes
2answers
4k 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 ...
5
votes
2answers
12k 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 ...
5
votes
1answer
675 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 ...
5
votes
1answer
861 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?
4
votes
1answer
24k 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....
4
votes
2answers
1k 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
1answer
562 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 ...
4
votes
2answers
1k 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? ...
4
votes
2answers
5k 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 ...
4
votes
2answers
2k 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 /...
4
votes
1answer
5k views

USB Serial Port Configuration

Goal: configure serial to USB cable for 9600 8-N-1 Cable is plugged-in and observed: root@OpenHAB:~# uname -a Linux OpenHAB 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/...
4
votes
2answers
11k views

Arduino Serial Port via Raspberry Pi SSH

I have just bought an Arduino Uno R3 and I would like to view the Serial Monitor using my Raspberry Pi via SSH. I have looked around on forum sites but cannot seem to find the proper software or ...
4
votes
1answer
722 views

Thermal printer does not react

I'm (now for some weeks) trying to get a thermal printer (ttl) to work without success. I've done every step exactly like said in this tutorial but the printer does nothing. Since I don't know how to ...
4
votes
1answer
2k views

Serial connection Arduino - Pi

I am having an Arduino Nano sending "48" or "49" via a serial connection to a Pi. I'd like to use this input, but for some reason the connection always cuts out after a few seconds with the following ...
4
votes
1answer
864 views

Is it possible to access the built-in serial and the gpio ports via powershell on Windows Iot?

Is it possible to access the built-in serial and the gpio ports via powershell on Windows Iot?
4
votes
2answers
73k 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(...
4
votes
1answer
4k views

How to control digital potentiometer using the SPI interface

I'm trying to control a digital potentiometer using RPi's SPI interface but for some reason it is failing, and I can't figure out why. I have successfully controled the potentiometer by manually ...
4
votes
3answers
2k views

Analog input to the PI

I have a bit of a specialized question for you. Recently I got my Pi up and running, and am amazed at what it can pull off. But I want more. I want to be able to record the output from an ...
4
votes
4answers
3k 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 ...