2022 Developer Survey is open! Take survey.

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

What are these 18 extra ports on the adafruit-gfx 2.8"

I recently got the Adafruit gfx 2.8" display, which works fine. It's quite obvious that it requires almost all of the pins on the UNO. However, I don't understand what are the 18 avaliable "...
user avatar
  • 101
0 votes
1 answer
44 views

USB-C to USB-C cable Arduino is not responding even not powered by this cable

Hi I want to connect arduino NANO to my laptop with Type-C (USB-C) ports (on below image left side [4] and other side 3). Now I bought a USB-C to USB-C cable, because it appeared to be the right tool, ...
user avatar
  • 205
0 votes
0 answers
41 views

Something in my code is causing incorrect and spammed keystrokes [closed]

Recently I have been working on a project to use a 4x4 matrix keypad as a MacroPad. After doing some research I found a this github repository but I found that the included keyboard library could not ...
user avatar
-1 votes
1 answer
24 views

Externally powering Arduino while reading voltage off it via USB

I have an Arduino UNO R3 where I’ve set Pin 13 to “HIGH” (as shown here) and I’ve connected an LED to Pin 13 and GND which glows brightly using a USB attached to my MacBook Air providing (I think) 5V. ...
user avatar
1 vote
1 answer
18 views

How to receive data from Xbee in AT mode on Arduino Nano

I need to print data on the Arduino serial monitor received from the Xbee in AT mode. I have searched on most forums and have not found anything on how to do this. I have my Xbee tx connected to ...
user avatar
2 votes
1 answer
631 views

What is the default baud rate without calling Serial.begin?

I cannot find the answer from official document and also surprised no one asked the same question. What is the default baud rates if I didn't call Serial.begin?
user avatar
3 votes
1 answer
71 views

Ubuntu Serial Port Briefly showing on arduino IDE

I am using a NodeMcu with Arduino IDE on Ubuntu. I have managed to upload the blink script and it work. Now, when i plug the nodemcu, the serial port /dev/ttyUSB0 is briefly available in the IDE. ...
user avatar
1 vote
1 answer
56 views

Sending float values from Python to Arduino using Serial communication

I need to send an array of floating-point numbers from python to Arduino Mega. For that, I read many sources [this this this this this] this] and many more links for the same I referred. But unable to ...
user avatar
2 votes
1 answer
52 views

How to use Sim7020_mini NB-IOT module

I bough Sim7020_mini module. I put IOT Sim card, and plug-in antenna, connect Rx,Tx into USB-TTL, then put supply into VIN (5 volt), LED power was lid on. Arduino Serial Monitor set into 115200, but ...
user avatar
  • 21
0 votes
1 answer
39 views

Getting more Hz while working with 3 serial ports (IMU sensors)

im doing a university project where we use 2 IMU sensors and a SD card reader to save the data from sensors. As you will probably see from the code, we specify the sensor port we listen to, save data ...
user avatar
0 votes
1 answer
39 views

NodeMCU programming without USB port

Recently, I've been attempting to build an anti-collision detection system for uses in a car. I bought several nodeMCU units and wil use one as a WiFi hub. In the course of experimenting, I broke off ...
user avatar
0 votes
0 answers
29 views

Button press on Arduino will write different message on Windows based on Foreground window

I have a Feather with 1 push button connected to my PC. Whenever I press the button, it pastes what's on the clipboard and a few additional characters to help with a repetitive task (using the ...
user avatar
  • 1
1 vote
2 answers
140 views

Circular buffer implementation and Serial.print()

I am trying to implement the simplest circular buffer in Arduino. I think I am able to implement it because my push and pop functions do not return any errors. However, when I want to print the data ...
user avatar
  • 11
0 votes
0 answers
44 views

Why won't my servo work?

My servo needs to be controlled with MIT app inventor, so I wrote some code. I also have a spectrometer and soil moisture sensor, so is the code from that messing it up? I ran the servo code ...
user avatar
  • 19
1 vote
0 answers
51 views

Can no longer select a port in Arduino IDE on Linux?

I am trying to upload to my Elegoo Mega 2560. I previously had it set up properly with the board installed and selected and the port automatically detected. Now when I go to Tools and hover my mouse ...
user avatar
1 vote
0 answers
157 views

rst cause:2, boot mode:(3,6) caused by pointer reference

I am experiencing an unusual issue with my code. I have a LOLIN WEMOS D1 mini Lite and I am using the Arduino IDE to upload the sketch. The version of the board is 3.0.2 for ESP8266. The problem is ...
user avatar
1 vote
1 answer
46 views

