Questions tagged [uart]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
21 views

Rpi zero w serial code python

So i set up my rpi zero w to comunicate at 11500 serial with an arduino... the arduino sends over serial lines such as "~1 11443". My idea is that the ~ character tells the pi when to look for data, ...
1
vote
0answers
70 views

Raspberry Pi 3 B+ (Buster) can't control Dynamixel AX-12A with Raspberry Pi 3 B+ (Buster) with half duplex communication

I have a project to make mobile robot with Dynamixel AX-12A as the wheel, so i changes the AX-12A to Wheel Mode with CM-530 and it works well. I follow the guide from http://www.oppedijk.com/robotics/...
0
votes
1answer
78 views

How to use serial and bluetooth at the same time

I'm working on a drone project using a mobile phone do send pitch/roll/throttle and yaw to a Rpi 4 2GB over bluetooth. This is no problem. But, then I want to send these values to the ...
1
vote
1answer
118 views

How can Rpi4B python UART talk to XY PWM Signal Generators?

Currently I am trying to automate a coil winding machine using stepper motors. I wrote a Python code to send frequencies to the stepper motors. But for some reason, the frequencies produced by ...
2
votes
1answer
316 views

SIM800 GSM Module To Raspberry Pi UART Serial Communication Problem

I am new to Raspberry Pi Zero and I want to connect it with a GSM module for GPRS connectivity. I bought the SIM800A GSM module but its LED is not even blinking one single time. I am able to turn on ...
3
votes
2answers
2k 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 ...
0
votes
1answer
231 views

Configuration UART on pi 4

I am trying to configure the UART on the Pi 4. I have entered enable_uart=1 into /boot/config.txt and I have sudo systemctl disable serial-getty@ttyS0.service and removed console=serial0,115200 ...
0
votes
2answers
190 views

using GPIO pins as TX/RX pins

I'm working on a project that needs multiple TX/RX pins, but the Raspberry Pi that I have only has 1 of these pins. Can I use the GPIO pins as TX/RX pins? Or is there an adapter available somewhere? ...
0
votes
0answers
14 views

Can't read from serial0 using PySerial when python script starts at boot [duplicate]

I have a Python script that uses Pyserial, connects to '/dev/serial0' and reads from it in loop. The script works fine when starting it manually after the RPi is up. However, when I added the script'...
0
votes
1answer
39 views

Running multiple programs that use the same UART bus

Let's say we're writing two programs that uses both UART bus. The program A uses UART at 9600bps baud rate, and the program B uses UART at 115200bps baud rate. Can both of them operate concurrently ...
0
votes
0answers
33 views

Arduino Mega to Raspberry pi 3 Uart communication stops after a short while

I have been trying to setup a data stream from Arduino to rpi using an USB to Uart converter. I am using 4 startbytes and then reading all 36 bytes of data at once. Baudrate, parity and stopbits are ...
0
votes
0answers
39 views

Unable to open serial port GPIO pins

I'm trying to connect a barcode reader on the UART of the GPIO pins of the Raspberry Pi 3B+. I've installed minicom to read the serialport and have allready added the user pi to the groups tty and ...
1
vote
1answer
263 views

Mini UART Bluetooth PAN on Pi Zero W

I followed these instructions to enable a Bluetooth PAN on my Raspberry Pi Zero W. It mostly works fine, but it occupies a serial port. I need UART (mounted at /dev/ttyAMA0) for serial communications, ...
9
votes
1answer
2k 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 ...
0
votes
0answers
135 views

Interfacing SIM800L with PPP [LCP Terminated by Peer]

I am using SIM800L, and managed to interface it with RPi3. After successful configuration on /etc/ppp/peers/rnet, my file looks like this connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs -T ...
2
votes
1answer
83 views

How to connect 3V3 UART logic level to the 5 V RS232 C logic level?

How to connect the 3.3 V Raspberry Pi UART logic level to the 5 volt RS232 C logic level?
1
vote
1answer
535 views

Simple command line to write and read data from UART (serial) loopback

I want to connect the TX and RX pins together and from the command line echo some text into /dev/ttyAMA0 and tail the result (from somewhere). I ultimately want to communicate with an Arduino but ...
1
vote
1answer
28 views

