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

How can I send and receive data from an Arduino MEGA 2560 and Python?

Hello community I am relatively new to the Arduino world and I am facing some issues trying to establish serial communication between the MEGA 2560 and Python using my PC, the desired result is to ...
0
votes
0answers
20 views

How to use HM-10 as client, and send messages to specific services/characteristics?

I have been messing around with this module, unfortunately i bought a fake one, but got the original firmware running inside it (V550). So far i can set the HM-10 up as client/master and by using an ...
0
votes
0answers
85 views

ARDUINO uno / mega etc [closed]

I want to read 9 bit data (which is 1 pulse per second data in decimal form )of rubidium oscillator through arduino in real time (or anything else which can work well). Is it possible to read data ...
1
vote
1answer
34 views

Is it possible my ATMega is burnt due to bad wiring?

While working on a project I tried sending data from my Arduino NANO to ATMega64 placed on AREXX Robot arm PCB via TXD/RXD. After plugging in VCC, GND, TXD and RXD to UART socket it didn't work so I ...
1
vote
1answer
24 views

Arduino keypad variables to serial port

I've been trying, for over a week now, to create a program that will store my keypad presses into variable, and with a press of an enter, it will switch to the next variable to store the presses. The ...
0
votes
1answer
25 views

How to send Serial data from an Arduino Uno into the Serial of an ESP-01?

So, i need to send sound sensor data from an Arduino Uno to the ESP8266 (ESP-01), so it can output a push notification to my phone whenever there's a loud noise. I have the sensor just powered and ...
1
vote
1answer
118 views

Serial.print skips or hangs inside a “if” statement. Trying to call a function VIA serial uart

I have two microcontrollers talking to each other using serial UART pins. Now for some reason which I can not figure out why... doing a Serial.print() does not work in an "if" statement. And ...
1
vote
1answer
75 views

Standalone ATmega328P stops responding when RX is connected

I have followed this demo and have set up a standalone ATmega328P being programmed from a Raspberry Pi via the SPI lines. I have also added a 16 MHz crystal with 22 pF capacitors, as well as I have ...
2
votes
2answers
206 views

Am I at the limit of UART transmission time?

I'm currently using an STM32F103C8 (With an arduino core) to read 4 sensors at 1kHz, then send that data via UART (at 115200 baud) to another device. Each sensor returns a float, I also include an ...
2
votes
2answers
36 views

Not output on serial monitor, sending string on serial.print

I get two 10-bit values from analog pins. These two values in a string, ";" combine with. for ex: 515; 510 I am sending it to another arduino via Serial.print. I cannot display this string ...
1
vote
0answers
37 views

Arduino Uno Port access denied error, and probably other issues

I am trying to write a script to measure the voltage in an Arduino pin, convert that to a corresponding temperature measurement, end export the serial data to a csv file. I know there is probably a ...
1
vote
1answer
20 views

Joy-IT RS232 Shield and RS232 voltage levels

First of all, sorry if this is a dumb question, but I'm pretty new to the whole Serial RS232 concepts. I do have an Arduino Board that, from what I read about, is not able to communicate via RS232 ...
2
votes
0answers
40 views

Reading JSON from Arduino over serial in python and writing to a JSON file on computer

I'm fairly new to Arduino so I used a sample code before integrating this into my main code. I'm printing my value in a JSON format over serial. My Arduino outputs this and the python receives this ...
1
vote
0answers
27 views

How can I interface, received HC-12 data and transmit the received data using sx-1278 RF-module in arduino-UNO?

I am currently working on a project, where I need to send data from first unit to the second unit which is a few km apart, so I decided to go with hc-12 RF module as it covers upto 5km. Then the data ...
0
votes
0answers
41 views

Does ESP8266 module is necessary to connected or just Separated

I using FPGA design have two thing sent text or image from FPGA to ESP8266 to website or app the my propose only shown the data, My question i wanna connected (FPGA) TX to RX () is That can? kindly, ...
3
votes
2answers
56 views

'Servo_Pointer' was not declared in this scope

I can't seem to find the error I made; can anyone help me? The error message: 'Servo_Pointer' was not declared in this scope I get the error at the end of the code with the line: Servo_Pointer.write(...
0
votes
2answers
335 views

Access serial monitor on linux cli? Using arduino-cli?

I have an arduino uno connected via USB to a raspberry pi, the raspi is accessible via ssh only. Just started a bit with arduino-cli ; I upload a sketch which reads my analog pins. How can I access ...
0
votes
1answer
42 views

Using TX/RX serial pins to communicate over USB

I'm using an Arduino Nano with an Atmega 328p. I would like to attach and use a different USB port instead of the builtin one for supplying power, serial debugging and uploading code. Currently my ...
1
vote
1answer
24 views

Send data to Programmable Power supply from Arduino by RS232

