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.

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

Simulate Shift Register on AVR (Configurable Logic/Timers?)

Recently I set up two MCUs (ATtiny1616) to perform basic serial communication using shift registers I made myself. simulate this circuit – Schematic created using CircuitLab Here is the logic ...
2
votes
1answer
74 views

Complete synchronous USART implementation [closed]

I've been studying about USARTs and I haven't seen a consensus on synchronous USART implementation among MCU producers. First of all, there are transmit and receiver clock lines on some serial ...
3
votes
3answers
137 views

How far can 3.3V UART go at 38400 baud?

I'm developing a set of boards that will all be listening to a single 3.3V 38400 baud UART (single TX device, my boards all listen to this line, no "RX" line). They are designed such that there are ...
8
votes
2answers
343 views

Can an SPI slave start a transmission in full-duplex mode?

As far as I know, SPI transmission for an SPI slave works like below: Master selects a slave using SS pin Master and slave send data to each other simultaneously Master starts clock and data ...
1
vote
1answer
80 views

How to decipher hex code for time data on an older serial port device

I’m using an old Draeger PAC III sensor to measure gas concentrations, with the goal of remotely transmitting the data via Arduino. Accordingly, I cannot use the proprietary software to output the ...
-1
votes
0answers
38 views

Improving rs232 serial quality with switchbox [closed]

I made a system in which the PC communicates to two hardware devices. Here's an image: One hardware device (top) is a special computer I made with a wireless serial connection and a special ...
0
votes
0answers
41 views

Writing Flash Memory Serially

I am looking into writing data onto some Flash memory serially, the requirement is to replace the old parallel programmer with a serial based programmer example Cheetah SPI Host Adapter. The Flash ...
0
votes
2answers
55 views

What are some good replacement ICs for DIP UARTs? [closed]

Recently, I have been developing an SBC based on the Zilog Z80 microprocessor. Since my first design, a serial connection has been essential for the board to communicate with a PC or terminal. For ...
0
votes
2answers
58 views

Can heavy processes running in background cause lag in arduino's serial port communication with a computer?

