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
1answer
13 views

Trying to use Serial to communicate between two D1 Mini's

I'm trying to connect two D1 Mini's together as a POC. There is a switch on one and a 7 segment display on the other I have the pins setup from TX>RX and RX>TX First ESP8266: int SWITCH_PIN = D5;...
1
vote
1answer
30 views

Serial baud rate is less than specified

I want to read values of arduino pins and send it to PC via USB cable. The problem is that byte writing/reading happens at a rate which is ~10 times smaller than specifies baud rate of a serial port. ...
0
votes
0answers
13 views

ESP32 sending data of type uint16_t(or anything except for uint8_t and char*) over bluetooth(classic) serial

I'm making a custom gamepad with an ESP32 and the joystick output is read by an ADC using uint16_t analogRead(uint8_t pin);. Now that I want to send the data and receive and parse it, I ran into a ...
1
vote
0answers
29 views

Parse the data incoming from the buffer of Serial.readBytes()

I want to parse the data of the incoming buffer from the serial read bytes, but I don't really know how to get the data out of the array and save it to different variables. This is my code: void setup(...
1
vote
1answer
36 views

Can Arduino Due be programmed with both USB ports connected?

It seems, due SAM-BA (SAM Boot Assistant) inside ATSAM3X8E being listening to both Native USB and UART USB ports after a Reset for programming, allowing talking with SAM-BA, this time from your PC, ...
1
vote
0answers
29 views

Dealing with USB Unplugging?

The following code, debugs SerialUSB Native Port, plugged to a PC, and connected through a Terminal Monitor (such as Termite, with any bps, 8N1, RTS/CTS). At start, the ports seeks for communication, ...
1
vote
1answer
44 views

How to connect SIM7100A to Arduino?

I've been searching for how to connect a SIM7100A module to an Arduino (Uno or Mega), but I haven't been able to find any posts anywhere, nor videos nor any kind of documentation that shows how to do ...
0
votes
1answer
23 views

Run computation only on request over serial

