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
17 views

Why we are using client.flush() in the program code ,when we connect Esp8266 with internet or web server?

I am using Esp8266 Wifi modular (12-E) for controlling a led through the access of wifi/webserver. I have written code in Arduino ide taking various references from the google.In the code, I didn't ...
1
vote
0answers
24 views

Read from Blynk terminal number to arduino

I have a problem in sending numbers from blynk terminal to arduino serial monitor. When I send any number from blynk terminal the arduino always getting 1. How can I get any number please help me. ...
1
vote
0answers
21 views

Copy outbound data of Serial to Serial1 for Pro Micro

I am working on a bluetooth HID device. There are libraries which make HID devices a cake walk if you are making a wired version of your HID device. I managed to configure my bluetooth module to ...
0
votes
1answer
60 views

Make the Arduino read data from the PC

I will be brief. There is as windows PC running a program. This program has live updating data on it. Without modifying the PC or adding any programs to the PC, is it possible to program an Arduino to ...
2
votes
0answers
16 views

How to count number of bytes appearing in the Arduino serial?

I need to count the number of bytes appearing in the serial (UART bus) bus, how to count bytes in Arduino with Arduino Serial functions? is this possible? Application - RS485 communication with ...
1
vote
0answers
8 views

which kind of data are store If i terminate the call in sim800?

I'm working in SIM800 for DTMF based project. I want to know which kind of data are stored in the buffer during termination of call in SIM800. How to find if call was disconnected in SIM800? Also ...
-1
votes
2answers
36 views

Where can I find SerialMonitor.java in installed Arduino IDE 1.8.13?

