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
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, ...
0
votes
2answers
126 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
2answers
837 views

Serial bi-directional (one-wire half-duplex) digispark device works however answers itselfs

I followed this guide to create an one wire bi-directional (debug) device for a Digispark (Attiny85): https://digistump.com/wiki/digispark/tutorials/debugging (see section Bi-directional Serial ...
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,...
3
votes
2answers
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/ ...
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
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 ...
2
votes
1answer
797 views

Explain why the NodeMCU auto-program circuit would be useful

I'm looking at the NodeMCU "auto-program" circuit but could not understand why it is there at all. From my point of view, this circuit enables open-collector outputs, but makes programming dependent ...
0
votes
1answer
251 views

Simpler code than bit banging to get multiple serial hardware working with 8051

I created a circuit like the following: I have sub-circuits that all take serial data as input and do miscellaneous processing with it. Most of the sub-circuits are just light displays. I want to ...
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
1k views

stm32f0 uart1 rx interrupt

I have stm32f030f4p6 Microcontroller and using iar Compiler , library cmsis , After confige Uart1 the RXNE , FE and CMF bits return 1 whereas not recieve or send was done if I dont set RXNE bit to 0 ...
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
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 ...
5
votes
2answers
2k views

GSM sim card extension cable

I have the problem that I need to locate the sim-card about 8 meters from the device in which it would normally be installed. As far as I am aware, the devices communicate with the sim card with a ...
2
votes
3answers
22k views

How to send string in serial communication in AVR-C

So as the title states, instead of sending a byte of information at a time, I would like to be able to send a whole string. What I tried to do was that I tried to put the user input in an array and ...
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. ...
3
votes
3answers
646 views

Doubts on Implementing a Simple Protocol for XBee Comms

A system that I'm developing will use XBee modules for a point to point connection between a micro-controller and a PC. Data will only be sent only in one direction -Micro to PC and at 10-20fps. The ...
4
votes
1answer
119 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
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?
0
votes
2answers
137 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 ...
4
votes
3answers
2k views

Reverse engineering old serial devices and cloning with Arduino

I have a piece of music equipment that uses a remote control. This remote control communicates bi-directionally with the main unit. It communicates over RS-422 protocol (mainly for the cable distance, ...
2
votes
0answers
571 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
228 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
1answer
39 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
573 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 ...
5
votes
3answers
7k views

XBee dropping packets and actual data rate lower than expected

I am transmitting continuously at 9600 bps using the default configurations for both my XBees XB24-B. The communication is one way only, the transmitter is connected to the ATMega328 UART and the ...
1
vote
2answers
131 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, ...
3
votes
2answers
2k views

Parallel Port - Voltage / Current required for input pin

I am developing a program to send and receive sigal to my circuit and pc. Actually I have to count the pulses or (frequency of high pulse) generated from a 555 timer IC in my circuit. When I connect a ...
1
vote
2answers
243 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
57 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
198 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 ...
1
vote
1answer
89 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 ...
0
votes
1answer
68 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
70 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 ...
37
votes
8answers
35k views

How to resolve I2C address clashes?

I want to connect multiple I2C slave devices to a micro controller all on the same set of pins but the I2C devices all share the same address. The addresses are fixed in the hardware. Is there any ...
0
votes
1answer
142 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 ...
2
votes
1answer
198 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 ...
10
votes
6answers
51k views

What is the difference between Ethernet and Serial communication?

All the mouse movements, USB connections and other PC peripherals such as printers etc. are what is called serial communication. One bit per time. So far so good. But when it comes to TCP protocol, ...
3
votes
4answers
710 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
216 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 ...