MAX30100 and ESP8266 NodeMCU Serial Errors

This is my final year project and for some reason, the max30100 sensor defaults to static values once the HTTP post request has been performed. #include <ESP8266WiFi.h> #include <...
user avatar
1 vote
1 answer
39 views

Poor man's serial sniffer: reading Serial.print logs of an Arduino esp32 dev kit from another

(I use ESP32 dev kits with Arduino api.) My dev kit 1 is running my firmware; and I want to measure the current it draws, therefore I don't like to plug the USB in. As I need to read the logs from the ...
user avatar
0 votes
0 answers
35 views

Arduino's stuck on COM1 and Device Manager Crashing

I just added a few new arduinos, and they are all loading on COM1. Here are some of the strange behaviors: Three arduinos plugged in, and they are all on COM1. I've never seen multiple devices ...
user avatar
  • 119
2 votes
2 answers
35 views

How do I fix my code so that it reads text from the serial monitor?

I have created a code that should print out "Enter true to deactivate alarm" in the serial monitor, then store the user's answer and print "alarm off" if they enter true and "...
user avatar
  • 21
0 votes
1 answer
85 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 ...
user avatar
-1 votes
1 answer
63 views

Send batch info to com port?

I'm trying yo get a .bat file to send my cpu data to the com port my arduino is on. I've tried multiple google results (including one from this site) and everything I found will just... erase all the ...
user avatar
1 vote
1 answer
40 views

Unexpected character added to char buffer array in serial monitor only when SD card initialized

I'm getting an unexpected extra character added to the serial monitor print line only when I initialize an SD card in the code. Normal The code below gives me this expected result in the serial ...
user avatar
1 vote
0 answers
33 views

Why do I read my own transferred data during my RS485 serial comms?

I am writing a RS485 serial communication firmware for the ESP32 (the minimal code is at the end of the question you can paste it as an Arduino INO or in platformIO main.cpp file). It is quite simple: ...
user avatar
-1 votes
1 answer
23 views

Serial.parseInt works for first menu but now in a sub menu

I am trying to use the Serial object to print some lines giving the users some options to select by entering an int. It works at this main menu. But when the user selects 1 I use Serial again to print ...
user avatar
1 vote
1 answer
76 views

Sending analog sensor data to laptop at 1kHz via USB

I am reading analog sensor data using Arduino nano, and the required sampling rate is around 1kHz. I am using the AnalogReadSerial example provided by Arduino with a delay of 1ms, so I am expecting to ...
user avatar
1 vote
2 answers
73 views

Why analogRead's value decreases when I decrease the value of resistor?(I use digitalWrite(high) to positive terminal of resistor)

Basically, my circuit contains only 1 resistor(like the basic LED circuit). I tried to know what is the actual voltage of digitalWrite(High). I don't understand why the value of analogRead does not ...
user avatar
0 votes
1 answer
33 views

Controlling Arduino through python

How to set the registers of Arduino through python code to vary the sampling rate of Arduino? Can we control Arduino through python?
user avatar
  • 21
1 vote
1 answer
56 views

Arduino pro mini sampling rate

what are the possible sampling rate the user can set in Arduino pro mini using ADCSRA registers. I want to set my desired sampling rate through registers, is it possible?
user avatar
  • 21
1 vote
1 answer
79 views

Serial hangs on Arduino-Uno

I'm having issues with Arduino and RPI3 serial communication, it'll become unresponsive after a little time. Tried increasing BAUD rate and same issue, also happens on Windows as well so RPI is not at ...
user avatar
-1 votes
2 answers
86 views

Send same telemetry data to two different serial ports?

I'm using a Teensy 3.5 to control a wall-following robot. The robot sends telemetry to my PC via two independent ports - Serial1 & Serial. Serial is the normal USB port, used when I direct-...
user avatar
1 vote
1 answer
44 views

Insufficient RX signal delta when using MKR RS485 + Nano, but not Mega

I'm having an issue where an arduino Mega has been used to communicate with an RS485 bus, using an MKR shield [1] as a breakout board. When I build it with a Mega, the system works fine. I've torn ...
user avatar
1 vote
1 answer
54 views

`time.sleep` in python script reading serial output causes erratic behavior

I am attempting to control the position of my computer's cursor using a potentiometer hooked up to my arduino nano. The arduino is running the following code: int potPin = 3; // select the input ...
user avatar
1 vote
2 answers
57 views

Disable Keyboard.h status LED

As soon as I include keyboard.h my pro micros LED starts flashing (as far as I know this indicates a serial connection is stablished or so.) But it's really annoying having a flashing led on my desk ...
user avatar
1 vote
1 answer
132 views

