Skip to main content

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.

365 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
60 views

Can I use regular pins (Example: D2, A3, etc...) as serial (RX, TX)?

Python/Arduino Beginner here... I have a DFplayer I am trying to hook to my Arduino and I want to hook it up through the regular pins instead of the RX and TX pins, but I've not been able to find ...
prestonferry's user avatar
4 votes
0 answers
716 views

ArduinoDue - Matlab: SerialUSB.write() sends ASCII?

I'm trying to get some binary data from an Arduino Due to Matlab. Basically this is the setup: Due: byte usbMsg[33]= {0}; // filled with dummy as example usbMsg[1] = '00000001';// in[3]; usbMsg[2] ...
Chuchaki's user avatar
  • 141
4 votes
0 answers
206 views

How to filter out "jumpy" readings sent using Bluetooth

I'm using App Inventor to continuously send orientation values (as strings) to my Arduino, which are read using Serial.parseInt(). Using simple IF statements (if value > threshold), I'm trying to turn ...
Raed's user avatar
  • 173
3 votes
0 answers
50 views

Why RTU bridge timeout even though answer is received?

I'm testing the following code as a bridge between https://sourceforge.net/projects/qmodmaster/ and https://pypi.org/project/pyModSlave/. As hardware, I'm using a NodeMCU 1.0 and a USB/TTL converter. ...
Eduardo-bat's user avatar
3 votes
0 answers
74 views

nano 33 BLE problems with reading RC signal

I'm using an Arduino Nano 33 BLE and a L293D motor driver to control a three-wheeled RC robot. The sketch I'm using worked fine with my Uno Rev3, but I've moved to the Nano for size/weight reasons, ...
starthrow's user avatar
3 votes
0 answers
872 views

Can't activate Seeeduino port

I want to use Seeeduino, but I can't activate port connection for it. To use Seeduino I installed Seeeduino from Board Manager in Arduino Studio. And then installed USB Serial Driver from this ...
ironsand's user avatar
  • 133
3 votes
0 answers
1k views

Cant open serial monitor on linux

I have a pro micro and I'm running the IDE on linux. The IDE easily recognises that my board is on /dev/ttyACM0 so i can flash programs on to it. I am testing the following code void setup() { ...
Ashwin Kumar k's user avatar
3 votes
2 answers
702 views

Bluetooth communication not working with DC power but works with USB power?

I am running an HM-10 Bluetooth Low Energy (BLE) module to transmit serial data (using SoftwareSerial) from an analog sensor onboard my Arduino Uno to a serial terminal app on my Android phone. When I ...
AggroCrag's user avatar
  • 151
3 votes
0 answers
5k views

Run Servo when detect object on OpenCV Python

I want to connect OpenCV (Python) with arduino Uno when it detects a tennis ball. OpenCV code: import numpy as np import cv2 import serial face_cascade = cv2.CascadeClassifier('tennisballdetect.xml')...
sayem48's user avatar
  • 31
3 votes
0 answers
328 views

Arduino IDE programs Leonardo but cannot open serial terminal

I'm using Arduino: 1.6.7 (Mac OS X 10.11.3), Board: "Arduino Leonardo". When I try to program my code, it works without problems. When I want to open the built-in Serial Monitor or Serial Plotter, ...
Thomas's user avatar
  • 143
3 votes
0 answers
870 views

Serial Communication with two bluetooth modules on Arduino Mega

I'm trying to communicate with two bluetooth module (RN-42) on the Arduino Mega. I studied about Serial communication in Arduino, and I used Serial1, Serial2 to get information at the same time from ...
Kyungsu Stanley Kim's user avatar
3 votes
0 answers
2k views

Interfacing SD card with arduino without shield

I am trying to connect SD card with arduino without using a shield. To convert to 3.3v, I have used voltage divider circuit as described in these two sites: http://garagelab.com/profiles/blogs/...
explorer's user avatar
  • 379
3 votes
0 answers
663 views

Sending data from processing to arduino

