Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [serial]

In serial communication data is transmitted as a sequence in time. Main advantage: much less wires needed. Main disadvantage: Higher bandwidth for the same throughput.

0
votes
0answers
18 views

Send data to serial port using USBFS block PSOC 5LP

I have a script in Python to send data to serial port and receive the echo: ...
0
votes
1answer
49 views

Visualise a bit pattern

My objective is to send a bit pattern of 1000 bits from one microcontroller (PIC or Atmel) to another one using the SPI method. How can I visualize the bit pattern so I can find the errors of ...
0
votes
0answers
20 views

SMBus Address and BaudRate

Hello I need to communicate with some batteries ( BT-70791CK from BrenTronics). They use SMBus ver 1.1 for communication, but in datasheet of the batteries there is no information about the SMBus ...
0
votes
1answer
54 views

UART TO RS-232 convension

I am working on a project and I use several PIC18F26K83's for this project. For communication between PIC's I use UART. Now I also need to send data with RS232 to the user. As I have understood the ...
0
votes
0answers
32 views

How is it possible to program an ATTiny over USB without a USB to TTL chip?

I have been testing out my Digispark and the board has no USB to TTl converter chip and yet you can program it over USB. Is it possible to do this with an ATmega328p for example?
4
votes
1answer
101 views

How do USB to serial adapters work?

I'd like to know how a USB to serial adapter (such as the FTDI FT232RL chip) works. The way I think it does is the following: Picture a system composed of a MCU, a USB to serial adapter and the PC ...
0
votes
2answers
41 views

Maximum Switching Speed Chained 74HC595

I'm planning to use a set of daisy chained 74HC595s to control a set of 108 mosfets, 3 of them are geographically in the same area (couple of mm apart) and for the sake of modularity should each use ...
1
vote
0answers
82 views

Add serial interface to ST-link clone

I recently started studying STM32 microcontrollers (BluePill STM32F103 dev board + ST-link V2 clone). I was wondering if it is possible to add serial communication to ST-Link clone? From what I ...
0
votes
1answer
31 views

SMBus default Baudrate and Address

I am trying to communicate with some batteries that uses SMBus. In the documens of batteries it only specifies the SMBus version which is SMBus v1.1 and do not mention about addresses nor the baudrate ...
1
vote
3answers
109 views

Direct connection of UART serial port to USB type-C

in my project I have a USB type-C 3.1 2nd Generation (24 pins), which should provide 5V to a charge battery/battery system. In addition, there is a uC powered at 3,3V where the maximum voltage on GPIO ...
1
vote
2answers
78 views

Trouble getting USART working on STM32 (stm32f103c8t6)

I started working with with stm32f103c8t6 recently and I was able to set GPIO to input and output, however when I try to set USART it just does not work. I'm trying to write directly to registers, ...
1
vote
2answers
85 views

RS485 line protection diodes

Can anyone confirm the correctness of D27, D28 diode polarities or should they be in opposite direction? Please suggest an which diode is suitable for this purpose OR is it better to use a zener diode ...
0
votes
0answers
31 views

16 bit VISA Write in LABView

I am trying to communicate with a LIN sensor device via a PC COM port (I built a board that converts USB to UART and then UART to LIN). The board works and I wrote a simple Matlab script to grab data ...
0
votes
1answer
70 views

Using Multiple MLX90614 Sensors on Arduino Board

I've been trying to get something working for a project, getting 4 (just trying to get at least 2 working for the moment) MLX90614 IR sensors connected up to an Arduino UNO board. I've followed the ...
0
votes
1answer
41 views

Inverted serial output from PC

I'm sending some serial data (UART) from PC to an FPGA. I have implemented a serial protocol on an FPGA according to the usual description of the uart: low bit for start bit, high for stop bit and ...
0
votes
1answer
48 views

How to Update firmware of microcontroller using DALI lines of a DALI slave module?

I have developed a DALI slave module with PIC 16F18326 microcontroller. Now, I want to make a Bootloader for this PIC. But the problem is, I don't have a serial communication or USB connection with ...
0
votes
1answer
46 views

Serial port framing error

I'm new to pic and uart. Just trying out simple uart transmission. I'm using mplab IDE and coolterm for serial monitoring. I'm getting serial framing error. I also used PuTTY and it was printing junk ...
1
vote
1answer
77 views

