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

The RF 433MHz receiver code is working only when I reset the Arduino

I'm working on RF modules using Arduino but I observed the if statement is only running once and I need to reset the receiver every time to make it work with real-time changes in the transmitter. I ...
user avatar
0 votes
1 answer
41 views

Using ESP32 GPIO, Serial.printf(...) prints weird characters when input is larger than 12 characters

Learning C with the Freenove WSP32-WROVER starter kit and there's an issue I cannot find an answer to. Using the provided code to input some data with UART, it would seem to have a strange behavior ...
user avatar
-2 votes
1 answer
55 views

Using the Arduino as a keyboard is there a way to use the french/german/spanish dead keys on a US keyboard? or on the fly switch keyboard layout? [closed]

I have started learning other languages, and would like to be able to at least type their characters using my personal arduino keyboard. I noticed the french keyboard and the german neo keyboard have ...
user avatar
0 votes
1 answer
39 views

Trouble connecting barcode scanner to ESP32 devkit using UART - fails to connect over serial

I'm having trouble connecting a SparkFun 2D Barcode Scanner Breakout (effectively a DE2120) to a 30-pin ESP32 dev kit v1 (marked ESP-WROOM-32) and running the SerialScan sample application for this ...
user avatar
  • 101
1 vote
2 answers
35 views

Novice learning Serial.readString()

New to Arduino, getting into String variables and reading them from serial monitor. Basically what I'm trying to do is have the user input either red, green, yellow. Whichever String they enter the ...
user avatar
  • 11
-1 votes
1 answer
25 views

Arduino Serial to USB=>serial data issue

I am using Mega 2560 to receive serial data from another device but the data appears on the serial terminal are strange characters. then i connected my USB to serial cable (HL-340) to the device and ...
user avatar
  • 1
0 votes
2 answers
37 views

Pro Micro COM port disappeared after upload

I uploaded a sketch to my Pro Micro and it stopped showing in serial ports. Other Arduinos show up just fine. I've tried to detect serial devices using pyserial and it's also not seeing anything. I've ...
user avatar
  • 29
-1 votes
1 answer
41 views

USB serial port no longer detected after successful upload

I successfully uploaded a sketch to my Arduino Micro using the USB serial port but if I try to change the sketch that port is not available. The sketch I uploaded on the Micro runs fine when I plug in ...
user avatar
2 votes
1 answer
80 views

Using Arduino to read and write data to RS232 device

I have a micro turbojet engine (JetCat P100-RX) which is operated through an Electronic Control Unit (ECU). The ECU has a lot of information about the engine. I want to access that information and ...
user avatar
  • 53
1 vote
1 answer
85 views

Garbage in serial monitor

I'm revisiting my Arduino stuff (I want to revive Teleinfo shield to monitor closely my power consumption). I just cannot get the thing to work (Teleinfo Shield + Uno Wifi). When trying to check what'...
user avatar
1 vote
0 answers
26 views

Can read Serial but cannot write - serial communication Arduino Mega 2560 clone

I am having issues using the following USB to UART module. I am using an Arduino 2560 clone. I have two connections with the Arduino: COM7 which consists of the given module, connected to the main ...
user avatar
0 votes
0 answers
37 views

problem with simulating arduino in proteus8

on my way for making this project I am trying to simulate and test my code (the part on hardware) in proteu8 professional. in the the last post (link in the beginning) Edgar Bonet has told me that ...
user avatar
0 votes
2 answers
44 views

How to display only specific data in the serial monitoring?

I got the following data as shown in the figure from imu razor which is connected to Arduino Mega 2560 in the serial monitoring and I want to get only the data that starts with "#A-R= " Can ...
user avatar
  • 11
1 vote
2 answers
92 views

Uploading sketch to multiple arduinos connected in series

So I'm currently working on a project where you essentially will have multiple arduinos (1 Uno, multiple Nanos) daisychained, only connected through 2 digital pins and one wire for Serial ...
user avatar
  • 11
2 votes
1 answer
81 views

Mildly accurate oscilloscope using Arduino Uno R3

I'm trying to make a mildly accurate oscilloscope using Arduino Uno R3 and I've done some research on the best method to do so. First of all I need to measure the voltage with a rather high sampling ...
user avatar
0 votes
0 answers
95 views

Losing 100ms on sensor.available with DFRobot sensor

we are using 2 https://wiki.dfrobot.com/Serial_6_Axis_Accelerometer_SKU_SEN0386 sensors with Arduino Mega. Everything is working but we get only 10Hz of sampling. We were testing with timestamples and ...
user avatar
0 votes
0 answers
50 views

Serial com issue between Arduino and esp8266-12f

I have a serial communication issue between a Arduino Uno and a NodeMCU (ESP8266 12f) that I do not understand. The setup is the following. Arduino uno powered by USB cable plugged on computer with : ...
user avatar
  • 1
0 votes
0 answers
53 views

Hardware serial inverse logic

I'm currently porting a Arduino Nano based code to a Arduino SAMD version (MKR NB1500). The Nano code used SoftwareSerial with inverted logic to communicate with the device I want to be connected to. ...
user avatar
  • 9
0 votes
1 answer
42 views

Error while uploading the sketch to Arduino UNO using CLI

I have connected my Arduino UNO through USB to Raspberry pi 3B. I am using CLI for editing, compiling and uploading sketches > arduino-cli upload --fqbn arduino:avr:uno cli-test. However, after ...
user avatar
0 votes
0 answers
35 views

How to incorporate HMC5883L compass module with Arduino RC Car?

I have successfully made a RC Car with Arduino, L298N Motor driver and HC-06. The next step is I am working on is to use HMC5883L compass module as well and control the RC Car by passing strings like &...
user avatar
-1 votes
1 answer
119 views

SIM800L not responding to AT commands

I am using SIM800L module the module. I am new to GSM modules, so I've searched for the basic to use the GSM with the Arduino. this is my code. #include <SoftwareSerial.h> SoftwareSerial ...
user avatar
0 votes
1 answer
40 views

CH340G based USB to UART adapter - Pinouts - Can't find schematics

This is the board I will be referring to. There are different variations of it (with built in buttons etc.) but they all seem to be based on the CH340 chip. My problem is, that I do not know what the ...
user avatar
0 votes
1 answer
73 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
-1 votes
1 answer
26 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
22 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
644 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
145 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
226 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
88 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
-1 votes
1 answer
55 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
1 vote
2 answers
223 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
1 vote
0 answers
112 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
427 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
68 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
45 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
36 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
-2 votes
2 answers
143 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
83 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
54 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
46 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
26 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
94 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
85 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
36 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
61 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
95 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
89 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
48 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
92 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
2 3 4 5
41