I have a programmable power supply, which has serial communication port. If I send a string "VSET1:11.00" then power supply will be set to 11.00V. But, I need to write a program which will ...
2
votes
0answers
43 views

Arduino SerialUSB.print/println is being interrupted by other prints

I have an Arduino M0 connected to a peripheral device. A PC is connected to the arduino via USB. The mode of operation is that the Arduino receives commands via USB that instruct it to do something ...
1
vote
0answers
25 views

Communication b/w Arduinos, master(M) and slave(S) via Tx Rx pins. M sends query to S which shows the data in serialmonitor. S fails to send data to M

Slave code int arr[10] = {0,1,2,11,4,5,6,7,8,9}; char id = '1'; char re[2]; void setup() { // Begin the Serial at 9600 Baud Serial.begin(9600); } int ia; void loop() { Serial.readBytes(re,2);// slave ...
2
votes
1answer
35 views

RS-485 Serial communication problem with arduino

I use 485 modules to transmit data serially from one arduino uno to another uno. If I connect the 2 arduino boards directly without using the rs485 module, the data is sent and received without a ...
1
vote
1answer
65 views

Reverse engineering LIN bus on E-bike system

As a project I am trying to 'hack' an old E-bike. The electronic system of the bike consists of: A torque sensor measuring deformation of the rear. A 'spin' sensor measuring if the person is pedeling....
1
vote
0answers
53 views

Can I control an Adafruit Trinket M0 from a computer [closed]

I understand that the Adafruit Trinket M0 isn't an Arduino, but I figured it might still be appropriate here. I'll keep it simple. I have an Adafruit Trinket M0 that will be used to control an RGB led ...
7
votes
2answers
2k views

Can you use Serial Port as a variable?

I am doing a project where, for troubleshooting reasons, I find myself often swapping components to different serial ports. Maybe one time it's in Serial, then in Serial1, maybe I need to try if ...
1
vote
1answer
47 views

Bluetooth module(HC 05) issues

I am trying to make a Bluetooth controlled 4WD robot. i was following a tutorial i found online (https://howtomechatronics.com/tutorials/arduino/arduino-robot-car-wireless-control-using-hc-05-...
2
votes
1answer
27 views

Is it possible to gather data while the Arduino is being powered with a battery, connect to comp, and then read off the values in Serial Monitor?

I want to do a project where I gather data such as sunlight hours per day, as well as temperature highs/lows. Once I have gathered 24 hours worth of data, I want to hook it up to the computer to read ...
1
vote
0answers
25 views

About ATmega32 UART receive

The following code is the code for UART receving Char uart_receive { While( ! ( UCSRA & ( 1 << RXC ) ) ); return UDR; } This function will not return the UDR value until the while loop ...
0
votes
1answer
17 views

Reading Serial String Gives Null Lines with JSSC

I need to send serial data to my Arduino UNO from within a java application. I am using JSSC for this. I wanted to verify that my data actually arrives correctly to the arduino before going to the ...
1
vote
1answer
38 views

Arduino Nano stucks on uploading [duplicate]

I'm trying to upload an simple blink sketch to my Arduino Nano, which not used for a while. As I remember, I uploaded an sketch to control RF module, at the last time I used. Now, when I connect my ...
1
vote
2answers
34 views

Building RS485 serial to USB adapter with digispark

Is it possible to build an serial-adapter with digispark board? Like: Embedded System with 2-wire RS-485 Port connect to my digispark board. Digispark Board is connected via USB to my Computer (...
0
votes
0answers
18 views

How can I program my self made Arduino board using USB to TTL converter?

Recently I got a coupon for JLCPCB which was 100% discount so, I designed my 10 Arduino board specially for my needs and ordered it from JLC PCB. The schematic of the board is given. At the time ...
1
vote
1answer
58 views

board stops working when writing serial

i just started using Arduino IDE for my XMC1100XMC2Go. Information about the microcontroller can be found here: https://github.com/Infineon/XMC-for-Arduino/wiki/XMC-2Go I now started with my first ...
0
votes
0answers
19 views

Arduino Due SerialUSB Resetting

Having this basic example for using the SerialUSB function on the Arduino Due under Windows: // ARDUINO DUE BLINK LED void setup(){ pinMode(13,OUTPUT); SerialUSB.begin(2000000); while(!SerialUSB)...
1
vote
1answer
43 views

Can SoftwareSerial be used in an ESP01

I am using ESP01 as a microcontroller that retrieves information from Firebase and sends them over serial to an Arduino Uno for other uses. I am not using NODEMcu since it has few analog pins and ...
1
vote
1answer
119 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
43 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
27 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
113 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
21 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
10 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
40 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
39 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
32 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
36 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
32 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
18 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
18 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
90 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
78 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 ...

1
2 3 4 5
39