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
2 answers
247 views

Arduino Serial Monitor Input 3DES Encryption

I am trying to 3DES encryption using Serial Read, Found this 3DES Sample code in Github, #include <DES.h> DES des; void setup() { Serial.begin(9600); Serial.println("Hello!"); } ...
VinRocka's user avatar
  • 145
1 vote
1 answer
324 views

How do I control a servo with python through an Arduino

I'm trying to make it so I can control 2 servos with data that I get from a python script that tracks my face. I have found 2 libraries that do this:pySerial and pyfirmata. Is one superior to the ...
WaddleBoy's user avatar
5 votes
1 answer
2k views

Serial monitor can't display float and double values with absolute greater than 4294967040=2^32-2^8

I have the following sketch: void setup() {} void loop() { float af = 4294967040.0; float bf = 4294967240.0; double ad = 4294967040.0; double bd = 4294967040.00001; Serial.println(af); ...
LukasFun's user avatar
  • 295
0 votes
1 answer
386 views

Arduino nano BLE sense Serial port Suddenly stopped working

Last week I got my new Arduino nanao ble sense. Today I was executing a code on it which reads every sensor data on it and print it on serial monitor. I changed some parameters in my code and upload ...
Tauhid Khan 's user avatar
1 vote
0 answers
45 views

Serial communication detect

guys. I am workin on a project. I have two channel for Serial RS232 communication. Main and Stand-By channel. If Main channel has some problem and, cannot communicate for 15 seconds then I want to ...
A Alptekin's user avatar
1 vote
1 answer
288 views

ESP8266-01 module "AT" command testing not responding

Firstly I have connected the Arduino UNo to Esp8266-01 Module and uploaded the Simple Blink Sketch using Arduino Uno and It responded correctly as in the Blue Led Light on Esp8266-01 was blinking ...
Guruveer Singh's user avatar
1 vote
1 answer
313 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;...
Saars's user avatar
  • 31
1 vote
0 answers
754 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 ...
Rajat Mondal's user avatar
0 votes
2 answers
3k views

How to use Serial2 on Raspberry Pi Pico

I want to use Serial1 and Serial2 in a sketch in Arduino IDE for a Raspberry pi pico. My goal is to communicate from the pico with two other Arduino boards. I use Arduino 1.8.9 and the official board ...
mvermand's user avatar
  • 379
1 vote
0 answers
621 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(...
alessandromrc's user avatar
1 vote
1 answer
176 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, ...
Brethlosze's user avatar
1 vote
1 answer
176 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, ...
Brethlosze's user avatar
1 vote
1 answer
113 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 ...
MaRe356's user avatar
  • 21
0 votes
1 answer
26 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(); ...
Harald's user avatar
  • 133
1 vote
1 answer
412 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 ...
Jurc192's user avatar
  • 73
1 vote
1 answer
91 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, ...
Lu Chih Yuan's user avatar
1 vote
0 answers
1k 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 ...
trex98's user avatar
  • 11
2 votes
0 answers
137 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 ...
Qubo's user avatar
  • 31
1 vote
0 answers
147 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 ...
d.bonbon's user avatar
2 votes
1 answer
281 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 ...
Joshua Olalekan's user avatar
3 votes
1 answer
5k 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&...
krystof18's user avatar
  • 315
0 votes
2 answers
81 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 ...
Shyam3089's user avatar
  • 165
1 vote
1 answer
2k 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 ...
Kouichi C. Nakamura's user avatar
1 vote
1 answer
365 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 ...
Sven Onderbeke's user avatar
1 vote
1 answer
104 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 ...
Lawliet's user avatar
  • 183
0 votes
1 answer
606 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 ...
Daneolog's user avatar
  • 137
2 votes
0 answers
125 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 ...
Coder9390's user avatar
  • 472
0 votes
1 answer
1k 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)...
satan 29's user avatar
  • 169
0 votes
1 answer
818 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, ...
Zane Claes's user avatar
0 votes
1 answer
264 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:
WHITE_DEVIL's user avatar
1 vote
1 answer
2k 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 ...
Shushan Abovyan's user avatar
1 vote
1 answer
1k 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....
Akshay's user avatar
  • 11
2 votes
2 answers
8k 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 ...
Kuan's user avatar
  • 71
0 votes
2 answers
504 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 &...
Pankaj's user avatar
  • 21
1 vote
0 answers
90 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 ...
Magnus's user avatar
  • 31
1 vote
2 answers
156 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 ...
user1584421's user avatar
  • 1,395
1 vote
0 answers
359 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 ...
guyd's user avatar
  • 1,033
0 votes
2 answers
928 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 ...
guyd's user avatar
  • 1,033
2 votes
1 answer
147 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 ...
chocolate's user avatar
2 votes
0 answers
46 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 ...
ngpop's user avatar
  • 21
0 votes
1 answer
296 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){ ...
polortiz4's user avatar
  • 103
2 votes
0 answers
61 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 ...
sam courtney's user avatar
1 vote
1 answer
190 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 ...
chocolate's user avatar
1 vote
0 answers
454 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 ...
rfii's user avatar
  • 170
4 votes
2 answers
3k 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 ...
C Vith's user avatar
  • 93
0 votes
2 answers
407 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 ...
Frodik's user avatar
  • 127
1 vote
0 answers
137 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 ...
Cem Adatepe's user avatar
1 vote
1 answer
250 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 ...
S Kulshreshtha's user avatar
2 votes
0 answers
114 views

SPI Arduino slave not recieving data correctly

Using an STM32L476RG Nucleo microcontroller board as the SPI master and an Arduino mega as a slave with pin 52 for SCLK, pin 53 for SS and pin 51 for MOSI on the Arduino. There is no issue with the ...
Osz's user avatar
  • 21
1 vote
1 answer
96 views

arduino will not save data after receiving from serial communication

I'm new to Arduino and what I'm trying to do is change the variable by sending it from php to the Arduino. I've added the delay as stated by other questions but it has not worked so far. The pin 13 ...
diggledoot's user avatar

1
3 4
5
6 7
43