Questions tagged [serial]

Serial communication is the standard USB connection between the Arduino and a computer with a standard USB A to B cable or through the TX/RX pins using a USB to serial converter. It can also refer to the serial library.

Filter by
Sorted by
Tagged with
1
vote
1answer
35 views

Serial Port fails with speeds greater than 19200

In Arduino Mega 2560 R3, properly selecting the Serial Monitor bauds, this code works with #define R 38400, but for some reason, not with #define R 19200 (?), #define R 38400 int rate=R; ...
0
votes
2answers
518 views

flash read err, 1000

I know this question has been asked multiple times but solutions giving there hasn't been working, I've got an esp32 soldered to my own designed PCB board with a UART to USB converter all that is ...
0
votes
0answers
97 views

how to send variables from arduino to processing?

I have to send four variables from the arduino to the processing. Unfortunately, I find nowhere code that works: / Arduino Code: int test1=4; int test2=5; int test3=6; int test4=7; void setup() { ...
1
vote
1answer
68 views

Reading from EEPROM and combining

I'm trying to read from the EEPROM and combine the information and send it out over SoftwareSerial using write() function but i'm getting the following error error: invalid operands of types 'const ...
0
votes
1answer
71 views

Serial communication PC to Arduino using C and send via NRF

I'm trying to communicate my PC with an Arduino Mega via serial and after send the message via NRF to another Arduino. But I don't know if the message is send correctly or if it even send the message....
0
votes
1answer
51 views

Getting issues while using SoftwareSerial

I am trying to read string send from esp8266 esp01 to Arduino mega. When I use normal Rx and Tx ports, it works properly but when i am initializing new serial port using SoftwareSerial then nothing is ...
0
votes
0answers
309 views

Using CoolTerm to receive Serial Data into a saveable file

Have functional code that reads data from sensors. Found that I need to use a terminal program to grab the data from the serial output using CoolTerm by Roger Meier. Wasn't able to test it with my ...
0
votes
1answer
88 views

No Data Received on Serial Port & Unable to DFU Reset. Advice?

Having a problem running my original code that I tested last week, which worked on multiple days last week. I tried to do a DFU reset and update the BootLoader, but it didn't work. I checked the ...
0
votes
2answers
35 views

serial port through Rx and Tx want work

my serial connection prints rubbish, but it systematic, so it's not just random as you see on image 1, any help would be appreciated other info: the first image of the serial monitor of COM6 is my ...
1
vote
1answer
261 views

Arduino communication protocol with python - beyond pyserial and Arduino example

TL;DR does someone know of a advance and reliable/redudent USB protocol for communicating between a raspberry pi and Arduino due (native port) I am trying to learn how to build a little robot which I ...
0
votes
0answers
53 views

having issues with arduino uno and max6675

I am trying to make closed loop a automatic temp controller to heat a thin metal plate using a buck converter, max6675 thermocouple module for temp sensing and a 250 watt halogen lamp. I am giving ...
1
vote
1answer
46 views

about how to share one External serial EEprom using two microcontrollers?

strong texti have Vector nav100 IMU sensor that sends data serially UART.I want to receive data from it using ATmega32 and then store data in AT24c1024 EEprom using I2C,then using another ATmega32 to ...
0
votes
1answer
61 views

HardwareSerial Indexing Array

How should I index HardwareSerial ports into a single array?. This compiles, but do not work. HardwareSerial Serials[]={Serial,Serial1,Serial2,Serial3}; void setup(){ for (int i=0;i<=3;i++){ ...
-2
votes
2answers
80 views

Arduino Mega reading same information that it's sending out via serial

So I have an Arduino Mega and I'm attempting serial communication with another device, and I ran into this weird issue. Let's say I use Serial1.write to send out hex A-F. If I read on that same port (...
2
votes
3answers
394 views

Why is Serial.write() slower than memcpy()?

I use Serial.write() to transmit 53 bytes to PC. For the time measurement I use micros() (before and after the write function). There is a delay of 1s after each transmission. The time of the Serial....
1
vote
1answer
62 views

about how to write data in the whole EEprom?

I have interfaced AT24c1024 EEprom with ATmega32.AT24c1024, which has 512 pages each of 256 bytes. There are two mode of writing (byte write and page write). In page write mode, it is capable of ...
1
vote
2answers
132 views

Serial.println() cuts off characters

I want to print a string together with number. My code is Serial.println("Test " + index++); (In setup() I initialized variable index to 0.) In Java it would output Test 0 Test 1 Test 2 Test 3 ... ...
-3
votes
1answer
51 views

Rate of serial communication (UART) of a sensor is faster than speed of processing of microcontroller

I have a Vector Nav VN100 IMU sensor that sends data serially UART. I have interfaced it with ATmega32. It receives data (ROLL angel) from the sensor and according to the ROLL angel, it controls a ...
0
votes
1answer
329 views

How to Run Stepper motor through Serial Communication

I am trying to run a Stepper motor from my c++ application, from which I sent commands but its not running not sure why would it not run, outside serial check it run but inside serial check it not run....
0
votes
0answers
21 views

Control Stepper degrees via Serial

Below the relevant parts of my code so far. I would like to send the number of Stepper degrees via Serial instead of using the random number. How can I send a serial message eg. SO, 300 and than use ...
0
votes
2answers
231 views

lcd.clear doesn't work with Serial.begin(9600) on Arduino Mega 2560

So I have a standard 16x2 LCD display with 16 pins. The LCD display works fine with every other aspect, however, the "lcd.clear" function doesn't work with "Serial.begin(ANY BAUD)". I have tried ...
0
votes
1answer
161 views

From Strings to int problem

I create applications for a computer that is to be used to control the robot arm. I wanted to make the first attempt to run the application not on the motor, but on the diode and check if it will ...
0
votes
2answers
97 views

Why the SoftwareSerial is not working properly on Arduino Pro Mini 3v3?

I uploaded regular pass through code for Serial and SoftwareSerial to communicate with my AT command based module. Writing to SoftwareSerial seems to be working but reading not. As I write "AT", the ...
0
votes
0answers
46 views

Trouble operating Servo and GPS at the same time

I have a problem using a servo and a GPS board at the same time on an Arduino Uno. For the servo, I use the following code: Servo myservo; // create servo object to control a servo // twelve servo ...
0
votes
0answers
278 views

Sending sensor data from Android app to arduino via USB Serial

I've searched this and have only found solutions for receiving data FROM Arduino TO android, I need the opposite. I basically need to figure out how to press a button from my android phone that will ...
0
votes
1answer
53 views

Serial communication between PC and Arduino using C

I'm trying to send some data to my arduino mega 2560 using serial communication. I'm using the exemple that I found here without success. Every site I read say that I can send data to the arduino ...
0
votes
1answer
156 views

What are the better options to the basic Arduino Serial Plotter?

Arduino Serial Plotter does not allow analysis or saving of data. What are the best serial data graphing software (preferably free, but i don't mind if it's paid as long as it's better than the bare-...
0
votes
1answer
115 views

Why map Arduino pins 2 and 3 to Rx and Tx instead of using the build in Rx and Tx pins?

In many examples I see the following: #include <SoftwareSerial.h> const byte rxPin = 2; const byte txPin = 3; // set up a new serial object SoftwareSerial mySerial (rxPin, txPin); what is ...
0
votes
0answers
97 views

Hardware/Software Serial communication abruptly stops (HC - 05 bluetooth module)

I'm trying to send the readings of 3 sensors simultaneously to my Android phone on an app I made using MIT App Inventor 2 via the HC-05 bluetooth module. For this, I'm sending a string like "20.067, ...
0
votes
1answer
37 views

Serial Enable Maxim RS485 Pin

If I want to use a MAXIM 485 for a RS485 communication, is there any option to include the Control DE and RE' pin in a natural manner in the code, instead changing the control pin everytime I made a ...
0
votes
0answers
33 views

NodeMCU v3 Serial Communication Issues

I am trying to communicate using XBee chips to a NodeMCU and for the NodeMCU to read that data and perform a function but I am having trouble with the NodeMCU not reading data from Serial. I have the ...
1
vote
0answers
89 views

Serial Communication between arduino and nodeMCU

I am trying to connect a nodeMCU to arduino mega using serial communication so that i can read data from firebase. I have put the following code on the NODEMCU. #include<SoftwareSerial.h> //...
0
votes
1answer
105 views

How to utilize SPI Serial bus on a 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
2answers
89 views

Parsing Arduino Receiving Strings

I'm currently using google geolocation to get location data to one nodemcu and sending it through serial to another Arduino. The serial command I'm getting right now is, 1.450187T103.824745 I'm ...
2
votes
2answers
439 views

What is the best delay to use between characters sent to the serial port

I have an Arduino Uno. It's role is to echo back what it receives. But if I send it a stream of ascii characters it starts to error after the first one. Occasionally it gets the second character ...
0
votes
1answer
18 views

Serial communication questions

I have to arduino's which are communicate using rx/tx. Arduino1 (A1) send data over serial to Arduino2 (A2). My questions are: 1 - If A1 do Serial.print each 50ms and A2 reading serial each 100ms ...
0
votes
0answers
236 views

Sending commands to an STM32 chip via UART with Arduino Pro Mini

I am having trouble making an Arduino Pro Mini send commands via USART to an STM32 chip. The serial communication protocol is currently set to 9600 baud rate with no flow control or stop bits. Is ...
1
vote
1answer
89 views

Dynamic Serial port selection and use without instantiating all Serialx objects

I have an arduino project that reads a config file from SD and then receives data on a serial port that is specifed in the config file. I therefore need to instantiate the Serial (Serial0), Serial1,.....
0
votes
1answer
154 views

Using Serial.write() to send a uint32_t send one byte x4 or send 4 bytes x1

In the IRremote library, IR signals are decoded and held in results.value. My project uses the NEC protocol which is 32 bits, so the IR code will always be 4 bytes. uint32_t dCodedIR; // // code ...
1
vote
0answers
444 views

HC-05 Bluetooth fails AT+LINK

I'm trying to get a HC-05 connected as master to a Bluetooth ELM327 OBD scanner. The HC-05 is accepting AT commands, no problem. This is the sequence I use: AT+RMAAD (Clear any paired devices) AT+...
0
votes
1answer
52 views

Remembering a colour

Hey guys I have a led grid. it's 8 sides that are addressable with the bytes '1' through '8'. (a Kinect is sending these bytes through processing) I have also creates three buttons in processing that ...
0
votes
0answers
44 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
278 views

sending string from Arduino to ESP8266 works on UNO but not Pro Mini

I have a project where I am getting sensor data and sending it over to an ESP8266-01 to send to ThingSpeak. After some work I got it to work. So like I real smart person I decided to replace the ...
0
votes
0answers
14 views

I am making bluetooth control car using uno [duplicate]

Arduino: 1.8.9 (Windows 7), Board: "Arduino/Genuino Uno" Sketch uses 2080 bytes (6%) of program storage space. Maximum is 32256 bytes. Global variables use 189 bytes (9%) of dynamic memory, leaving ...
0
votes
1answer
45 views

Arduino Mega not recognized on Raspberry Pi 3b+

I'm developing an interactive LED table for an university assignment that is being controlled by an Arduino Mega2560 which gets the information about which LEDs should be lit in which colour from a ...
0
votes
1answer
437 views

Arduino RS485 shield to RS485 temperature & humidity sensor

I’m try to get data from rs485 is not work please advise to me. 1. Try to connect PC usb485 to DY-MD02 is work. Send command “AUTO” or “READ” 2. Try to Arduino rs485 shield to DY-MD02 is not ...
2
votes
1answer
120 views

Arduino wrap or subclass print() to work with multiple Serial

I am writing an Arduino program that uses Bluetooth on Serial1 to print text to a Bluetooth terninal on an Android phone and also normal Serial to print text to the serial monitor on a laptop. I would ...
0
votes
1answer
55 views

Python Arduino Serial Communication Speed

Background : Im controlling serial manipulator using Arduino Uno with Servo Shield. Servo work at 20 ms, so i would like to send command atleast every 2.5ms. Command sent from PC. I send 8 bytes of ...
1
vote
1answer
69 views

Segmentation fault and huge SRAM need for Serial.println

I have written my own 'assert' since I want to use it for both Windows and Arduino. The class is called from many files (about 10). AssertUtils.h: #pragma once #define assert(expr) AssertUtils::...
0
votes
0answers
33 views

Arduino is no more writing Serial if i write before

Description: I have a code version where i only send data from Arduino to PC where i read data with PC. I want to add the possibility to send a command start or to stop the sending of data. This ...

1 2 3 4 5 36