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
0 votes
1 answer
174 views

Are pins 0 and 1 (Rx and Tx) parallel with the USB jack? Can I connect another USB jack th 0 and 1 and use it to upload sketches?

I have a compact weatherproof enclosure and the onboard USB jack of my Mega is close to the edge. I didn't want to add a bulky weatherproof USB jack, so I'd like to just leave a female USB pigtail ...
LegitimateWorkUser's user avatar
0 votes
1 answer
3k views

when i compile this code it always 'sendCommand' was not declare in this scope..plzz help

#include <SoftwareSerial.h> #define DEBUG true SoftwareSerial esp8266(10, 11); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); //for ...
Wyeth Gamba's user avatar
0 votes
1 answer
927 views

Does SoftwareSerial and the servo library produce interrupt conflicts?

I'm planning a project that will involve multiple serial ports and the Arduino servo library. I have heard that this may cause interrupt conflicts. Are there any simple solutions to this
user avatar
0 votes
3 answers
18k views

Simultaneously reading data from multiple serial ports

I have three sensors latched on to three different Arduino devices. The respective Arduino devices are connected on to an Arduino Mega on Serial1, Serial2 and Serial3. The data from each device ...
dada's user avatar
  • 127
0 votes
1 answer
798 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 ...
ThermoRestart's user avatar
0 votes
3 answers
2k views

Why am I always getting 48 with serial communication?

So I want to send some data from Matlab to Arduino. To verify that I am getting the correct data I am sending the data back to Matlab (since I get errors if I open the serial monitor, if there's an ...
Aequitas's user avatar
  • 101
0 votes
3 answers
724 views

Can Serial be safely used in an SPI interrupt routine

I have anecdotal experience that using Serial.print inside a slave's SPI interrupt routine (ISR) causes issues with transmission. It also seems that interrupts may be called more than once before the ...
qwr's user avatar
  • 159
0 votes
1 answer
254 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++){ ...
Brethlosze's user avatar
-1 votes
2 answers
6k views

Serial Monitor not properly interpreting data from my NodeMCU V3

I've just received several LoLin NodeMCUs from a 'cheap Chinese ebay vendor'. They're working well except for the fact that I'm getting garbage in the Arduino IDE Serial monitor. I am able to: Load ...
Bob Johnson's user avatar
-1 votes
1 answer
2k views

transmit a sequence of bit using arduino uno [closed]

How do i code to transmit a sequence of bit using arduino uno?My project is about a transmitter and a receiver.Arduino as the transmitter and an application as the receiver.Light sensor will detect ...
Nyssa's user avatar
  • 15
-1 votes
1 answer
809 views

Serial communication not working between two Arduinos unless connected to computer

I have a robot with an Arduino Mega that gets data from a bluetooth module and sends it to an Arduino Leonardo to activate some functions. It all works amazing but only if the boards are connected to ...
user2864959's user avatar
-1 votes
1 answer
39 views

How can I distinguish values sent from Arduino [closed]

Having in my visual basic app something like: private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e) { *whatever* value = serialPort1.Read*whatever*(); } ...
Keka Bron's user avatar
  • 113
-1 votes
1 answer
23k views

How to flush the input serial buffer in Arduino?

I am communicating with the esp8266 WiFi module using Arduino. The module returns GET requests from other clients. They will be of the form GET /101011 HTTP/1.1\r\nHost... I wish to extract only ...
Ray's user avatar
  • 1
-2 votes
2 answers
1k views

Arduino Uno R3 not recognized by Arduino IDE on Ubuntu 21.04

Now I've been pulling my hair for two days over this one. I've tried everything. I've turned every stone, looked at every search result, and every Arduino Forums thread. The problem is that Arduino ...
Tozzart's user avatar
  • 101
-2 votes
1 answer
24k views

how to use strstr() in serial communication?

I have a SIM900 module and Arduino, both are working fine. In my previous programs I have use strstr() command to find specific word from a string but they were constants and pre defined in the ...
pra's user avatar
  • 7
-3 votes
1 answer
99 views

SoftwareSerial and HardwareSerial lost data

I need two Serial ports. One port is some sort of modified Software Serial, where I have to be listening constantly and send responses immediately if the port requires it. There is no XY problem ...
RenX's user avatar
  • 127

1 2 3
4