I have found the git source for SerialMonitor (Arduino/app/src/processing/app/*) but unable to find it in the installed Arduino IDE. I am using Ubuntu 20.04 64-bit. I want to make changes to it, not ...
0
votes
0answers
36 views

How could I combine sensor data with custom protocol und send it with Serial?

I am very new to Arduino. Now I am trying to send the sensor data to Computer. The sensor data will be stored as bytes into arrays. To build a robust transmission I'll pack the data with own defined ...
1
vote
0answers
28 views

Help using an Arduino as as an FTDI with a ESP8266 carrier shield to see an AT response

I have a Duinopeak shield that lets you plug on an ESP-01 and provides a 5V-3.3V regulator and level shifting for the Tx and Rx pins. I cannot get it to work with a setup that has worked with every ...
0
votes
0answers
34 views

How to access Software Serial contents/value and extract some details?

I'm using SoftwareSerial with a SIM808 GSM modulde to detect incoming SMS messages. The problem I'm currently having is that I need to access the phone number from the received SMS so I can send a ...
1
vote
0answers
24 views

Serial Monitor Not Displaying

I am using BMP 280 for an altimeter to measure the altitude. Once all connected and uploaded the BMP280test code from Adafruit, the serial monitor says busy. But still, when I switch the port in tools,...
1
vote
0answers
17 views

How to set the data length for SPI communication in Arduino library?

How can I set the number of bits that need to be transferred in SPI communication from a Slave chip to Master MCU using Arduino SPI Library in a SPI transaction? Let us say I want to read 14-bits data ...
0
votes
0answers
12 views

APDS-9960 detected but not showing output on serial monitor

I just bought an APDS-9960 sensor yesterday and tried it out today using Sparkfun's example from its APDS-9960 lib, and the only thing it printed out was: "SparkFun APDS-9960 - ProximitySensor&...
1
vote
0answers
89 views

Change arduino output from input

I'm trying to change values such that the arduino uno outputs comes from what is input, with the code, int PinOutput = 11; int PinInput = A0; int inph; int inpl; int input; void setup() { // put ...
1
vote
1answer
77 views

Why do my Hall sensor readings change when I write them to the serial port?

I have a small project where I connected a Hall sensor (see picture) to an Arduino Mega. The blue wire is connected to pin 45, the red wire to +5V, and the black wire to GND. At the beginning I ...
0
votes
2answers
33 views

How can I copy and compare a string?

I have the following code (I realise String isn't very efficient, but this sketch doesn't have to be) debugOutput gets called every loop, but I only want to spam the serial bus (to debug) if the ...
1
vote
1answer
24 views

Reset a UART connection on a Due

I have a system that involves an Arduino Due connected to a Raspi 4 through UART in which the Due sends a heartbeat signal over UART for the pi to receive and send back as confirmation. One of the ...
0
votes
0answers
22 views

Uno to ESP32 - HardwareSerial repeats value on ESP32's side even though Uno is disconnected

I have an Arduino UNO connected to ESP32 through voltage divider with TX0 from Uno to RX2 to ESP32. My goal is to send data from my Uno to my ESP32 through HardwareSerial. Here's my code for the Uno: ...
0
votes
1answer
32 views

How to fix serial communication?

I am trying to use serial communication to open and close a Blue Robotics Newton gripper. The gripper works with normal commands, but when I try to use serial communication to control it, it is ...
-2
votes
1answer
36 views

Problem with serial input from android serial usb app

I'm using two (nrf24L01 + Arduino Uno) nodes to communicate with each other. Serial input from node1 will be sent to node2. A special character 'p' when sent to node2, it will reply that it's ...
2
votes
4answers
66 views

How to connect more than one arduino serial port together

The idea is to connect more than 1 arduino slave to master as shown in schamatic simulate this circuit – Schematic created using CircuitLab The problem is TX slave can not just combine to ...
0
votes
3answers
51 views

What's the most direct way to assign Serial.read() bytes to an array?

I'm trying to send NMEA 0183 sentences through LoRa. Every dinstict NMEA message looks like several char arrays (sentences) followed by '\n'. In the below picture we see one NMEA distinct message: ...
1
vote
1answer
25 views

Send JSON body with SIM900 board

I'm trying to send JSON, but i'm not able to set Content-Type header. Other commands are successful: [23:49:41:856] AT+SAPBR=3,1,"CONTYPE","GPRS"␍␊ [23:49:41:899] ␍␊ [23:49:41:899] ...
1
vote
0answers
48 views

Why isn't my Arduino Nano Every recognized as a Nano Every and why won't it upload sketch?

I have a genuine Arduino Nano Every board that isn't showing up quite right. I actually have 2 hooked up to the computer on different ports and one of them, when I click on 'Port' shows as: COM12 (...
1
vote
1answer
80 views

Serial Monitor shows a continuous “word salad” without a loop

I have written a little program which should (at the end) host a little website. This is just my setup. But for some reason, it writes "srl?" endlessly onto the serial monitor. I just ...
-2
votes
1answer
47 views

What is the maximum size of Static Json Document in Arduino JSON?

I'm trying to do serial communication between Arduino mega and a esp8266, and having issues with determining the size of the JSON document. I have read that the receiver buffer size should be greater ...
0
votes
1answer
40 views

Assigning value to a struct byte order

So i have struct: typedef struct sendPacketStruct { byte header = headerByte;//0x55 unsigned int time;//2 bytes int height;//2 bytes }; And i do this: sendPacketStruct sendPacket; ...
0
votes
0answers
32 views

Arduino UNO not sending serial data to ESP32

Lately I've been struggling with Serial communication between Uno and ESP32. I'm trying to send a simple string (In my case "100") from my Uno to my ESP32. I made a voltage divider and I'm ...
0
votes
0answers
26 views

Help with reading and storing data from sim module

I'm using a sim800C module and an Arduino Uno. I want the code to send back an SMS to a number which sends it the password. So, if the sim module receives 'abcd' I want it to send back an SMS, saying '...
2
votes
2answers
67 views

printing the analogRead() functions result crashes Arduino

I have created a curcuit which reads the analog pin 3 auf the arduino nano and does other things dependant on the returned value. However I have problems regarding the analogRead() function. Whenever ...
0
votes
1answer
29 views

Weird effect of AVR C on USB-serial communication

I recently decided to learn direct port manipulation instead of builtin arduino routines. First I tried this piece of code void setup() { pinMode(13, OUTPUT); Serial.begin(9600); } void loop() { ...
0
votes
0answers
26 views

Sending array of bytes using serial communication from Mega 2560 to ESP 8266

The array is 16 analog inputs, till now these inputs are not connected to anything so they are random, except the first three elements of the array, connected to GND, in order to see the beginning of ...
0
votes
0answers
19 views

Ultrasonic sensors not working

The target of this is for the system to print "Done" when distance, measured by 2 ultrasonic sensor, is between 6-17 cm. This is my python code: import serial arduinoSerialData = serial....
0
votes
0answers
47 views

How to separate in columns the data contained in a barcode

I have the following code, which allows me by scanning a typical 128 barcode to write this code in SD card under the Header "FA" as well as the time and date of scanner under the Header &...
1
vote
1answer
47 views

inconsistent digital output on simple code

so im new on arduino coding, and i made this code, where i input from serial monitor and then use it as a command for digital write. the problem is, sometimes the code work perfectly but then when i ...
1
vote
1answer
69 views

else if is ignored if not Serial.println anything before

I encountered to me inexplicable behavior on an arduino uno. I'm serial reading a string from the serial monitor/python serial. This string is the conditional on several if/else if statements. The ...
0
votes
1answer
20 views

Weird RTC DS3231 Output only when saving the dates to variables

I am sorry to ask this question as I think it has more to do with my mediocre C++ programming skill than with the arduino. I do have a project where I want to use an RTC DS2131. I started out by using ...
-1
votes
1answer
35 views

How do I serial print a constant single string and a changing variable within it?

I want to print a single line including the variable "val" only once rather than looping or repeating of the same line and within it the val will change according to the reading. Is it ...
0
votes
1answer
28 views

What are the correct techniques for implementing functional client access to an asynchronous serial interface?

This is not a question for beginners. I am implementing a functional interface to an asynchronous serial device connected to the Serial1 port on a mega. To ensure clarity, I want to implement a series ...
0
votes
0answers
51 views

Two way serial communication between arduino mega and NodeMCU

I'm trying to create an IoT device that will collect data from the sensors and display them in a mobile app, also let the user control the device using the mobile app. So I need to set up two-way ...
0
votes
2answers
87 views

avrdude: stk500_recv(): programmer is not responding, arduino pro

I'm trying to upload a sketch to upload the blink sketch to an arduino pro using a SparkFun Serial Basic Breakout (on Ubuntu 18.04). setup Within the arduino IDE I have the following set-up: Tools -&...
0
votes
0answers
53 views

Arduino EPROM dumper with utility program in C

I am writing EPROM dumper with Arduino UNO and utility program in C and I am using Ubuntu 20.04. The Arduino sketch works fine, but I am having few problems with the utility program. The first problem ...
0
votes
1answer
69 views

Arduino split comma separated serial stream

I'm trying to read serial data into Arduino. I usually use a Serial to USB cable to connect to the hardware and is sending data like 33,Z,35.0,F,1073741.824,I,0.0,0x68 33,Z,35.0,F,1073741.824,I,0.0,...
1
vote
0answers
31 views

Issue with seial communication [closed]

I am a beginner with c and arduino and am trying to create a 'whack-a-mole' style game. I am having problems with the 'score' variable. At the moment, I am just trying to get it to print to the Serial ...
0
votes
2answers
45 views

Serial port usage in code

I want to write a function that defines a serial port based on a flag but I'm not sure it's possible. For example: void writeToSerial(bool useSerial1) { SerialPortClass serialPortObject; // Is ...
1
vote
1answer
59 views

Strange Arduino Serial Behavior

I have a quirky question today. I have an Arduino MEGA 2560 with a very simple setup. It's connected to my pc over usb, and has one device connected on its onboard TX/RX2 port group. Whenever I open ...
0
votes
1answer
42 views

Fastest Communication from NodeMCU to Arduino Nano

For one of my projects, I need to transmit data from NodeMCU to my Arduino Nano, in real time, I used S-Bus, but it quite unsatisfies me, as, slight latency is taking place. I am transmitting a JSON ...
0
votes
0answers
49 views

I need an example of how to send AT COMMANDS to SIm7000E GPS+LTE module from ESP32 and reading those response in Serial monitor

Actually I need to make HTTPS post request using SIM7000 and ESP32 but the available libraries don't have a function for HTTPS post request, I wanna make this request using AT Commands. I need a ...
0
votes
0answers
19 views

Arduino : Not receiving complete data over Bluetooth when serial printing is enabled

I have written an android application that sends IR codes of different appliances to Arduino over Bluetooth (HC05). Below you can find my android code and data which is I am trying to send to arduino. ...
0
votes
2answers
89 views

How to make Serial.read() return an integer instead of an ascii value?

I want Serial.read() to return an integer instead of an ASCII value. For example, in the below code if I input 2, I want the output as 2 instead of 50 void setup(){ Serial.begin(); } void loop(){ ...

1
2 3 4 5
39