How to send multiple command without using delay to serial port?

I am writing a serial communication program on LINUX to send command to PIC32 MCU. When I am sending two command one after another as given in program MCU will perform action on first one only and if ...
3
votes
4answers
526 views

UART sometimes missing first few characters on ATmega328P

I wrote some code for the ATmega328P, (Packaged in a module that clones the Arduino Nano). Normally when I send UART data from my computer to these micros, it is received just fine. However I have ...
0
votes
0answers
5 views

ESP-01 not working correctly when acting as AP as well as station

I am experiencing this potential problem with ESP-01S ESP8266 module. I am controlling it via Atmega328 micro-controller. Issue occurs when it is configured as both soft AP and a station and when ...
1
vote
2answers
77 views

How to disable arduino Hardware Serial Rx Interrupt Properly

Intro: I have an Arduino mega doing multiple tasks , from which A function Reads data from a sensor using SPI . Every like 10,000 read or something , i get 1 error bit in the SPI data . and I have ...
0
votes
1answer
43 views

SPI terminology confusion for project

I am working with the FET335xS-II OBC developed by Forlinx for a school project. On the data sheet, There is no indication of pins pertaining to MOSI and MISO but instead "data 0" and "data 1". I am a ...
1
vote
1answer
39 views

ATmega328P running on 3.3V using a CH340G as serial to USB interface

I'm trying to use a CH340G chip with an ATmega328P that is running on 3.3V to have a simple serial to USB interface. The available datasheets for this chip seem to be very minimal so I've tried ...
0
votes
1answer
61 views

PIC32MX UART Interrupt Not working

I am writing a program to send data from one microcontroller and receive the data using on another PIC32 microcontroller and display the received data on LCD. I am using UART2 of both PIC32MX to send ...
1
vote
2answers
30 views

No negative terminal in power supply

I'm working on a project that relies on the Roomba vaccum cleaner's reference document (shown below), there are two positive terminals and 2 ground terminals. I'd like to understand: Why there isn't ...
0
votes
2answers
76 views

Analog Potentiometer Output to USB Serial [closed]

I‘m working on a project which has several switches and potentiometers that will be used to control parameters in software via (e.g.) MIDI and would like to know how to get the pots set up without ...
1
vote
3answers
133 views

What is this connection of resistors? Parallel or serial?

How i can simplify this electric circuit?
1
vote
1answer
73 views

Arduino serial communication hacking

I recently bought a Chines massaging chair hoping i can intercept the serial communication between its wired remote and the chair itself, I've cut the wire and connect the Rxd and Txd of the chair to ...
0
votes
0answers
81 views

How does GSM Module store incoming SMS in its “SM” or “ME” memory?

