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
1
vote
1answer
1k views

Raspberry Pi 3, bluetooth is not getting connected with HM-10 bluetooth module

I currently have a Raspberry Pi 3 with built-in bluetooth and some of my work specification require to connect it with HM-10 bluetooth module but I am unable to do so. I have tried various methods ...
1
vote
1answer
75 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/...
5
votes
5answers
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 ...
1
vote
2answers
1k views

Raspberry pi 3 reading serial port

I have a python code that reads the serial port of the raspberry pi 3to obtain GPS positions from a fona808. The code works for some time and then throws this error. Traceback (most recent call last):...
1
vote
1answer
50 views

Receiving login shell data via serial port

I'm writing code to send data to and from a raspberry pi (pi zero running raspbian lite) via serial port, using 1 python script on either side. I've set everything up so that I can use port='/dev/...
0
votes
0answers
137 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
731 views

UART pins not reading sensor output RPI3

This is my first pi project so im a bit new at this. Im trying to connect a senseair K-30 CO2 sensor to the pi via the UART gpio pins. This is the sensor I am using: https://www.co2meter.com/products/...
0
votes
1answer
37 views

Modifying what is shown in the uART

I am working on establishing user communication (one may say a basic UI) from the user's PC to my Raspberry Pi, where the RPI would accept pre-defined commands from the user via uART and then process ...
3
votes
0answers
77 views

Problem sending analog read values over serial

Ok I apologize as I have edited this quite a bit, but I have narrowed down the problem a bit more. For some reason I can't transfer values from my arduino analog pins?? I am trying to send values ...
2
votes
2answers
961 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 ...
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, ...
0
votes
1answer
46 views

Problem running the serial module with Python

