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
2
votes
3answers
24k 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
133 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
388 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
660 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
309 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
54 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
77 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
178 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
45 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
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, ...
0
votes
1answer
562 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
50 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
2k 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
440 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, ...
4
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 ...
2
votes
2answers
696 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
105 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
441 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
145 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
163 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 ...
41
votes
8answers
41k 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
490 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
297 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 ...
11
votes
6answers
59k 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
1k 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 ...
1
vote
2answers
640 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
2answers
2k views

FET level shifter for serial does not work with inline resistor for safety

For a voltage change on a serial line I'm using a common level shifter design which uses a FET (BSS138 in this case) as so: I have two of these - one for RX and one for TX. I should add that I'm ...
4
votes
1answer
180 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 ...
1
vote
3answers
2k views

Is my ESP8266 faulty? Not turning on

I got an ESP-12Q ESP8266 module and I am trying to upload Arduino firmware on it. But I can't even get any response from the module at all. No LEDs anywhere are on, I don't even know if the thing is ...
0
votes
1answer
55 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 ...
2
votes
1answer
335 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
2answers
135 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
2answers
33 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 ...
1
vote
1answer
177 views

Arduino Fails to Program Custom NRF52, But Has Worked In Past

Background: I have a custom board that consists of two PCBs connected via a 100mm Picoblade connector. The "Aux" board has a USB port, and CP2102N Serial=>USB converter. The "Main" board has an NRF52 ...
0
votes
2answers
176 views

Protocol used by IR LED reciever (50W driver)

I have a 50W LED driver with a IR remote control that i want to controll with a microcontroller. I hooked it up to my oscilloscope to try to decipher the data sent between the IR reciever and the ...
1
vote
3answers
140 views

What is this connection of resistors? Parallel or serial?

How i can simplify this electric circuit?
1
vote
1answer
150 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 ...
2
votes
1answer
13k views

How to change Bluetooth music receiver's name and other settings using a serial converter (or otherwise) [closed]

I'm rather new to electronics but I have a fundamental grasp of the general concepts. I'm not very fluent, however, on the workings of specific devices as of yet (internally, I mean; inside their ...
-1
votes
3answers
192 views

Control WR and OE lines of parallel SRAM with only 2 wires while loading data with 8

This is my circuit in relevance to my question: I apologize for the messy wiring, but I did it that way to make my PCB production substantially easier. My problem is I only have 10 wires available ...
0
votes
0answers
215 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
58 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 ...
0
votes
2answers
35 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
62 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
95 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
83 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 ...
0
votes
2answers
2k views

Is it possible to talk with Attiny85 via serial interface?

Alright, I know this question is pretty silly, but I have stumbled upon different posts saying opposing things. So to make a conclusion, does anyone knows for sure if it's possible to send data via ...
1
vote
1answer
247 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 ...
-4
votes
4answers
81k views

Baud rate calculation [closed]

I have an exam tomorrow and I'm confused on the following question, that may be asked in the exam: One byte data with parity bit by using asynchronous serial transmission with two stop bits. For 2K-...
0
votes
2answers
869 views

Screened serial cable - Connect screen to ground pin

In my company I'm often using RS232 connections between PCs and old peripherals (sub-D 9 pin). I'm only needing RX & TX signals, so I usually use audio-like coaxial stereo cable, to keep it simple....

1
3 4
5
6 7
23