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.

learn more… | top users | synonyms

1
vote
1answer
21 views

What is difference between Serial.Write vs Serial.Print?And When they are used?

What is difference between Serial.Write vs Serial.Print?And When they are used? both have been used to print on serial monitor,what are there actual difference?
0
votes
0answers
9 views

Getting all decimal places into a string

hello guys am new to arduino and am working on a project were i need to get a data value which is a double and adding it to a string of other values, however the full value is not displayed, it only ...
0
votes
1answer
34 views

General Question about fast Serial Communication and Arduino

I'm looking for a fast (and safe, in terms of stability) way to send sensor data from an Arduino UnoR3 in real time to a Computer (in my case a MacBook Pro) with a sample rate of at least 1kHz. I ...
0
votes
0answers
18 views

How do I find which values are corresponding to the changing values from my phototransistor?

I am new to using serial input. I have an IR emitter and a photo transistor hooked up to my Arduino, I am trying to see which values corresponds to the colored object I put over my IR emitter and ...
1
vote
0answers
11 views

SoftSerial freezes on comparing getInt to int

I have a robot application on my Arduino which basically takes values from a SoftSerial instance on my 0/1 pins (connected to a Bluetooth board). From the 'driver station' I send speed values to the ...
0
votes
1answer
34 views

How to use Induino R3 on Ubuntu 14.04

I have just got Induino R3. I have installed Arduino on my Ubuntu. I tried blink example but it shows error serial port COM1 not found I think i need to select proper option from serial port. But i ...
0
votes
0answers
17 views

Connecting Arduino to Large-sized Display 7 segment ascii protocol(DLZ 111)