An Arduino Nano is set up to perform A/D conversions and send results out over Serial. Currently the code structure is like loop() { delayUntilNextTargetTime(); measure(); ...
1
vote
1answer
50 views

Custom assert() implementation: not printing the error message

I am writing my own assert() macro on Arduino as shown below. When I run it from the main() it always works correctly (prints the message and gets into an infinite loop), however when I call it within ...
0
votes
1answer
50 views

how to communicate between Arduino Uno and ESP8266 via TX/RX Serial ports?

I am working on a project contains : ESP8266 as a WebServer that has a dashboard on web browser to control 8 relays connected to arduino. arduino uno board to control relays based on commands come ...
1
vote
1answer
56 views

Need HELP!! Serial communication has a very “Strange Problem”

I am working on building a serial command receiver. The idea is came from the boot loader. However, I got a very strange problem that I have no idea what could cause it. As the first screenshot show, ...
1
vote
0answers
22 views

arduino labview basic serial communication

I am trying to have a 2way serial communication between LabVIEW and Arduino. I tried to make a basic program to grasp the concept but it does not seem to work. Labview (2 int values) >> Arduino ...
2
votes
0answers
69 views

Arduino freezes if I do NOT do Serial.println() at least TWICE

Hii I have a big project, and found this when I tried to remove all the test code. To summarize: I have a variable that I use as a buffer for string operations called char internalbuffer[32] declared ...
1
vote
0answers
21 views

Cannot instantiate SLIPSerial object used in OSC/SLIPSerial classes for Arduino

Hey I'm trying to test out the CMAT/OSC library for Arduino and just want to get up and running sending SLIP encoded OSC messages. I've been able to observe the typical Serial monitor when sending OSC ...
1
vote
0answers
37 views

Help building a digital relay board [closed]

I am looking make my own version of theses digital relay/FET controllers so I can have more usability and matrixes. Switch pro sp9100 it looks like to me they send a serial signal to the controller ...
2
votes
1answer
46 views

Serial.println won't format DEC

This is weirding me out. So I wrote to the EEPROM and I would like to read from the address and format it in Base 10, err... Decimal. The normal number thingy that's not ASCII. But it keeps returning ...
3
votes
1answer
239 views

Getting all data of my JSON object from Serial.read() at once

I'm new to Arduino and I'm building a project that fetches data from a website (using ESP8266) and then transfers them to my Arduino UNO via serial port. Data coming from ESP8266 every 20s - [{"x&...
0
votes
2answers
38 views

Serial communication between Arduinos

I'm trying to send data from Arduino Mega to UNO. The master code sends characters 'x' and 'a' every half second to the slave Arduino UNO. Slave receives the characters and switches the state of the ...
1
vote
1answer
50 views

How can I run Hello World using Serial Monitor in Tinkercad Arduino simulator?

I want to achieve printing Hello World in the serial monitor using Tinkercad to simulate Arduino. Here is a very simple example code for real Arduino. void setup() { // put your setup code here, to ...
1
vote
1answer
27 views

Teensy 4.1 serial communication with 7N2 (7 databits no parity 2 stopbits)

I have ported a project from arduino Due to a teensy 4.1 In the project I read data from a sensor which speaks serial at 7 databits, no parity and 2 stopbits (no configurable). Now it seems that ...
1
vote
1answer
29 views

Arduino Mega reading from external sensor Issue

I have one external sensor and I want it to be connected with Arduino. The sensor came up with a usb cable and the pin out diagram is also given in the data sheet . When I simply connect the the cabe ...
0
votes
1answer
27 views

Struggling to understand how Bluetooth serial is related to USB on Arduino

I've recently acquired a Bluetooth module to attach to my Arduino Uno, but I'm trying to draw parallels to the standard method of communication that I'm familiar with, which seems to be just directly ...
2
votes
0answers
40 views

Unknown text printing on Serial Monitor [closed]

I want to use the Serial Monitor for some debugging, but it prints something else. Edit- This only happens if I use the attachInterrupt() function I tried another program that does not use interrupts ...
1
vote
0answers
39 views

communication between python and arduino

I have a python program that calculates an integer based on some parameters. I am not including the full code here because because it has a lot of deep learning stuff , but the relevant block is: #...
0
votes
1answer
38 views

Serial communication of strings

I used this simple code to understand the basics of serial communication. This achieves simple communication between the computer and arduino: String receive_buffer; void setup() { Serial.begin(9600)...
1
vote
0answers
37 views

Serial1.readString() on arduino mega returns an empty string

i have been trying to read text message from a sim module over serial1 of arduino mega, when i use the code msg = Serial1.readString(); the readString return an empty string i dont know if this is a ...
0
votes
1answer
44 views

Is it possible to read extended ASCII from the serial port?

My project requires that Serial.read() be able to accept extended ASCII characters (0x80 <=> 0xFF). For example, I would expect reading the character ¥ to yield the decimal value 157. Instead, ...
0
votes
1answer
33 views

Can i use PL2303 USB to TTL Serial Converter Module send keystrokes using Arduino nano?

If I can, which library to use (an example code will be great). Here is the module:
1
vote
1answer
45 views

Arduino Serial.readString() trouble

Hello everyone I write my code and have some troubles. When I write on in my serial monitor my buzzer condition wasn't changed. Can you help me realize the reason. I wrote code with int type and it ...
1
vote
1answer
274 views

Multiple Wire.write() not working for Arduino Nano I2C

Code for Master #include <Wire.h> void setup() { Wire.begin(); Serial.begin(9600); } void loop() { Wire.beginTransmission(9); Wire.write('c'); Serial....
0
votes
0answers
56 views

Arduino serial comm writing data in win32 program

I am passing in a data buffer from Arduino Uno to a C++ win32 program, but UNO is sending data too slowly. I am trying to send 128 character bytes but the win32 is receiving the bytes after like 92 ...
1
vote
2answers
90 views

if(Serial.available()>0) VS while(Serial.available()>0)

What's the low level difference between if(Serial.available() > 0) and while(Serial.available() > 0)? On what conditions would you choose one over the other? I was testing my codes on 4 daisy ...
-1
votes
2answers
44 views

Serial and I2C not working together

I have very peculier problem. When I run this code SSD1306 fails to initialize. Output at serial console is: 20:26:33.194 -> MPU6050 OLED demo 20:26:33.532 -> SSD1306 allocation failed #include &...
1
vote
0answers
72 views

Program only works with Serial.begin

My program only works when the following line is added: Serial.begin(9600); When this is disabled/removed the program no longer switches output state regular I'm using an Arduino Mega 2560. When the ...
0
votes
1answer
30 views

Purpose of LED indicator

I am using an arduino mega clone called the Funduino. I am developing a python based, tkinter application that will receive the serial data that arduino sends. However, i am witnessing some behavior ...
1
vote
0answers
81 views

Serial Connection - 3.3v to 5V MCU's

After asking How to connect Arduino & ESP8266, I tried to build such circuit. First I tried the code one 2 Nano's - to verify 2 MCU sending and receiving messages. After that, I started to build ...
0
votes
2answers
44 views

Serial Communication between ESP8266 and Arduino ( Sofware and Hardware )

I wish to connect an Arduino ( any of 328P family ) which its 5v, with ESP8266 (ESP-01, or even NodeMCU or Wemos D1 mini ) which is 3v3 logic. My goal is that ESP8266 will be in-charge of MQTT ...
1
vote
0answers
66 views

Read an integer using Serial.read() then read a string using Serial.readStringUntil(End-Char)

I have a sketch as follows: void loop() char End_Char = ‘\n’; if (Serial.available()) { aInt = Serial.read(); } switch (aInt) { case 1: // does a task that is ...
2
votes
1answer
38 views

What's the time out of Wire.begin()?

Here's a schematic of my project: The purpose is to make laptop work as keyboard for desktop PC. Nano uses Serial.read() to get keystrokes from laptop and forwards key press and release data to ...
2
votes
0answers
21 views

Initial setup print getting cut off from printing

I am writing a program in Python (using PySerial) that needs to read data from the Arduino quickly. For this reason I have set the serial timeout to 0.01 seconds. (Baud rate is 115k) If I don't set ...
0
votes
1answer
48 views

What does an Arduino do if the serial connection is closed on the other end?

I have a simple method that simply waits for an input, computes a response, and sends it: void loop() { if (Serial.available() > 0){ input = Serial.read(); if (input == 10){ ...
2
votes
0answers
23 views

Problem displaying data sent from Arduino Mega to Arduino Mrk1000 using serial communications

I've been doing a personal project. The idea of the bigger project is to feed my fish using a robot. My specific problem is that I would like to see some data from the various sensors that I will be ...
1
vote
1answer
69 views

Is it advisable to use Serial.write in an ISR when loop() routinely uses Serial.read?

I do not know much electronics. I have Nano v3 as I2C master, it reads 5-byte packets (of delimtted data) from PC's USB port, processes it and forwards it. I now need to implement a way to signal PC ...
1
vote
0answers
20 views

Unable to load the arduino sketch through ISCP/serial interface [closed]

I am unable to load the customized Arduino sketch from one board to another through Arduino ISP or bootloader. I am able to replicate the same through ISCP pins only if the slave board is connected to ...
1
vote
0answers
24 views

Resuming Serial Connection after sleep on Arduino M0

For debugging purposes I want my serial connection to resume after sleep. After running LowPower.sleep() from the <ArduinoLowPower.h> library, I don't get any new serial messages in the serial ...
1
vote
0answers
16 views

Serial Communication between Node-MCU and Arduino Mega [closed]

Sir mane ardunio mega 2560 my programing k hy jo k different sensor k value lake display karty hy aur sir ab my us value ko server jo k thingspeak hy aus p bajna chahta ho sir aus k leye mane esp8266 ...
2
votes
1answer
92 views

When it comes to UART to RS485 communication, what is the difference between the 'MAX485' and the 'HW-0519' module?

I recently found this model with the ID 'HW-0519' on it. It can be found online (HW-0519 in Aliexpress) and is sold for the purpose of converting UART to RS485 communication using Arduino devices. The ...
0
votes
2answers
49 views

Why echo “R” > /dev/ttyUSB0 doesn't work, but on the same PC Serial Monitor in Arduino IDE works?

I have a strange problem. I am running Ubuntu and NodeMCU si plugged into USB. I have very simple sketch running on it, when it reads letter "R" on serial, it turns ON relay. When I open ...
1
vote
0answers
24 views

Trouble using bluetooth module with the ESP32s2 feather board

I am trying to use an ESP32-S2 feather board with a separate bluetooth module, the Adafruit BLuefruit LE UART Friend. I previously used this bluetooth module with the Feather M0 Adalogger through UART ...
1
vote
1answer
25 views

Updating mysql data using SIM900 and Arduino

Thanks in advance for your kind support. I am not an expert but have little understanding of concepts and trying to integrate various things to get some useful projects for my purpose. I want to ...

1
2 3 4 5
41