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
2
votes
1answer
869 views

Dual output SPI using Raspberry Pi 3

I'm trying to make data acquisition device using TI ADS7851 and a Raspberry Pi 3, but ADS7851 has 2 data output.. I have no idea how to connect. ADS7851's serial output is: 1 sclk 1 /cs 2 sdo (sdo-a,...
2
votes
2answers
8k views

Can I use one of the RPI3 USB ports as a serial port?

I would like to send data from a RPI3 to another device through a standard USB cable. Is it possible to use one of the RPI3 USB ports as a serial port to that end? FYI I am already using /dev/ttyS0 ...
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 ...
0
votes
1answer
191 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://...
2
votes
2answers
290 views

Serial output not as expected

I have a SIM808 mod that i've connected via serial to a Pi3. With minicom or screen I communicate to the unit fine. From my code however I do not get the expected results. I used some code that I've ...
2
votes
1answer
763 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
1k views

UART Communication between Raspberry pi and Atmega32

Lately, I have been trying to serially communicate raspberry pi with Atmega32 using UART. The raspberry pi has to calculate some coordinate value and transmit it to Atmega which controls motors. I ...
0
votes
1answer
303 views

import serial using wrong version of PySerial

I have a Pi Zero that needs to use PySerial 3.4. When I run pip freeze, it says pyserial==3.4. However, in the actual program (Python 3.4.2), when I do import serial and print(serial.VERSION), it ...
5
votes
1answer
4k 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 ...
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 ...
7
votes
1answer
23k 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 ...
1
vote
1answer
478 views

Does the Beckhoff profibus coupler work with raspberry through serial?

Problem I have a Raspberry Pi A+ and I've heard that there's a serial on /dev/serial0, which is actually symlinked to /dev/ttyAMA0. What I would like to achieve is connect the beckhoff I/Os to the ...
1
vote
1answer
465 views

UART Connection between RPi and Arduino but RPi not RXing properly

I'm using WiringPi's library to read information from my Arduino on my Raspberry Pi 3b. The RPi is connected to the Arduino as so: RPi <-----> Arduino 8 (TX) <-> 17 (RX2) 10 (RX) <-> 16 (...
1
vote
1answer
4k views

Python script won't run on PHP

My goal is to write a string through the serial of my Raspberry Pi which will then be sent towards an Arduino and I'll read it through the Serial Monitor. I got my Python script working and it works ...
0
votes
1answer
425 views

PySerial suddenly stopped working

So yesterday after a bit of effort, I was able to get Pyserial 3.3 up and running on my Raspberry Pi 3 Model B. I even wrote some test code to make sure it worked properly, everything was fine. So I ...
1
vote
1answer
7k views

PySerial Error on Raspberry 3

So I am trying to setup the code on my Raspberry Pi 3 Model B so make it so it can read and write from a Serial Port. I installed Python 2 and 3 versions of PySerial with: sudo apt-get install ...
0
votes
3answers
2k views

How can I send ASCII codes from raspberry Pi 3 to a serial device (printer, motor controller etc.) by using RS232 (9 pin-COM Port)?

I want to learn how to send ASCII code from Raspberry Pi 3 to a serial device. Communication protocol of Serial device via RS232 (TX, RX pins). I was trying to connect from kermit as follows but I ...
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
2answers
968 views

Connect GSM module via serial0 and GPS via USB

I have a GPS module connected vía UART in the GPIO. Now I want to add a GSM module to my proyect but my TX RX pins are busy with the GPS. I saw an adapter to connect the GPS through USB with a UART ...
0
votes
1answer
2k views

Testing of data communication between the RPi3 bluetooth and HC05 BTM

I have connected my HC05 using TTL on my laptop. Another side I have turn on my onboard bluetooth in Raspberry pi3. I have python code for RPi3 communicate with my HC05. Pairing is done using HC05 ...
1
vote
0answers
991 views

Problems communicating with USB to Serial CP210x Rs-485 serial device not responding

I have a hardware setup with one lock controller Made in China, I have setted up everything as it was supposed to, trying to communicate with the device with Python Script, lsusb show me the device ...
2
votes
1answer
35k views

Send data from Python to Arduino through serial port

Should I keep Arduino IDE and Serial 9600 open to be able to recieve data sent from python code , Arduino is connected with pi 3 with serial communication ? tried to send data while the arduino IDE ...
0
votes
0answers
281 views

Pin Mode Error - Pi3, GPS GP-20U7 & Johnny-Five

New to this Pi world and what not but I know some JS and am using the Johnny-Five library. I used raspi-config to disable Serial/USB Console and Enabled Serial interface. I've also added enable_uart=...
3
votes
1answer
3k views

Problems with closing ports with pyserial on Raspberry Pi 3

I am using PySerial on a Raspberry Pi 3b to recieve data from an external bluetooth device (FireFly. I am able to get a connection to the device, and receive data. But when I close the connection via ...
2
votes
0answers
891 views

Serial port works with minicom but not echo and cat

Please help me with this problem I have 2 x raspberri pi zero W connected together with serial port 6-6 8-10 10-8 Minicom to minicom works fine Minicom to cat works fine echo to minicom works fine ...
1
vote
0answers
304 views

Transparent serial connection from PC with Arduino via USB

I am wondering if, or how, it is possible to access the Serial/COM connection with an Arduino via a Raspberry PI from a windows PC, in a transparent way, meaning, the PC connects to a serial port on ...
0
votes
1answer
463 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 ...
0
votes
1answer
181 views

Conversion from SPI for long distance communication

I'm using a number of MCP3208 ADCs to read from remotely-mounted analogue sensors. I'm planning on having a remote PCB which contains the power/ground rails, voltage dividers (where required), ...
0
votes
0answers
198 views

Is it possible to connect to an i2c device through a USB to RS485 serial converter cable?

I currently have a sensor attached to a USB to RS485 Serial converter cable which is plugged in to a raspberry pi. I've tried using the ftdi d2xx drivers to connect to it, but so far I can't read any ...
1
vote
2answers
548 views

Plain Text Serial over USB or GPIO(UART)

Forgive my lack of understanding in this area and if my title is incorrect. I am trying to control a Sabertooth motor driver board which I can connect my Raspberry Pi to in two ways. 1. USB to Micro ...
3
votes
1answer
2k 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
2answers
542 views

How do i send multiple serial values from an Arduino to a Pi which are to be used differently?

So I have 2 sensors connected to my Arduino and am sending the data through serial. I want the Pi to use both values differently. I am trying to make a gui where the values are displayed as such " ...
2
votes
2answers
1k views

how to read NMEA 1083 data over USB on Pi?

we're trying to read data from a digital yacht AISnet base station on a Pi. From what I've read, Digital Yacht has drivers for both osx and windows (but not linux for this unit) and their job is to ...
2
votes
1answer
274 views

Raspberry PI Zero W

I do not have any Raspberry Pi experience. I can connect to my Raspberry Pi Zero W with ssh and Remote Desktop. The Raspberry is connected to a motor controller called 'Sabertooth 2x32'. The ...
0
votes
1answer
1k views

Arduino sending serial data to Pi

I am using this code, to read a string of alphanumeric digits from an Arduino with a RFID sensor connected.: import serial ser = serial.Serial('/dev/ttyACM0',9600) s = [0] while True: ...
0
votes
2answers
1k views

Python Serial reading a USB Arduino, all I get is 0s

I am trying to read an ads1115 monitoring a current shunt so it's reading in millivolts. All I need is to be able to read the serial output from the arduino serial. When I bring the arduino up with ...
1
vote
0answers
2k views

How do you get an RFID reader to work with Raspberry Pi 3 and UWP?

everyone! This question is in relation to my Raspberry Pi 3 and Windows 10 IoT Core project. I intend to use an RFID Reader (short range only), along with an universal windows application, plugged to ...
0
votes
1answer
238 views

Hooking up a received serial command string to a bash script

I am a complete newbie...so out of my depth! I am trying to get a Pi3 to read an ASCI command string sent by a serial device and connect each string to it's matching a bash script located on the Pi. ...
0
votes
1answer
4k views

UART Send/Receive not working

I'm trying to get communication though UART with a freedom board working with Python3 on Raspberry 3 Jessie. This is my first attempt and I don't have any experience in that. The code of the freedom ...
1
vote
0answers
119 views

Raspi3 model b USB to Rs232 not working

I am trying to do a simple hexdump from the port /dev/ttyUSB0 which is connected to USB to rs232 connector. Hexdump and all my scripts worked with pi2 not with this one. Is there any particular ...
1
vote
1answer
4k views

No ttyUSB device created upon connection of Arduino Nano

Using Jessie 4.4 I'm trying to connect an Arduino Nano clone to my Raspberry via USB. The Arduino works flawlessly on another Linux box, on the RPi it just doesn't get assigned a serial port (no /dev/...
0
votes
2answers
10k views

Ser.write() function input

I am trying to to send a number from serial ports on my Pi 3 to a motor driver, (RoboLCaw) by using Python. I have read lots of articles on the internet about how to to do very simple number sending ...
0
votes
1answer
2k views

Error: serial device '/dev/ttyAMA0' does not exist

I'm newbie on Raspberry Pi.I have installed serial port using following conmand on raspian l os. sudo apt-get install python-serial I'm trying to access serial port communication on Raspberry Pi 3. ...
0
votes
1answer
2k views

Software serial send with PIGPIO sending garbage

I have been using the excellent PIGPIO (http://abyz.me.uk/rpi/pigpio/python.html) to communicate with two RFID readers. One is attached to the inbuilt UART while I have been using PIGPIO to connect ...
1
vote
0answers
656 views

Pyserial code hangs after a while

I have some code that parses serial data into chunks for Kivy to read. For some reason the code will work perfectly for a while and then stop. I think I need to clear the buffer/memory somewhere but ...
0
votes
0answers
255 views

Reading Different Channels Sequentially Using SPI

Background: I am trying to make transfer measurements from an ADC LTC1867 to my raspberry pi using SPI. I get it to work with one channel. The ADC has 8 channels, I have one channel connected to a 2....
1
vote
1answer
347 views

Using SPI on Raspberry PI gives error

I'm trying to read the output of an ADC chip LTC 1867 (need the high precision). I think I understand how it how works. Since it's output is 16 bit I need to send 2 8-bit words to it, the first word ...
1
vote
0answers
958 views

Talking to a FTDI (D2XX) device from a Raspberrypi AZero

I am making a project that uses a Raspberry pi zero (RPi-zero) being controlled by a PC through the UART login (USB TTL cable SSH access, like explained here), and I have used and enabled the USB ...
0
votes
1answer
2k views

Why is there no serial option under advanced? [closed]

I am trying to set up serial communication for my new PI 3. When I go to Raspi-Config to enable or disable serial under advanced options, it is not there. However, it is under the interface option. ...
0
votes
1answer
551 views

PC communication to Raspberry Pi

I am currently trying to setup a serial connection between my computer (windows 10) and my Raspberry Pi 3 via the Bluetooth connection. On windows I have managed to attribute COM4 to the Raspberry ...