Arduino Nano and ESP32 Read Different Values over Serial

I am trying to use the Neato xv11 lidar with an ESP32. This should output packets of 22 bytes with the starting byte 0xFA. The communication is 8N1 and the baud rate is 115200. When I connect the ...
user avatar
  • 11
1 vote
1 answer
48 views

How to distinguish identical Arduinos from Linux?

I have two identical (but with different software) Arduinos connected to Linux box. Their serals are identical # udevadm info -a -n /dev/ttyUSB1 | grep '{serial}' ATTRS{serial}=="0000:00:1d.0&...
user avatar
  • 167
1 vote
1 answer
87 views

How to send non char variables over serial

I'm trying to build a GUI that sends the data from processing to arduino via serial. With the help of a couple of guys on here, I have come up with a basic framework that sends a variable ID, variable ...
user avatar
0 votes
0 answers
86 views

Arduino Nano 33 BLE Sense starts in bootloader mode on power up

I'm facing a lot of issues with Arduino Nano BLE Sense. I'm aware about the port switching between bootloader (when the yellow LED pulses) and application. First issue Sometime when I power up the ...
user avatar
  • 265
1 vote
0 answers
31 views

LightBlue to Arduino connection log does not display serial monitor printed data

I'm writing code so that, every time a hall monitor senses, my code additively measures 5 liters of volume as it prints each detection. Then, this data is sent via Bluetooth to a phone. (This is for a ...
user avatar
1 vote
0 answers
86 views

HC-05 Bluetooth module; two serial ports, COM4 and COM5

I'm learning how to use the Arduino HC-05 Bluetooth module. After pairing to it with my laptop I saw that I was getting two serial links, COM4 and COM5, as can be seen from the picture below. On COM4 ...
user avatar
2 votes
0 answers
49 views

Issues with the TX pins for recieving data from the HM19 and HC05

I bought a hm19 (link 2), 2 hc05s, an Arduino micro, and an Arduino due. I'm trying to turn an led on and off using my phone over Bluetooth. I verified that all modules work by themselves. So here's ...
user avatar
1 vote
2 answers
61 views

Serial connection between Processing and Arduino doesn't work

I'm trying to connect an Arduino Nano Every and Processing via serial. I'm getting no errors on either side, and the arduino serial functionality works otherwise on the arduino IDE. I'm connecting on ...
user avatar
1 vote
1 answer
336 views

Serial connection between arduino and processing doesn't work; Port busy

I'm trying to connect arduino and processing via serial. Whenever I run the processing sketch I get the following error in Processing: RuntimeException: Error opening serial port COM26: Port busy ...
user avatar
0 votes
2 answers
58 views

Arduino Nano: Send a few bytes over Serial with as little delay as possible

My scenario is the following: I have a few buttons connected to an Arduino Nano, which is connected to my PC over Serial. Now I want to send a few bytes whenever a button is pressed, to be interpreted ...
user avatar
1 vote
0 answers
27 views

Serial communication between Python & Arduino: [duplicate]

I need to transfer information between pyton script and arduino. Data is always built like this "wheelbase:1000" wheelbase can be another word and 1000 can be another value, : is always the ...
user avatar
  • 113
1 vote
1 answer
60 views

Arduino native USB port and Simulink [closed]

I am trying to communicate through the native USB port of the Arduino Due with a PC. The native port itself works, I have tested this. The problem is, that every time I upload my Simulink model via ...
user avatar
0 votes
1 answer
53 views

Optimised random alphanumeric string generator

I'm trying to build arduino nonce generator, but the only thing I found is this question on arduino forum but I can't find out how to make it work for me. I checked and Serial.available() is always 0 ...
user avatar
  • 305
1 vote
0 answers
51 views

SoftwareSerial fails to receive on Nano but works with Uno [duplicate]

I have built a circuit board that includes a BLE module and an oxygen sensor that has a UART. Writing arbitrary data to the BLE works fine, but for some reason every configuration of SoftwareSerial I ...
user avatar
  • 111
1 vote
1 answer
65 views

Peculiar behaviour of arduino pro micro

I am working with an arduino pro micro and I am facing a peculiar problem. The project I am working with includes arduino MKR NB 1500 as well. I am transferring data from MKR NB 1500 to arduino pro ...
user avatar
  • 31
1 vote
1 answer
271 views

How to send multiple data over serial in one byte?

I'm currently reading 3 limit switches and sending those data over Serial.write using the following code. #include <SPI.h> #include <Wire.h> #include <arduino-timer.h> //Define ...
user avatar
  • 15

1
2 3 4 5
41