I am trying to use the serial port on the Raspberry but when I run the example below I have the message: TypeError: 'module' object is not callable import time import serial ser = serial.serial( ...
0
votes
2answers
27 views

Enable /dev/ttyAMA0 on Debian (not Raspbian)

I have an RaspberryPI 3+ with Debian installed on it. I'am trying to connect a serial device (Raspbee) via the GPIO pins like this. Under Raspbian this worked by enabling UART in raspi-config after ...
2
votes
1answer
2k views

Raspberry Pi 3 UART with ATmega328p

I'm trying to send data from ATmega328p to Raspberry Pi 3 with UART using Pis gpios. The problem is Pi does not seem to be getting any data from the microcontroller. Here is how I wired the ...
2
votes
2answers
89 views

Rpi Zero and Projector's USB RS232 Serial Cable Interface/Connection Problem

I know there are similar posts on this topic, but I've scoured them all and haven't been able to figure this out. I'm trying to control my projector via a R232 port. I have a USB to R232 cable, ...
3
votes
1answer
54 views

Vintage terminal as RPi console

I want to connect a vintage 70s era terminal with a Raspberry Pi. The terminal uses a DB-25 connector and features hardware flow control (RTS/CTS/DTR etc). What would be the recommended way to hook it ...
1
vote
2answers
76 views

Incorrect TTYS0 input from sensor

I am trying to read data from a LV-MaxSonar-EZ0's TX pin connected to the RX pin on a Raspberry Pi Zero W. The problem I'm running into is that the data I'm getting does not fit what the sensor's ...
1
vote
1answer
57 views

Using EnOcean PI 868 with raspberry PI4

first of all: I'm new to raspberry I.ve just bought a raspberry PI 4 together with an EnOcean PI 868 module to set up a house automation system. To make it run I've tried the steps described on the ...
0
votes
2answers
106 views

Take a picture when a light source is disturbed

I would like to use a Raspberry Pi camera to take a picture when a light source sent to the camera is interrupted. I have one Arduino (transmitter) sending an ON-OFF Keying (OOK) signal through an LED ...
0
votes
0answers
27 views

Bluetooth hci0 device suddenly missing on 4B+

After a recent reboot of my 4B+ I noticed that my bluetooth connections had stopped working. I noticed that bluetoothctl reported no device, and further that sudo hciconfig hci0 up indicates Can't get ...
0
votes
0answers
71 views

Raspberry Pi and Arduino echo over USB

I am trying to create an "echo server" with Arduino UNO, so that user could send some message to it through Raspberry Pi and receive the same response. On Pi I am using Python and PySerial library to ...
2
votes
2answers
961 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
2answers
68 views

SIM800 UART Serial Corrupted Response Problem

I am adding a SIM800L module to a home burglar alarm system I'm building around a RPi3. I've already encountered, and overcome, the usual power problems, and I can successfully use the module to make ...
44
votes
3answers
217k views

How do I make serial work on the Raspberry Pi3 (or later model)

My Pi3 serial console produces rubbish and fails to respond to the keyboard.
2
votes
1answer
607 views

usb 4 port rs232 hub, name of devices

What if I use this UBS to 4 RS232 Cable ? Will be the device names e.g /dev/ttyUSB0 - /dev/ttyUSB3 always the same for each RS232 connector ? For example: If I plug in the USB connector, the ...
2
votes
2answers
700 views

Rpi UART to GPS Module Connection Problem

I've tried reconnecting an old GPS module to the UART pins on my raspberry pi, but it seems it's not able to get a satellite fix. I've had troubles trying to get gpsd started, but I'm able to test ...
0
votes
1answer
96 views

Serial read from arduino not working properly

I am trying to read analog read from ardunio connected to my raspberry pi. Following are my raspberry pi and arduino codes. Raspbery pi: import time import serial ser = serial.Serial('/dev/ttyACM0'...
0
votes
1answer
71 views

Passing data from output of a function to be used in a function python

I have a few parts of a weather station together and am running into an issue with functions. the humair fuction returns two values hum and airtemp. The problem is when the sendpost function runs it ...
0
votes
0answers
65 views

How to solve MPU9250 overflow problems?

I'm now working with mpu9250 for my master thesis, but I'm quite new to hardware device. My goal is to collect the data at the sample rate and postprocess these data via allan deviation. So I just ...
0
votes
1answer
144 views

Multiple TTL sensors on serial RX GPIO 10

Is it possible to read more than one TTL sensor on serial RX GPIO 10? I know you can add multiple serial sensors on /dev/ttyUSBx Does the same apply to /dev/ttyAMAx ?
2
votes
2answers
252 views

Raspberry Pi Zero W solar power setup

Good day, I have a Raspberry Pi Zero W that I would like to deploy onto a tower that is supplied with 12VDC power from a photovoltaic solar panel. I'm currently looking at powering the Pi Zero W ...
0
votes
1answer
135 views

Printing Serial Port Not Advancing Line

I have a project in which an Arduino is reading a sensor and printing that value to the serial port. When connected to the serial monitor in the Arduino IDE on my PC, the data is printed flawlessly. ...
0
votes
2answers
98 views

Writing to GPS HAT on Raspberry Pi Zero W Never Returns Anything

I have attached a GPS HAT to a Raspberry Pi Zero W running RASPBIAN STRETCH WITH DESKTOP. When I SSH in to run a simple Python script that writes to the HAT serial port, nothing happens and I am not ...
1
vote
1answer
120 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 ...
0
votes
1answer
29 views

Picam and USB serial comms issue

Are there any known issues with serial comms & the Picam module? When I have a serial channel open (over USB) & write to it whilst viewing the input from a Picam on screen, the view port will ...
0
votes
1answer
351 views

Xbee-API python

I'm trying to use my Raspberry Pi B+ as a gateway so others sensors, also with xbee, can send data and get a few kind of commands by it. The problem is that i can only read the data with the simplest ...
1
vote
0answers
20 views

How can I view networking interface logs over UART?

I have created a (needlessly complicated) networking setup that I tried to create by following this guide. I have colosally screwed up and now my RPi will disconnect randomly and requires a reboot to ...
0
votes
2answers
142 views

Strange problem with serial

my problem is that when I run the test: #!/usr/bin/env python3 # Will also work on Python2. # Serial port testing from __future__ IMPORT print_function import serial test_string = "Testing 1 2 3 4"....
0
votes
1answer
69 views

Rapsberry Pi Zero serial receiving too much data from packet

I have a python program that reads data from a USB serial port connected to a computer. The computer sends data packets from a simulation program (I didn't write this). The data is made of strings of ...
0
votes
1answer
234 views

How to use the DMA-DREQ/PANIC threshold of the hardware-PWM

I'm using the hardware PWM that is described on page 138 of the BCM2835-ARM-Peripherals document. The description of the DMAC-register (page 145) indicates that one can set the FIFO-threshold at ...
2
votes
1answer
350 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 ...
0
votes
1answer
189 views

Using pwm to send packets

does anyone one know if it's possible to use the Raspberry pi to send packets via pwm? I want to interface the raspberry pi with some escs(electric speed controllers). These escs use Dshot (https://...
0
votes
1answer
136 views

Barcode Scanner using RX & TX (GPIO) PIN

Im having some issues reading from a barcode scanner module.. The scanner works just fine if it is used with a USB adapter, my goal is to use the RX & TX GPIO of my RPi to control it. What I am ...
0
votes
1answer
444 views

Lego EV3 infrared sensor to raspberry pi 3 direct connection via UART?

I connected this sensor with raspberry via UART( I have found that this IR sensor is one of few Lego sensors that connects via UART), and make serial_read and serial_write python scripts, just to test ...
2
votes
1answer
79 views

Need advice for connecting multiple arduinos to raspberry pi

I have a project in hand where I need to connect 5 arduinos as slaves to Raspberry Pi. Load Cells, Reed Switch, Solenoid lock will be connected to each of the arduino. The arduinos need to send the ...
1
vote
0answers
24 views

New to Pi I need to connect a device via serial communication, how do I teach myself?

I've been asked to connect and control a finger-sensing device to a Raspberry PI. There is a protocol to respect called OSDP. It supposes a serial connection on top of RS485. I'm a seasoned C/C++ ...
0
votes
2answers
44 views

txd and rxd pins with same numbers at the end of name

So I was looking at alternate functions of the GPIO pins of the Raspberry Pi 3b+ and found that some GPIO pins do support txd and rxd alternate functions. However some are named txd0/rxd0 and some are ...
0
votes
2answers
216 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? ...
1
vote
1answer
109 views

Microstax GPS - fine then garble

I've bought a Microstax GPS unit which I'm using directly on my RPi 3 (no Microstax headerboard). I've got the unit connected correctly though I'm strangely seeing a few seconds of correctly formatted ...
1
vote
1answer
431 views

pymodbus on Raspberry Pi 3B and Energy Meter

Followed this thread on enabling the serial console on the Raspberry Pi 3B. Checked the functionality using this code: dmesg | grep tty Which produced these results: ... console [tty1] enabled ......