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
0
votes
0answers
131 views

Sumprea SFM5020

Somebody help me to talk with suprema SFM5020, i read datasheet and some comands, init this code but don't work... import serial comport = serial.Serial('/dev/ttyAMA0', 9600) result = comport....
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',...
-1
votes
1answer
3k views

Jessie: How to deal with Python open of /dev/ttyACM0 not sending RST signal like it does with /dev/ttyUSB0

For my data loggers I use Python to open a serial port to Arduino Nano or Uno units that perform voltage and temperature measurements. In operation, the Python program reads data from the serial ...
1
vote
1answer
503 views

High speed bit bang GPIO reading

I'm trying to establish a UART communication link by means of bit-banging. For the TX part, I am using the pigpio lib to form a 1Mbaud wave of bits (gpioWaveAddSerial). I have checked it and it with ...
1
vote
0answers
2k views

How to connect to Raspberry Pi from linux PC with serial connection

I've bought a Raspberry Pi 3 model b and a new design of Berryclip which is supposed to include the USB to serial adapter as an additional microUSB port for the Raspberry. Now I've been told that the ...
0
votes
0answers
373 views

RP3 to Arduino - Why am I receiving unwanted bytes with pySerial?

I'm new to RP3, but fairly comfortable with Arduino. Maybe this is an easy one. I am trying to use pySerial to send a single byte from a Raspberry Pi 3 to an Arduino Mega 2560, like so: #RP3 python ...
0
votes
1answer
205 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 ...
0
votes
2answers
488 views

Problem with usb serial RPI -> Arduino

I'm working on a robot, more precisely on his head which have to track an human face. I'm using a RPI which will detect the face and then send to the Arduino the angles for both servomotors. I ...
2
votes
0answers
5k views

Want to Read COM Port Data and Write into TKinter Text Window

Using Python3, I want to read data on a serial port and display it into a tkinter GUI text window (not only the shell). Pretend I am trying to make the equivalent of a serial port character display. ...
0
votes
2answers
104 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 ...
2
votes
1answer
683 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
7k 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
175 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
249 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
667 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
951 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
266 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
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 ...
2
votes
1answer
1k 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 ...
6
votes
1answer
18k 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
434 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
444 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
387 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
6k 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
66 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
811 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
907 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
31k 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
268 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
2k 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
769 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
284 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
401 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
166 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
187 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
494 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 ...
2
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
491 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
886 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
265 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
203 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
3k 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
116 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 ...