I am using AI Thinker A7 GSM/GPRS/GPS Module demo v7.1.(The Rx, TX, GND pins of this module are connected to tx, rx, gnd pins of the prolific Rs232-TTL converter and a virtual com port is open in ...
0
votes
0answers
15 views

Checking HM-TRP radio adapter for initial data

I have several HM-TRP radio adapters (consisting of the HM-TRP chip with a female header connected to it) of the same version. I tested it in a mini circuit where the PC does direct I/O with the HM-...
0
votes
0answers
51 views

Serial communication between raspberry and laptop not giving right values

I want to communicate between a Raspberry Pi 3 model B and a laptop using a USB to RS-232 cable and this RS-232 to 3.3V TTL converter via the serial module in Python: GND is connected to board pin #6 ...
4
votes
1answer
153 views

Identify this open collector serial protcol

I'm trying to analyze the serial link between two devices, respectively a motor controller board and a Li-Po battery manager, which battery powers both devices. The application is a battery-powered ...
0
votes
2answers
32 views

Lower wattage of IR bulbs permanently

I have two 90w/12v infrared IR bulbs which is put into a r7s sockets. From thes socket goes in total four wires which is connected to our power supply. We have set two of the wires in serial so they ...
0
votes
1answer
37 views

Position of leds in the RX/TX portion of an arduino compatible

Given the following circuit , electrically speaking makes any difference the position of leds? I know R8 and R9 are used to allow the override of the RX/TX pins if any other device is connected, does ...
1
vote
1answer
64 views

Is the following USB connection possible: Host USB to converted to serial (FTDI) and then converted back to USB (FTDI)

I am trying to connect a host USB device on one board to an endpoint USB device on another board, but I am required to send the link between the two devices as a serial (UART) connection between the ...
0
votes
0answers
51 views

How to use 3.3 V FTDI Serial Cable with LeMaker Hikey 620 which has 1.8v UART signals

I have FTD Serial Cable TTL-232R-3V3 which operates on 3.3V. https://ftdi-uk.shop/collections/usb-cables-ttl/products/ttl-232r-3v3-2mm I was trying to use it on my Hikey LeMaker for an hour with no ...
1
vote
1answer
75 views

PIC32 receives/transmits improper data on serial port

I have referred http://microchipdeveloper.com/harmony:example-usart-dynamic-wf32 to configure the UART and send/receive data between PC(Putty) and my PIC32MZ. The demo program in the link receives ...
2
votes
1answer
119 views

Is there a standard describing the UART data frame protocol?

The "U" in "UART" stands for "Universal", but I'm having trouble finding any standard that describes the framing protocol that's used in UART; e.g. the start bit, stop bit, parity options, and baud ...
0
votes
2answers
150 views

Long distance (and I think low frequency) serial communication with Arduino [closed]

I need to implement a long distance (up to 15 kilometers) communication between some electronic devices. The devices is some boards on AVR chips with Arduino library and a Raspberry pi as the ...
0
votes
1answer
124 views

I2C driver for MSP432

I am trying to develop a I2C driver for MSP432. As of now, I am interfacing a accelerometer through USCI B2_ module on MSP432. The problem that I am facing is I am getting a NACK in the IFG register ...
0
votes
2answers
71 views

LIN to RS485 and back to LIN

I am currently communicating between two microcontrollers using a single pin and the LIN protocol over a short distance of 0.2m. Now I would like to extend the distance up to 5m by differentially ...
0
votes
1answer
38 views

Trying to read the data from an ASK RF transmitter

I'm trying to duplicate the operation of a simple RF remote control (for some remote power outlets). In the remote control there is an unmarked 8-pin microcontroller. I've worked out which pins are ...
0
votes
1answer
86 views

Bit rate of uart communication

I have a setup which communicates between PC(windows) and Atmega2560 using UART. On PC side I am using Pyserial. From the PC I am sending a paragraph of text byte-by-byte to Atmega2560. The UART ...
1
vote
1answer
134 views

FTDI USB to serial communication issue

I am using an FTDI USB to Serial cable to read the startup log of a board. The FTDI cable is not reading the correct information coming from the board. Here is some of the information that I am seeing ...
0
votes
0answers
44 views

minimalist serial port addon to a basic 8052

Currently I have two microcontrollers connected to each other so that I have two serial ports. One to the PC and one to a wireless radio module. Now I'm considering replacing one microcontroller with ...
0
votes
3answers
108 views

What exactly are low speed devices? [closed]

The definition of I2C is - "A multi-master multi-slave serial bus used for communication between low-speed devices". However, I have been searching the web for a concrete explanation for this but ...
0
votes
1answer
43 views

Weird level shifting issue only when connected to IC chip

I'm connected to a 5v heat-pump to control it via serial. I'm using a level shifter to shift between the two as the heatpump is 5v and the D1 is 3.3v shown in the scope images below. My issue is I can'...
4
votes
3answers
587 views

Is the ATMEGA328P's serial baud rate quantised?

I'm using an ATMEGA328p, running from its internal oscillator (divided by 8 = 1MHz). I've (roughly) measured the oscillator output, using my Salae logic analyser, as ranging from 960KHz to 1000KHz, ...
3
votes
1answer
1k views

Why do we need bit scrambling when using 8b/10b?

I want to ask the opposite of this question. Here are the purpose of the bit scramblers: Encrypt, but LFSR (and other used) bit-scramblers are breakable. Clock recovery, but it is done by the 8b/ ...
2
votes
0answers
46 views

Offset QPSK Frame sync markers

What actual protocols exist out there that employ Offset Quadrature Phase-Shift Keying (OQPSK)? What do they use for the frame synchronization marker (or "preamble" or "sync word" or "flag")? Do ...