I have a Ubuntu 16.04 machine talking to a Uno board. This arduino board is sending 100 chars of line at baud rate of 115200 as fast as possible. Usually I get a line every 7ms to 10 ms (I am going to ...
0
votes
1answer
55 views

How to do Bidirectional multiplex switch signal over two wires?

I'm trying to remote control the doors in my stand-alone garage over two wires. There's three operate switches in the house, and three SPDT position switches on the doors. I think I want to end up ...
0
votes
1answer
50 views

Will SN74HC245N transceiver support TTL RX when blocked?

I'm actually designing a system with: ~10 "Master" boards that transmit data from slaves boards to a RS485 network 4 "Slave" boards per master one, connected trough a 3 pin jack (5V, GND and half-...
1
vote
1answer
73 views

What type of printer port is this?

I just got a currency discriminator (Carnation CR1500) that can be connected to a receipt printer. There is a modular jack on the back of the machine, but I don't know what kind of cable it needs. It ...
0
votes
2answers
107 views

RS-232 to I2C communication [closed]

I'm trying to establish communication between two boards, one of which has an RS232 output and the other with an I2C input. I've looked for adapters online and the only ones I've found seem to be ...
0
votes
1answer
48 views

Comparing MAX3232 vs MAX232 for line length

Which parameter in the datasheets of the line drivers MAX3232 and MAX232 can tell about the maximum length of the line for their correct operation if all else is same for the two circuits, that is ...
1
vote
0answers
29 views

PCBA Upgrade help - best route for processor upgrade

I have a PCBA currently which: Runs a Linux Kernel Communicates through 4 RS232 serial poets Communicates through Ethernet port It currently uses an AM335x processor, which I am finding is not ...
0
votes
2answers
60 views

In serial communication, is the RX pin pulled high by default?

I would like to establish one way uart serial communication between an Arduino 5V and an ESP32 3.3V module. The communication would be ESP32 TX pin ---> Arduino RX pin I wouldn't use the second serial ...
0
votes
0answers
20 views

How to use SPI serial interface with ATSAMD21G18?

Like the title suggests, I have a ATSAMD21G18 microcontroller that I want to interface with a LTC6803-4 chip, but I'm not sure how to set up the SPI bus on the microcontroller, and the datasheet ...
0
votes
1answer
76 views

PIC18F26J50: how to use printf in C18

I'm trying to use the printf family of functions in C18 for a PIC18F26J50. In my system, the output should go through the UART and show up in RealTerm. Here is my ...
0
votes
0answers
37 views

MEGA2560 only starts program after pressing RESET button multiple times

I am working on a program where I am controlling an MP3 player by using UART between my MEGA2560 and the MP3 player. The MEGA2560 sends serial commands to the MP3 player when external interrupts are ...
0
votes
1answer
102 views

Connector Identification on Instrument

I have a piece of instrument made around 2000 with a connector to computer that I cannot recognize. Can someone help me out? It is a 20-pin connector, with 10 pins on each row. Pictures are here: ...
0
votes
1answer
47 views

USB to Serial Disappears from Windows 7 Device Manager when Tx of board connects to Rx of usb-to-serial converter

I have two different usb to serial converters. Both have 5 pins with 3v3, txd, rxd, gnd, 5v. In the past I have used them to connect to raspberry pis and arduinos successfully. I have a board ...
0
votes
3answers
77 views

Implementing Honeywell IMU

Want to start by saying I'm a mechanical/aerospace engineer, and I'm fairly out of my depth here. My current project is on a load-testing rig. Ultimately, it will use a Honeywell HG1120 IMU to give ...
1
vote
4answers
109 views

Is it possible to use a DPDT switch to swap 2 inputs and 2 outputs?

I want to create a passive device with two MIDI inputs and two MIDI outputs, with a switch that has two states. In the first state, input 1 is connected to output 1, and input 2 is connected to output ...
4
votes
2answers
169 views

RS232 Unusual “Framing Error”

I have an old piece of instrument that suppose to connect with a Windows XP machine. I keep getting "Framing Error" messages on the instrument panel while the PC side shows that the instrument could ...
0
votes
0answers
44 views

Long-Distance Multi-Slave Communication

I am currently trying to connect many serial slave devices to my Arduino device over a 14 meter distance. I am looking to have slave-to-master communication. These devices include: 3 BME280 ...
0
votes
1answer
66 views

Duplicate a FTDI FT232R usb->serial cable

I communicate with a serial device using a FTDI FT232R usb -> serial cable created by the manufacturer of the device. Everything is ok I can communicate with the device. Now I have another cable, ...
0
votes
0answers
38 views

Multiple sensors on a single serial port [duplicate]

I want to use a single serial UART port on an mcu to communicate with two different sensors. I have connected both the sensors' TX lines together to mcu's RX line and vice versa. I am switching the ...
0
votes
2answers
38 views

1-wire differentiate read from write

I've been reading documentation on 1-wire and I think I'm having a brainfart. How does the slave differentiate a read slot from a write slot? reference: https://www.maximintegrated.com/en/app-notes/...
0
votes
1answer
42 views

Serial Communication Between Android and Attiny85

I am planning to build a sensor module for smartphone using Attiny 85 as its microcontroller. The sensor module will have a USB type A and to connect to the smartphone, OTG is required. Serial ...
0
votes
1answer
73 views

Serial port reading: data format unclear

I am trying to read serial data from this OEM barcode scanner module: https://www.barcodescannermodule.com/sale-11330019-lv3085-mini-barcode-scanner-module-usb-ttl232-interface-for-pdas-tablets.html ...
0
votes
0answers
48 views

CORTEX-M LPCOPEN USB-VCOM basics - proper way to build a simple FSM

I'm working on a project involving the LPC4370 mcu (LPC link 2 eval board) and Matlab. I need my embedded code to be user-reconfigurable from matlab: the user sends a command, the mcu replies. I'm ...
0
votes
0answers
20 views

Smart Charger (Tenergy TB-6AC) UART/USB interface

I have an old smart charger (Tenergy TB-6AC) which boasts the ability to interface with my computer. Upon further research, I have found that the software is no longer supported and no where to be ...
0
votes
1answer
59 views

What is the best way to combine multiple batteries (flooded lead acid)?

I wish to know the best way to connect four 12V 150Ah lead acid batteries to make it 24V 150Ah battery bank. I currently have connected 1 and 2 and 3 and 4 serially to make two 24V 150Ah volt banks, ...
1
vote
1answer
72 views

MAX485 controlling output voltage

I'm trying to use a MAX485 module to interface a RS-485 domotic bus, when I use the oscilloscope I see that the original bus signals (A and B) are between 1.9 V high and -2.250 V low (4.15 V amplitude,...
0
votes
3answers
82 views

Proper resistor(s) for limiting LED brightness

I have an LED powered by a serial(Rs-232) port on my PVR. The light is connected to the DTR pin through a 1k\$\Omega\$ resistor. It is set up this way in accordance with the instructions for the ...
1
vote
0answers
71 views

How can I estimate the minimum baudrate for a given bitrate?

My circuit performs data acquisition at 250 samples/s, 24 bits/sample and transmit this information to the local host (PC) through a bluetooth module that implements the UART protocol. As far as I ...
0
votes
0answers
44 views

Bonding DC Minus to Ground with Resistor for Remote Power?

Layout: I have a system that has 3 serial networks that run a variable length with one central processor talking to multiple endpoints via Modbus RTU, Canbus, and another rs485 that talks a protocol ...
0
votes
0answers
31 views

generate log .txt file on PC for arduino serial terminal log (send and receive commands) [duplicate]

I am trying to generate a .txt file on my Windows 10 PC of Arduino serial terminal data. I am not using SD card on Arduino Mega board just need to send commands to Arduino baord from serial terminal ...
0
votes
0answers
40 views

No data being displayed from ADC0804 in program using FT232RL

I'm attempting to read analogue voltage from a potentiometer by converting it into digital using ADC0804 and then passing the data onto y pc using FT232RL. As it stands the ADC0804 circuit is working ...
6
votes
4answers
2k views

Can a USB port passively 'listen only'?

I have a small dedicated controller built around an Arduino that accepts commands from a PC over USB (serial). The communication is one-way -- the controller never sends data back to the PC. Now I ...
1
vote
1answer
58 views

Protecting RS-232 from overvoltages

I am using Some arduinos (5V Pro-Mini, but planing to move to actual ATMEGA chip) over a distance of few metres. These are connected using standard Alarm cable (I had problems with Ethernet cable and ...
0
votes
1answer
118 views

How to monitor one wire “kind of” protocol

In the current network, there's 1 master device, which gathers data from over 20 devices. Nameplate says the baud rate is 2400. In the bus cable there's one data wire, 12V and GND. A friend of mine ...
3
votes
1answer
168 views

Reverse-engineering RS-485 communication

I've been trying to reverse engineer the communications protocol used by my home domotics, which I was able to determine uses a RS-485 implementation. I'm using a USB RS-485 serial dongle and an ...
0
votes
0answers
53 views

connecting three batteries together

I have a scenario of connecting three batteries together. Two are 12V 80 AH and one is 12V 150AH . All are C20. I wish to make it a 24V system of 150AH by connecting the two 80AHs in parallel which ...
0
votes
1answer
52 views

J1708 (open collector RS485) at higher baud rates than 9600 bps?

I have here a PCB which has a kind of "open collector" RS-485, known as J1708 (schematic attached). The default baud rate is 9600 bps and there is no terminators, J1708-TX is a 3.3V signal. I would ...
0
votes
1answer
107 views

Serial line switching through a transistor

I want to switch my RS-232 TX pin.For this I am using NPN transistor in between the TX line in such a way that the collector terminal is connected to controller side and Emitter to external side. ...
0
votes
1answer
53 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
33 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
86 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
36 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?