Connecting Raspberry Pi to SFM3520-OP fingerprint module

I want to connect an SFM3520-OP fingerprint module with the RS232C serial port to the Raspberry Pi UART but I am doubtful about their logic level. Should I use a Max2323 or does it not need it?
2
votes
0answers
58 views

SPI0 and UART0 interference caused by SPI interrupt

I have a raspberry CM3 running a custom Linux version created by buildroot (kernel: 4.19.44-v7). The CM3 is configured to be part of a measurement system that is used on a quad-bike (so a lot of ...
1
vote
1answer
887 views

How to enable CTS/RTS (Hardware Flow Control) for MAIN UART (PL011) on Raspberry Pi 3 B+ module?

I am working on Raspberry Pi 3 B+ module with raspbian stretch lite os. I Wants to configure UART interface on Raspberry Pi 3. I have referred the following link & I am able to test UART ...
1
vote
1answer
222 views

use GPIO and/or UART to slow initiate K-line (ISO9141-2) communication with Audi ECU

Related to this question I'm learning to use the Pi GPIO and Python serial to communicate through an IC (L9637D) to interrogate PIDs for alarms etc. I can't get past the slow initiation sequence! ...
0
votes
1answer
896 views

Obtaining GPS & Internet together with Waveshare GSM/GPRS/GNSS HAT module

I'm using Stretch installed Raspberry Pi 3 B and Waveshare GSM/GPRS/GNSS HAT to obtain GPS real-time location and internet. What I have done : Used USB-UART interface and connected jumper Using ...
2
votes
1answer
300 views

Enable mini UART on CM3

I wan't to enable the mini UART on a CM3 for Linux console access in emergency cases. The full UART will be used for other purposes. With a newly flashed CM3 I can access the Linux console using ...
2
votes
3answers
263 views

Options to add 20 UART to RPi

So I am undergoing a project where I will need to add 20 UART (RX/TX) to a single raspberry Pi 3. Each device runs at 9600 After looking at the pi, I found it only has 1 UART on it. What would be ...
1
vote
1answer
145 views

Serial commands over Ethernet RPi 3b

I am trying to send LinBus protocol serial commands over the ethernet port of my Raspberry pi to a linear actuator connected on the other end via ethernet. Currently, I am using pyserial script to ...
1
vote
1answer
65 views

PIGPIO bit banging UART - SLR to plaintext

I've managed to read UART input by SLRO and SLR commands from pgpiod, however, SLR returns UART bit-banged data in the following format: [number of read bytes] [bytes] http://abyz.me.uk/rpi/pigpio/...
1
vote
1answer
128 views

RPi Zero: Two UART devices at the same time

I need to read UART data from one device, and send different data to the other device, all via raspberry pi zero. It has only one UART TX and one UART RX on GPIO pins, but I heard that it is possible ...
1
vote
2answers
206 views

Error while using wiringSerial

I am new to the Raspberry subject and only figure out some basics. I want to use a Nextion-Display withe a Raspberry pi 3b+ and communicate over the UART pins. For this I found wiringPi and that it ...
2
votes
2answers
930 views

Rpi3 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 ...
1
vote
0answers
43 views

Do Rpi3 UART devices inherit their device ID from the on-board UART0 controller (GPIO pins 8 & 10)?

I am working on a device prototype which reads load cell data to an Arduino which sends the load cell data via (hardware, not USB) Serial to the Rpi3 running Win10 IoT. The communication link ...
1
vote
2answers
646 views

5V-3.3V Sensors Confusion

Most of the sensors available in the market requires 3.3V-5V. The GPIO of the Raspberry Pi is 3.3V max only and not 5V tolerant. I have seen tutorials around the internet that they supply the sensors ...
0
votes
0answers
107 views

How to access Tx Rx of UART to TTL converter on RPi 3B?

I accessed the hardware by connecting it to GPIO pins (TX-RX) and wrote a code that that could send instructions to that hardware and receive outputs from it successfully. The first few lines of code ...
1
vote
0answers
29 views

UART 0 PCLK not registered (pi 3)

I'm using a rpi 3 and so to use the UART 0 I had to disconnect the bluetooth from it: enable_uart=1 dtoverlay=pi3-miniuart-bt dtoverlay=midi-uart0 in /boot/config.txt It works great but now at ...
0
votes
2answers
101 views

capture Image with picam then send to another pi via UART

I would like to send an image(JPEG) captured by a pi-zero (in a in-closed container) to an pi3 for storage and analysis. Currently I have UART via gpio set up, but so far I have only been able to send ...
0
votes
1answer
177 views

raspi-config is not working after installing Xenomai on Raspberry Pi 3

I followed the instructions given here to install Xenomai on a Raspberry Pi 3. After installing the kernel (now the RPi uses the kernel-xenomai.img during boot) I couldn't access my network, neither ...
0
votes
0answers
109 views

Change UART default pins

On of on my pi zero I think my RXD pin is out. When trying to connect through usb/serial I receive all the loading of the boot and the login console but cannot send anything (thus cannot login). I ...
1
vote
0answers
71 views

Toggle UART (enable_uart=1) without rebooting

Which pins can can I manually toggle to enable or disable UART on a Raspberry Pi Zero or 3B+ without rebooting? As I understand, /boot/config.txt is parsed before Linux is started, but I don't mind ...
0
votes
0answers
27 views

how to connect STM32F103C8T6 toboth of raspberry pi3 and GPS module via UART

I want to build a quadcopter based on STM32F103C8T6 microcontroller and two sensors(MPU-6050i, Baromter 5611) I will also add GPS NEO-M8N and Picamera, instead of radio controling i will use a wifi ...
0
votes
2answers
171 views

can I use SSH and GPIO UART simutaniously?

I am connected to my Raspberry PI 3 B+ running Raspbian through an SSH terminal, and I am trying to make an application that uses the UART through the GPIO. Whenever I try to open the port "/dev/...
0
votes
0answers
85 views

Serial communication between RPi and PIC uC uart receiver accuracy

I am currently working on serial communication between RPi and PIC. I am new to Raspberry Pi and python world.... okay following is my code: from serial import * from time import * import RPi.GPIO as ...
1
vote
0answers
65 views

Adafruit Ultimate GPS with Rpi 3 “Permission Denied”

I am trying to connect an Adafruit Ultimate GPS to my Raspberry Pi 3 and read data from it using the WiringPi Serial library. I have set the serial connection up and removed the serial console through ...
0
votes
0answers
76 views

How to connect maxbotix ultrasonic range sensor through GPIO

I got a Raspberry Pi 3 B+ over Christmas which came with a breadboard (i.e. I'm new to all of this). I recently bought a Maxbotix HRLV-EZ4 ultrasonic sensor. I am using the Canakit GPIO Breakout ...
-2
votes
1answer
37 views

Ser.write() ,when checked shows only the length

I have used a=ser.write("TEST".encode()) in my code to send data using UART gpio in Rpi. The code shows no error but when I print a,it gives me the length only. Actually i am trying to interface Rpi ...
-1
votes
1answer
1k views

Serial Port & C Code

I have a sensor connected to an ODROID UART (Basically an RPi just a different name for the UART port) and using the WiringPi Serial library. I am able to echo/cat to the sensor via two terminal ...
1
vote
2answers
204 views

software solution for non-blocking UART communications

For UART communication on Raspberry Pi one can write a program in Python with the pyserial package or a program in C. Pyserial requires Threading for non-blocking UART, while C libraries allow to use ...
0
votes
1answer
43 views

Raspberry PI UART doesn't work all the time

I am trying to communicate to a UART device using Raspberry Pi (Raspberry Pi 3B with Raspbian stretch) Header pins with pyserial. I have followed all the steps mentioned in https://www.raspberrypi.org/...
4
votes
2answers
658 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: ...
1
vote
1answer
685 views

UART Raspberry pi IoT (Windows IoT Core)

UART data transmission Raspberry pi UART (RX TX) Arduino I know should avoid async void. They are only used for event handling. For other methods return Task. async and await Where can there be a ...
4
votes
1answer
102 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.
0
votes
1answer
396 views

Problems connecting to pi 3 via ttl (cp2102)

I'm following raspberrypi.org THE RASPBERRY PI UARTS guide, trying to connect from mac 10.13.6 High Sierra to Pi 3 using screen. I had to disable system integrity protection on mac (high sierra) to ...