I need to connect Arduino to a Large-sized display (DLZ 111). This display uses ASCII protocol and an RS232 connection. How do I make it work with Arduino? communication between arduino and (7 ...
0
votes
1answer
29 views

Serial Monitor breaks normal behaviour of Nano + NRF24l01

Couldn't find any other post that mentions Serial Monitor crippling the normal workflow of the NRF24l01, so here it goes. I have two Arduino Nano, both with NRF24l01 attached, and an RF24 library ...
0
votes
2answers
52 views

Serial structure data transfer between an Arduino and a Linux PC

I use the Arduino compatible chipKIT WF32 board. I want to transfer structure data between my board and a Linux PC. Can I do it like the following? struct data d; char *tx = (char*)d; ...
0
votes
0answers
7 views

How to reset an Arduino with node-serial?

I was reading about using an Arduino with a Makefile. In the Makefile-Arduino project there is a reference to the Python serial library required to reset the board. Looking into the usage of PySerial ...
0
votes
0answers
29 views

Wrong characters received with Bluetooth Mate Gold using Software Serial

I have a Bluetooth device from Sparkfun which I would like to use with the Arduino Mega. If I connect the module via the hardware serial pin everything works fine but when I use other pins like 12 and ...
0
votes
1answer
25 views

How to interrupt a code after delay

I have a functionality on my mega 2560 to connect with other devices. Sometimes, devices can't answer. I don't want to wait for a longwhile. So, how can I interrupt the chunk of program after the ...
3
votes
2answers
304 views

Can I make the Arduino ignore serial print

I like having serial communication for debugging and testing purposes but after a while it takes away too much speed from the sketch. Is it possible to have the Arduino ignore serial.print and ...
-1
votes
1answer
23 views

Calculating time between Serial events

I am trying to calculate time between two serial events. Using Arduino UNO R3 with 16MHz default clock source. I am using timer 1 with pre-scale of 64 to get time per one count = 4000ns. This i am ...
-1
votes
1answer
27 views

What is the size of the buffer in serial communication with arduino uno?

as it is in the question, i need to know what is the size of the biggest string that i can send using the serial port to the arduino. Thank you
0
votes
1answer
13 views

XPORT notice HTTP GET / POST request

I've seen a lot of people attempting to get the XPORT send HTTP requests. I myself, have also been busy the past two days (as an intern) to get the HTTP GET request working (on a PIC), it's not an ...
0
votes
1answer
17 views

Send \r or \n via phone serial monitor

I have a bluetooth adapter connected to uno, and using a serial monitor on phone. In the arduino code im debugging there is this line waiting for new line signal in the serial stream: char c = ...
0
votes
0answers
24 views

Arduino based temperature sensing circuit

I've currently got a setup where I am using a 2 thermocouple setup using MAX31850 and the circuit looks exactly as mentioned here using the external power option. ...
0
votes
1answer
28 views

How to read info from an Xbee Pro S2B to an Arduino with a Xbee Pro S2B

I am a newby at electronics. I am using 2 Xbee pro S2B modules. One (Router) connected to the laptop via a UART cable. The other (Co ordinator) connected to an Arduino Mega with the Program below. ...
0
votes
1answer
47 views

Arduino serial monitor first message

I'm connect arduino to my PC through serial monitor. Very common situation: Serial.begin(9600); delay(100); Serial.print("Hello, World!"); But I always get an ¤ello, World!. How can I get the first ...
0
votes
1answer
35 views

What do symbols like UCSR0C, UMSEL01, etc. means?

I have a code with a connection to serial port: // Set baud rate UBRR0H = UBRRH_VALUE; UBRR0L = UBRRL_VALUE; // Disable USART rate doubler (arduino bootloader leaves it enabled...) UCSR0A &= ~(1 ...
0
votes
2answers
40 views

Conflicts with USB and external power supply

I want to power an Arduino Leonardo with an external power supply and simultanously communicate via USB. I have read some other threads on this topic, therefore, I know that if one supplies more than ...
1
vote
2answers
70 views

How to avoid blocking while loop reading Serial?

I am currently playing with a MindWave Mobile headset. I am parsing bluetooth data received from a connected BlueSMIRF Silver. The code I started from is a sample from the MindWave wiki and it works ...
0
votes
0answers
22 views

Arduino 1.6.1 IDE with Teensyduino Serial port lag issue?

OS: Ubuntu 14.04 Board: Teensy 3.1 and Arduino UNO I've ran many tests and concluded that the issue is within the Arduino IDE itself. The issue: Instead of a smooth stream of data displaying from ...
0
votes
1answer
23 views

How can I execute a shell command?

This page says to run a shell command I need a "proxy code" running on my computer (Linux Ubuntu). What do they mean by this, and how should I make one?
0
votes
2answers
150 views

ESP8266 + Arduino Uno: Can't send AT Commands

I'm trying to get the ESP8266 up and running without a FTDI chip, just my Arduino Uno. But it seems really difficult. What I did: attach the ESPs VCC directly to Arduino Uno 3.3V; RX->TX; TX->RX ...
1
vote
1answer
35 views

do two arduinos that are linked to a common 9v rail and ground still need a common negative connection for a serial tx rx connection?

so that there a 2 wires rather than 3 to connect between the two for purposes of serial communication. And the same question for 3 arduino megas on a common rail and using serial connections?
3
votes
1answer
86 views

What is the maximum wire length for serial communication between two Arduinos?

I am building a project in which two Arduinos will be linked by three wires: TX an RX for serial communication and a common GND. What would be the maximum length of the wires here before communication ...
0
votes
1answer
48 views

Erratic behaviour using Serial.print() when powering only from power supply

I'm using an arduino uno with a thermal printer and the following code: #include "Adafruit_Thermal.h" #include "skull.h" #include "SoftwareSerial.h" int printer_TX_Pin = 8; // This is the yellow ...
2
votes
1answer
37 views

Passing a long string from SoftwareSerial to Serial

I'm currently playing around with a GPRS shield on an Arduino Uno, for which I have to write raw AT commands over the SoftwareSerial. At the moment, I just want to be able to talk to the GPRS from my ...
1
vote
1answer
52 views

Serial communication and Arduino program in C

When I flash this simple code (using Arduino-Makefile): #include <avr/io.h> #include <util/delay.h> #include <Arduino.h> void init_io(void) { // open serial port ...
-2
votes
0answers
33 views

PHP code dosen`t works on Uno even with auto-reset disable

well i just started to use arduino, and i'm having that troubleshooting thats annoying me. I'm already using a capacitor on reset and gnd to disable the auto-reset and the arduino still don`t ...
0
votes
0answers
37 views

How to do Serial monitor with Arduino Yun?

I'm trying to read some values from a TCS3200 colorsensor using Arduino Yun. I have some code, which you can see below, that I used when I tested on the Uno. With the Uno everything worked fine and I ...
0
votes
1answer
64 views

Reading I2C sensors with a timer interrupt

I would like to read a sensor connected via I2C using Timer3 and Arduino Mega. Values are read from the sensor in the interrupt service routine and timer3 is set to trigger an interrupt at 200Hz. ...
1
vote
2answers
75 views

16Hertz Uno R3 Board vs Arduino Uno R3 Board

I bought a 16Hertz Uno R3 Board. When I installed the driver and the Arduino IDE, in the IDE`s menu I saw: Tools -> Board -> Arduino Uno was selected by default which is great, ...
0
votes
1answer
26 views

Serial Error Correction

I currently have a setup where I take serial output from Arduino 1 and push it through a transmitter to the receiver of Arduino 2 where it is fed back into the serial input and further processed. I ...
1
vote
3answers
109 views

What happens if an interrupt is triggered while sending data via serial?

I would like to use an inertial sensor to measure acceleration and send the results to an Android app using a serial communication with a bluetooth Mate Gold module. The sensor provides a data ready ...
1
vote
1answer
96 views

Serial Print, String And Variable On Same Line

How can I print to the serial monitor a string or just single character followed by a variable like "L 55"
1
vote
1answer
69 views

How to add Ultrasonic Sensor to the board?

I am making an RC car , have combined the Arduino UNO R3 with the AR 293d, and pluged in the HC-SR04 sensor to the SRO4 hole at the left top corner in the below graph. However, besides one sensor I ...
0
votes
1answer
30 views

Arduino Sainsmart uno communication problem

I'm trying to communicate with my arduino uno but it seems to have troubles to understand characters. For example, printing things with Serial display weird things, changes characters, removes some. ...
0
votes
1answer
117 views

Arduino TCP communication with android phone

I am trying to communicate Arduino UNO with android phone, What I trying to is 1) android device post a string to arduino 2) arduino post a integer to android So far I can post message from ...
0
votes
0answers
21 views

Servo position initiaition using PySerial unexpected results

Hi I'm using Brian Wendt's code for setting up my Arduino Nano with 4 servos using PySerial which works perfectly. So my next step was to get a nice GUI with sliders to position the servos, again no ...
0
votes
1answer
81 views

Is it possible to connect many arduino uno in one pc?

We have many Arduinos and we will be putting each of them in a cubicle. All of them are connected to only one PC. The PC will stand as a server were you can control your Arduino there.
1
vote
1answer
70 views

Read data from SD

I have logged some data in my sdcard/FAT32 (format). I can read and display them on the serial monitor but additionally I want to use these data as float. Here is my code: byte index = 0; ...
6
votes
1answer
200 views

Can you query the current serial port's speed?

Is there some code I can use to find out what the a chosen serial port's speed is running at ?
0
votes
0answers
18 views

Serial port field greyed out with error on launch (Ubuntu 14,04)

I know this has been asked several times already, but I've nevered seen it asked with an error included on launch. Here is the message that comes up in the terminal when I launch arduino (with root ...
1
vote
2answers
51 views

Why is Serial.print working when nobody receives the data?

I have a kind of theoretical question. Let's have an Arduino Uno connected through USB that does a lot of Serial.print-ing. Then I disconnect it and I don't see anything on the Serial monitor, but the ...
0
votes
1answer
30 views

Serial, Numbers sent as Floating Point and Characters are different at 1e-8 level

I have some code that generates random numbers on the Arduino, it then sends these random numbers firstly, using Serial.print(float data,int lenght) and as a floating point number using the following ...
0
votes
0answers
27 views

Arduino Due - Multiple Serial Lines

I'm trying to interface with a serial device utilizing Serial1 (pins 18,19) on the Arduino Due. The normal serial port (Serial) is working just fine and is acting as a debug port at the moment - It's ...
0
votes
2answers
118 views

How to wait outside the loop without delay()?

Is it possible to delay a task inside a function that is called only once (meaning, it's not inside the loop) without using delay()? This library I'm using, for reading sensor measurements via ...