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
0answers
9 views

Serial.println() not working in ISR

Please refer my below code, const int led_pin = PB5; const uint16_t t1_load = 0; const uint16_t t1_comp = 43750; int blinkcount; void setup() { // put your setup code here, to run once: DDRB |= (...
0
votes
1answer
15 views

Receiving multiple Values from android via Bluetooth [duplicate]

my question is, how can I receive 3 integer values in Arduino, which I send from my android phone. I send all 3 values at the same time and I also need to read them in about the same time. I hope you ...
1
vote
1answer
28 views

CIPSEND to ESP8266 returning bytes but no content

I am trying to send a GET request from an Arduino Uno connected to an ESP8266 through SoftwareSerial. I can't get it working directly in the code so I've stripped it down to a script that passes ...
0
votes
0answers
26 views

Sending serial data to arduino, while an operation triggered from serial data is underway

I have this snippet of code: if (Serial.available()) { /***** DEFINE MEASUREMENT MODE *****/ String input = Serial.readString(); if (input[0] == 'r' && interrupts_enabled == ...
0
votes
0answers
44 views

Can not receive data from python code

I want to send 4 float numbers from a python code to an Arduino, I was trying to send it via serial and i have some problems here is my python code: import time import serial import struct data = ...
0
votes
0answers
20 views

serial problem with python to arduino

when i execute the python script, the arduino response but the code between the if(Serial.available()) not responding. python script import time, serial arduino = serial.Serial('COM7', 9600) ...
0
votes
1answer
36 views

How to modify this code to use serial event to act after carriage return?

In part of a code used with UNO, I want to send number A and number B at once as A,B to the Arduino board if there is carriage return. So at the moment in HyperTerminal when I type: 100,0.5 the ...
1
vote
1answer
52 views

Binary to decimal using bitwise operators

I am trying to convert some binary data to decimal numbers. I succeeded to convert binary to hex, but now I want to do the same with binary to decimal. I want to use bitwise operators and NO array. ...
0
votes
1answer
35 views

connected between 2 arduino

i want to connect SPI 2 arduino master and slave through the MUX , to write and read in external memory , when the master write in memory slave read . pls help . code to master #include <SPI.h&...
0
votes
1answer
29 views

Reading out two sensors via Com-Port at the same time

I have two Arduino Nano Every and a sensor connected to each of them. Here is what's happening: I upload the sketch to the first Arduino on Com4 and see its output is correct via the Serial Monitor I ...
0
votes
0answers
23 views

Help printing Serial Monitor to LCD16x2

I have a motion sensor that triggers an LED and buzzer. That part works fine and it displays Motion detected in the serial monitor. I'm trying to get the LCD to print that as well but I can't get it ...
0
votes
1answer
28 views

Matching incoming data with a variable

I have a system where an RFID tag can be checked and Its individual 4byte UID will be printed. My task is to check if subsequent tags have the same UID and if not, print “access denied”. I'm assuming ...
0
votes
1answer
18 views

Reading data from an Ohaus Defender 3000 with a RS-232 shield

I have a project where we have to read the weight from an Ohaus Defender 3000 by using an Arudino Mega 2560 and a RS-232 shield. Right now we have the RX of the Arduino to the TX of the shield, and ...
0
votes
0answers
30 views

serialEvent only read 63Bytes and this is not the complete data incoming

hi everybody im working in a software for a pcb based in the chip ATmega2560 im use this with Xbee in API MODE, so im driving short string data and long string data. with the short data i dont have ...
0
votes
0answers
34 views

Flow control between ESP32 and RS323 device

I'm trying to communicate an RS232 device with an ESP32 (Heltec Wifi/LoRa 32 v2) my problem is that I don't receive any response from the device, doing some research, I'm thinking that the trouble can ...
0
votes
0answers
38 views

How to transfer serial data or plot wirelessly on an arduino?

I have an arduino uno and an accelerometer connected reading vibrations. I want to be able to send the serial data or serial plot wirelessly from the arduino to any program(recommendations will be ...
0
votes
1answer
38 views

Keyboard.write writing ASCII integer value as a String

I have the following code: #include <SoftwareSerial.h> #include <Keyboard.h> SoftwareSerial ttySerial(10, 11); // RX, TX void setup() { // Open serial communications and wait for port ...
1
vote
1answer
44 views

Print 2 numbers stored in 24-bits in decimal format

An implementation function from the nice little Wiegand library YetAnotherArduinoWiegandLibrary prints a hexadecimal representation of a facility # & card # (8-bit facility #, 16-bit card #) — 24 ...
0
votes
1answer
38 views

Reading Buffer from Software-Serial & Writing to Serial

My progress so far: #include <SoftwareSerial.h> SoftwareSerial ttySerial(10, 11); // RX, TX byte buffer; void setup() { // Open serial communications and wait for port to open: Serial....
0
votes
1answer
24 views

Adafruit thermal printer prints weak

I am currently hooking up my arduino to an adafruit mini thermal printer. When a button is pressed, some code is executed which then sends some information to the thermal printer. Everything works ...
0
votes
1answer
63 views

Controlling VFD with ModBus RTU via RS485 and Arduino

I am attempting to control a Folinn VFD (Manual: Manual) with an Arduino Uno via a MAX485 module such as this. Pins for MAX485: DI > D8 DE & RE > D10 RO > D11 VFD settings: F00.01 set to 2 ...
0
votes
0answers
9 views

Virtual terminal for my Proteus 8 professional is unable to read the correct value of the data i entered

I am trying to develop proteus simulation for remote-controlled robotic car using two Bluetooth modules one attached with the robot and the other used as a controller remotely. the two Bluetooth ...
0
votes
0answers
27 views

Arduino RS485 communication protocol - minimising overheads and best practice

I'm building a single master multiple slave RS485 network for remote sensors on test equipment. I have the hardware built and working, and I can do a Serial.print on the master and have the slaves ...
0
votes
0answers
25 views

Aruino UNO not getting programmed on MAC OSX

I am using MAC OSX Mojave and trying to program an Arduino UNO board. However, whenever I start the Arduino IDE, I only find one port in the ports section called: /dev/cu.Bluetooth-Incoming-Port. ...
0
votes
1answer
42 views

How to create a USB CDC device. (I'm using stm32f103c8 black pill board) and I want to read the data through USB in my raspberry pi as a serial port

How to create a USB CDC device. (I'm using stm32f103c8 black pill board) and I want to read the data through USB in my raspberry pi as a serial port. I am using a black pill to read RFID-rf522 to ...
0
votes
2answers
48 views

Reading from 2 serial ports

I have 2 Arduino Nano, they are connected via ports 2 and A2 While I use only one port to receive, it works properly. But if I activate the second port, system crash (and even first port don't work ...
0
votes
1answer
45 views

Which libraries for DS1302 real time clock and WS2811 LED strip do not conflict?

I am making a custom wall-clock, and need the Arduino (Uno or Nano) to connect to a DS1302 real time clock module and a WS2811 LED chain. So I’m using DS1302 for the clock, and FastLED for the lights....
1
vote
0answers
34 views

How to access native USB port of Arduino Due on Synology NAS?

I would like to flash my Arduino Due from my Synology DS218+ NAS which runs on an Intel 64bit Linux-derivate platform. Previously, I was able to flash a Mega 2560 from this NAS via avrdude and ...
0
votes
0answers
24 views

Setting up Software serial connection between Esp8266 and Arduino

I have a Lolin Wemos D1 R2 and mini version of ESP8266 and an Arduino UNO. I have connected the pin described as Rx in Arduino to the pin described as Tx in ESP8266 and the same for pin described as ...
1
vote
1answer
20 views

i am having Strange issues when trying to read form gps serial connection

I have an Adafruit Ultimate GPS connected to a MEGA2560. I am trying to get the data from the buffer and do other data processing at the same time, however. when i allow other processing to be done ...
0
votes
1answer
49 views

Random characters transmitted from ESP8266 to Arduino

Below is the code for getting a value from Firebase and sending the received data to arduino for performing necessary action. The code here here sends a string "o" to arduino once //uploaded to ...
0
votes
1answer
51 views

Fixing serial communication , condition for serial data available checks out even after reading all the data sent

I have been working on monitoring an aquaculture , where I log the environment variables (temp. , humidity, gas sensor data) to firebase and control feeding mechanism via an app(where data can also be ...
0
votes
1answer
49 views

HC-12 modules stopped receiving, cannot understand why

I've created a simple transmitter with an HC-12 and an Arduino Nano (clone), where I send the values of DHT11 and LM35 sensors to a receiver unit made only of a Wemos D1 and another HC-12. Setup is ...
0
votes
0answers
31 views

write from one board's pin to read of another's not working

I have an Intel Tiny Tile boardThis board is based on the Intel Curie, and can be read in Arduino as an Arduino 101. I'm using this board's accelerometer to register the bounce of someone on a ...
0
votes
0answers
40 views

Arduino Serial mappings [duplicate]

I'm having trouble writing exact values to the arduino. I have an led strip that I want to control using software on my computer (Processing Serial equivalent), but the values received don't seem to ...
0
votes
1answer
30 views

Simultaneous Serial reading and writing

I am trying to read long strings from the Serial, using arduino. In order to spare some RAM I don’t use Serial.readString(). I use Serial.read() instead. During the reading, I also print some debug ...
0
votes
2answers
44 views

how to get serial data to wait until a certain length is reached

I have a code that loops through 2 different serial inputs on the arduino mega, and sends them to serial constantly: int RFIDResetPin = 13; void setup() { Serial.begin(9600); Serial1.begin(9600);...
0
votes
0answers
21 views

Interrupt for custom Serial receive loop

I have a 300 led neopixle strip that I would like to directly drive from my computer at around 60fps. This involves about 900 bytes per frame, or 54000 bytes a second. I am using FastLED to output the ...
0
votes
3answers
48 views

Inserting myself in serial communication

I am assigned on a project involving Arduino and Raspbery PI. I have plenty of experience with Arduino and 0 with Raspbery or Linux. Person working quit and there are some problems that need me to ...
1
vote
2answers
82 views

What happens to serial output when no-one is listening?

This question probably needs a better title but I'm having trouble thinking of one! Please feel free to edit or suggest one. My target system is a pair of Arduino Leonardos linked by XBee radios. One ...
0
votes
1answer
34 views

Super fast UART transimission return error

The code was based on Fahad Mirza's very helpful example here Send structure through Serial The Sender's code now became struct Gyro_data_structure { char command_name[5]; float gyro_X; float ...
-4
votes
1answer
45 views

Serial monitor read value depending on delay

I am working on a small piece of code as shown: When I enter character 'a' in the Serial Monitor and use a delay in between successive reads then the monitor gives out acceptable results(i.e 97 for ...
-1
votes
1answer
28 views

Problem with Input from Serial Monitor

I have a piece of code as shown, and I wish to print the value I send using serial monitor along with a message: "Writing data to slave...". But everytime I enter a character/number in the serial ...
0
votes
2answers
121 views

Send structure through Serial

Suppose that one defined a data structure and wanted to send it through serial. struct Gyro_data_structure { char command_name[5]; float gyro_X; float gyro_Y; float gyro_Z; }; ...
0
votes
0answers
26 views

SAM3X8E Maximum Serial Speed

Does somebody know which is the maximum serial speed one can achieve by using the Microchip SAM3X8E microprocessor with Serial Communication between other uC with a RS485 module? The Arduino Due ...
0
votes
1answer
63 views

Missing buffers with serial communication

I am currently facing a problem with Serial communication with my arduino MEGA 2560. My project is to collect data from an encoder. There are 2 signals : ACP and ARP. For 1 rotation, there are 16 384 ...
0
votes
1answer
43 views

Arduino UNO not showing up in USB devices on Ubuntu 18.04

I have an Arduino UNO (clone, not original) that was working fine until a couple of days ago. Now, it does not show up when I connect it to my laptop. Things that I've troubleshouted: USB cable is ...
-1
votes
3answers
156 views

Unconsistent time in arduino loop

I have this code: The output looks like this: Why are there non-periodically some extremely large values? Thanks
1
vote
3answers
90 views

If Arduino connected to computer and opened up Serial Monitor, will Tx and Rx pin still be working?

Suppose one connected two of the Arduino Uno boards through Rx and Tx pins. Then, if one or both of the Arduino boards were connected to computer, and possibly opened up Serial Monitors, will Tx and ...
0
votes
1answer
36 views

How to set a time out like Serial.setTimeout() for Serial.read()?

I read a comment form here: "Serial.setTimeout() sets the maximum milliseconds to wait for serial data when using Serial.readBytesUntil(), Serial.readBytes(), Serial.parseInt() or Serial.parseFloat()...

1
2 3 4 5
37