I have problem to send data from processing to arduino mega. Processing Code : import processing.serial.*; Serial myPort; void setup() { println(Serial.list()); String arduinoPort = Serial.list()[...
wei's user avatar
  • 31
3 votes
0 answers
9k views

Arduino Serial Hex Values

Apologies if I have missed a relevant post somewhere, but have search for days to try figure this out... I have written some C# code to send a Byte Array over Serial from my PC to an Arduino Nano ...
BFG's user avatar
  • 131
3 votes
0 answers
1k views

Sending binary data to Matlab via serial

I would like to exchange data via Xbee. I've set up a communication based on strings between the Arduino and a Matlab software. Unfortunately this kind of communication isn't enough robust and ...
UserK's user avatar
  • 559
3 votes
0 answers
878 views

Hiduino as a Serial-USB midi coverter

I have an Arduino Mega2560 configured to Hiduino, which makes the Arduino a driverless class-compliant MIDI interface. I am currently converting RS232 serial I/O data to midi data using the 'hairless ...
Scott K's user avatar
  • 61
3 votes
1 answer
2k views

Read/write data from 2 Arduinos simultaneously with Python

So for my project I have one Arduino Mega hooked up with a quadrature rotary encoder which is connected to the computer. An Arduino Uno is connected to a circuit I built, which in turn is connected to ...
Max's user avatar
  • 31
3 votes
1 answer
3k views

Atmega328P-PU: Programmer is not responding

Few days ago, I built my own custom Arduino on the breadboard. It is built according to tutorial on http://www.crash-bang.com/resource/breadboard-arduino/. The Atmega328P-PU is already burned with the ...
Lorin's user avatar
  • 131
2 votes
1 answer
48 views

Common Ground Between Arduino and ESP32 - Can I Re-use the ESP32 GND Pin for a Potential Divider

I am trying to connect an ESP32 to an Arduino Mega via Serial Communication using the UART 2 ports on both microcontroller boards. There needs to be a common ground between the ESP32 and Arduino. ...
timmy george's user avatar
2 votes
0 answers
103 views

I have a cash counter with RS232 in the back of it, I want to read the data that supposed displayed on the projector

I have cash counter with RS232 in the back of it. I want to read the data that supposed displayed on the projector with RS232 to TTL convertor and arduino. Here is all my setup Now I Connect the ...
Mohammed A. AL-Dainee's user avatar
2 votes
0 answers
94 views

Slow I2C communication

To collect temperature and BPM, I connected a max30101 in my Heltec WiFi kit V3 with ESP32. The data collected are stored in arrays to extract statistical features from signals which an algorithm will ...
Alice's user avatar
  • 31
2 votes
1 answer
86 views

Transmitting voice via VLC

The project I'm working on: Short-Range Coded Visible Light Communication System. Visible Light Communication (VLC) systems use light to transfer data between transmitter and receiver over short-range ...
Hussain's user avatar
  • 31
2 votes
0 answers
317 views

Modbus RS485 Decode the message received

I'm try to read some value from a soil NPK sensor using RS485 Modbus e Arduino uno. I menage to sent the request msg and I got the response but now i don't know how to read the response in order to ...
Damiano Miazzi's user avatar
2 votes
0 answers
469 views

Sending an image captured using ov7670 using arduino and serially transmit it to python

I am working on using an ov7670 camera module with arduino uno,capturing the image frame wise and transmitting the image serially line by line of each frame to python for image processing, however i ...
Gunjan's user avatar
  • 29
2 votes
0 answers
296 views

Arduino filling serial buffer with nulls

I just wrote some code that just sends a string from Arduino to Processing. Processing prints the string and displays the number of characters in the buffer... After uploading the sketch to the ...
Robot12's user avatar
  • 21
2 votes
0 answers
198 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 ...
Shreyan J's user avatar
2 votes
0 answers
168 views

Simulink resets arduino

I am working on servo motors control through serial communication protocol, I am sending data from Simulink to arduino and vice versa, The problem I am getting is that once I open Simulink Servo ...
HDne's user avatar
  • 21
2 votes
0 answers
175 views

Arduino freezes if I do NOT do Serial.println() at least TWICE

Hii I have a big project, and found this when I tried to remove all the test code. To summarize: I have a variable that I use as a buffer for string operations called char internalbuffer[32] declared ...
Qubo's user avatar
  • 31
2 votes
0 answers
67 views

Initial setup print getting cut off from printing

I am writing a program in Python (using PySerial) that needs to read data from the Arduino quickly. For this reason I have set the serial timeout to 0.01 seconds. (Baud rate is 115k) If I don't set ...
ngpop's user avatar
  • 21
2 votes
0 answers
65 views

Problem displaying data sent from Arduino Mega to Arduino Mrk1000 using serial communications

I've been doing a personal project. The idea of the bigger project is to feed my fish using a robot. My specific problem is that I would like to see some data from the various sensors that I will be ...
sam courtney's user avatar
2 votes
0 answers
122 views

SPI Arduino slave not recieving data correctly

Using an STM32L476RG Nucleo microcontroller board as the SPI master and an Arduino mega as a slave with pin 52 for SCLK, pin 53 for SS and pin 51 for MOSI on the Arduino. There is no issue with the ...
Osz's user avatar
  • 21
2 votes
0 answers
106 views

What would be the best way to sniff an established serial connection?

I am studying a system running a serial connection and looking not to intercept its packets, but merely to inspect the traffic as it passes. Option 1 Hook the RX and TX wires to the RX of two serial ...
J Collins's user avatar
  • 295
2 votes
0 answers
2k 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 ...
Mike's user avatar
  • 21
2 votes
0 answers
197 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 ...
Tyler P's user avatar
  • 21
2 votes
0 answers
149 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 ...
Bojan's user avatar
  • 21
2 votes
0 answers
1k views

Connecting OV2640 with 17 Pins Binocular Camera module, to any microcontroller (System clock on module pin 18 -NC)

These pins are on the module: 3.3V GND VSYNC SCL SDA HREF D0-D7 DCLK PWDN I have tried many codes and connections of the OV7670 Monocular cameras, none seem to work(Instructables , Circuit Digest , ...
ian noronha's user avatar
2 votes
0 answers
78 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 ...
Jorge.Tesla's user avatar
2 votes
0 answers
489 views

Serial Communication between arduino and nodeMCU

I am trying to connect a nodeMCU to arduino mega using serial communication so that i can read data from firebase. I have put the following code on the NODEMCU. #include<SoftwareSerial.h> //...
hamish's user avatar
  • 21
2 votes
0 answers
199 views

Stop getting values from arduino after some time

I have a strange problem, I have Arduino UNO/MEGA and I need to get Gyro sensors's data and I want to see the data in the serial monitor. Seems like a simple task, I wrote a simple C program which ...
uvan's user avatar
  • 21
2 votes
0 answers
482 views

MKR1010 serial communication

Is communication using tx/rx from an arduino to mkr1010 the same as any other serial communication? I ask because I can't find any tutorials or info on connecting an arduino to mkr1010, but there are ...
JGoss's user avatar
  • 21
2 votes
0 answers
392 views

Reading byte per byte from a txt file on SD Card without using the 512Bytes buffer

I am trying to read every sequenced-byte that is located on a txt file in the SD card. I have been reading quite a lot about the SPI and SD libraries, But I have found a lot of different information ...
DEMPEROR's user avatar
2 votes
0 answers
895 views

Connecting Audio Jack to Arduino

So I started working on a project of mine that is mostly software based which I have no problems with, but it includes electronics too. Where I am still learning a lot. Anyways, I have been trying to ...
Amin's user avatar
  • 21
2 votes
0 answers
2k views

Reading +IPD response from serial.read() using Arduino UNO and ESP8266

I have a python server running on my PC and I am using an Arduino Uno (wifi enabled by a ESP8266 chip) as the client. I can make the the server and client communicate using AT commands as shown below: ...
simsam's user avatar
  • 21
2 votes
0 answers
432 views

Adafruit Huzzah Feather not resetting and serial monitor garbage

Hi there, I have an Adafruit Huzzah Feather project laid out as you can see in the diagram above. Currently I am having trouble getting it to reliably reset and start the sketch. More often than ...
gfte's user avatar
  • 21
2 votes
0 answers
839 views

ATtiny85 and MPU-6050 Gyroscope

I'm doing a project that involves sending MPU-6050 gyroscope data via serial communication to the laptop. Is ATtiny85 micro-controller suitable for this job? Is it powerful enough to do it? I was ...
idk's user avatar
  • 21
2 votes
0 answers
147 views

Serial.println cuts off first digit

I'm trying to perform a simple analogRead() and print out the result, as below: void getVoltMeter() { readValue = analogRead(A2); readByte = readValue/4; Serial.println(readValue); Serial....
janizer's user avatar
  • 49
2 votes
0 answers
290 views

Garbage when listening to serial

This is the atmega328p code that is supposed to send a predefined message repeatedly. #include <avr/io.h> #include <util/delay.h> #define BAUD 9600 #define BAUD_PRESCALLER (((F_CPU / (...
vasily's user avatar
  • 133
2 votes
0 answers
600 views

PS2 Keyboard and sending keystrokes between a Leonardo and several pro micros

I am working on a project where I am taking the the key presses from a PS/2 keyboard and passing them to several pro micro boards so I can type the same commands on multiple computers at the same time....
landres's user avatar
  • 21
2 votes
0 answers
576 views

Serial Monitor Stops Working

I am using a DIY colour sensor (RGB LED and LDR) and a servo to make a skittles sorter. I am testing out just the colour detection now and printing the RGB values to serial. It worked fine until I ...
Bruno's user avatar
  • 121
2 votes
0 answers
983 views

Make RFID Tag as a variable

I want to make RFID Tag as a variable, and push it to the web server. But I struggle to do the Serial.read function. Any solutions? Here is my code #include <ESP8266WiFi.h> #include <SPI....
Qonita Salimah's user avatar

1
2 3 4 5
8