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

-3
votes
1answer
37 views

Strange binary number representation

I have a very simple sketch, something like this: int aFour = 4; softwareSerial.print(4,BIN); softwareSerial.print(aFour,BIN); Which gives the following output: 1001 0011 Why don't they print ...
0
votes
1answer
28 views

High errors in transmission (completely eliminated by adding delay): What's the issue?

I am using a two Arduino setup with two XBee radios. One radio is sending data and the other is receiving data. I am sending three sensor readings following a protocol which uses three bytes for each ...
0
votes
1answer
36 views

Read Serial 8 Bytes from arduino Buffer

Fairly new to Java but with a rather complicated question. We are looking at reading some bytes coming in from arduino. Arduino send bytes in the form: Serial.print(Voltage1); Serial.print(voltage2)...
0
votes
1answer
30 views

Why is communication between a Python program and Arduino not producing the expected result?

I have written some Arduino code (with help from the post Serial Input Basics). On serial I send some data and, based on certain values sent, certain LEDs will be lit. Here is the Arduino code: const ...
0
votes
0answers
29 views

KY-038 Microphone with Firmata (Johnny-Five)

I'm a noob with Arduino so I might be missing something on this. I have a KY-038 Microphone sensor and I connected the pin with "A0" to the A0 analog on my Arduino UNO. Then I connected D0 to the ...
0
votes
1answer
43 views

Using pointers with Arduino

I am learning about pointers. I was wondering how the memory address is defined in programming. I get different outputs depending on the format I choose for memory address. So I was wondering if it ...
-1
votes
3answers
49 views

How to correctly read a string from Arduino serial port?

I'm trying to communicate with my Arduiono UNO via USB serial port, more precisely I'm trying to read a string like 125,0, I know it's full of article out there about this, but belive me I've tryied ...
0
votes
0answers
19 views

Streaming data from an Arduino to off site web server (and back?) [on hold]

In my project I have a teensy 3.1 reading and decoding NMEA strings coming in from an EM-406 GPS module. That data, after being decoded, is sent over serial through an xbee into my computer where I ...
-1
votes
0answers
72 views

Serial ports not detected on Mac OS Sierra and Arduino 1.6.12

I have a Macbook Pro 8,2 Manufactured in September 2011, after updating to OS X Sierra, I can no longer see any Serial USB ports with genuine arduinos plugged in and powered up. I am aware that this ...
3
votes
1answer
27 views

Can LilyPad Main Board interface with a sensor via UART?

Is the LilyPad Arduino Main Board physically capable of interfacing with, let's say, a LeddarTech LeddarOne Optical Rangefinder, which has a 3.3v UART interface? I understand that the LilyPad has a ...
0
votes
0answers
14 views

Processing isn't displaying a graph when run

I'm currently using an Arduino and the software 'Processing' to create a graph of serial values. I'm using an IR LED and a photoresistor to measure my pulse which I then want to view graphically. ...
0
votes
0answers
12 views

SerialUSB on DUE

I'm starting fiddleing with a due but i can't seem to be able to comunicate over usb with it. Here is my code : int bauds = 9600; void setup() { SerialUSB.begin(bauds); } void loop() { if (...
0
votes
1answer
34 views

Serial communication doesn't work right after upload

I'm trying to communicate between a program on the Arduino Uno and a program on the PC via USB. I got it more or less working. Only problem is that it doesn't work when I run my PC program the first ...
0
votes
1answer
31 views

Serial loop stopped after a while, I don't know why

I am very new to Arduino. I wrote a program in order to read some registers in a I2C device. I receive HEX datas. So the Arduino LEONARDO is connected to the external board using the 2-wires-bus. ...
0
votes
1answer
24 views

Why is Serial.begin(9600) interfering with my multiplexor functioning?

I have an Uno hooked up to a sparkfun 8 channel multiplexer (https://learn.sparkfun.com/tutorials/multiplexer-breakout-hookup-guide). I have it wired up like this: Arduino0 --> S0 Arduino1 --> ...
1
vote
2answers
40 views

Serial monitor “button” implementation

I have a small project and I have some problems. The ideea of the project is the following: I have an LED which is commanded by two "buttons". The buttons are basically 1/0 values which I have to send ...
0
votes
0answers
36 views

Can't send AT commands using Arduino Serial Monitor but can receive data

I've been sitting with this problem for a while now. I have a ESP8266 WiFi module and I connected it to my Arduino Uno powering it from the 3.3V supply. Initially I tested it with the serial monitor ...
-1
votes
2answers
41 views

Can i use string and int in Serial.println together?

I just yesterday started programming on arduino, and I have a little problem. I want to print "#S|SKAITYMAS|[1]#" in one line, except instead "1" I would like to use int value. However, this one ...
0
votes
1answer
21 views

sim800l module just repeating data sent via serial

I've got a Teensy 2.0 with simple AltSoftSerial as displayed on image: As you can see, when I send a command (or any other input via serial) the sim800l module send me the same input. I tried to ...
0
votes
0answers
9 views

How do I Parse JSON data (using ArduinoJason) from incoming chars in serial port

I'm using the ArduinoJason Library, and I'm trying to figure out how to parse a JSON string as a command, when I get a JSON object input through the serial port. The issue I'm having is figuring out ...
0
votes
1answer
40 views

Arduino Mega 2560 and Android USB OTG serial communication

currently I am building a little project based on the Arduino Mega 2560. My goal is to send some data gathered by some sensors to an Android phone. It has to be as basic as possible. Buying new ...
1
vote
2answers
26 views

Sending GPS data to computer via USB and then to iPhone app through Wi-Fi on LAN [closed]

I was wondering how I would parse data from a GPS module from the Arduino to my laptop and from there send it to an iPhone app I'm building. One idea I had was to have it print the incoming serial ...
0
votes
1answer
36 views

Using SoftwareSerial to send data to itself

I'm debugging a project which includes SoftwareSerial. I'm not convinced the serial connection behaves as expected, so I came up with the following simple test: #include <SoftwareSerial.h> ...
0
votes
3answers
47 views

How to handle an interrupt that interrupts a serial communication?

I am at the moment trying via ros to publish a status message about how many steps a motor has moved. Problem, is that value doesn't to be readable, or the only thing I am able to read from the topic ...
3
votes
1answer
29 views

Serial.read() is getting a whole string rather than just a character?

From the arduino documentation, the Serial.read() function is supposed to return a single character at a time from incoming serial messages. So if I program the arduino with the following: #include "...
-3
votes
1answer
22 views

Fading RGB LED between 10 and 60 cm

What I want to achieve is that between 10 and 60 cm of my HCSR04 sensor the color fades from red to blue on my RGB LED in steps of 1 cm between 10 and 60 cm. I have tried creating some own functions ...
1
vote
1answer
41 views

Controlling Relay Using Serial Monitor

I tried to make a program that can control a 4 channel relay (with LEDs as indicators) with a serial monitor. First time I tried to program it using a char command to make it turn on only, it worked. ...
0
votes
2answers
49 views

Sending Large Packets and Reassembling over Serial

I'm trying to send info of about 30-40kB over the Serial ports on an Arduino Due. But I'm running into a few problems. First, before we get into the actual transfer over the Serial, I want to try ...
1
vote
0answers
23 views

Arduino only accepts one programming update per laptop boot

I am only able to upload the code to my Arduino Uno once, and then I have to restart my laptop to do it again. I am using Ubuntu. What could be causing an issue like this?
-3
votes
0answers
16 views

Arduino Uno after using with Yun Shield?

Will my Uno still work after using it with the Yun shield? The board seems unresponsive to me pressing the reset button and I can't find its old serial port - any help? Cheers. EDIT - Pin 13 is HIGH ...
1
vote
2answers
56 views

Does serial speed affect performance of other tasks?

I have explored Google and the Arduino site and this site and cannot find a mention of this, so my guess is that serial is handled by a separate component to the core processing and so different ...
0
votes
1answer
29 views

My computer dose not recognise my arduino Uno

I had never used Arduino before. When i tried to interface my new Arduino Uno board to my computer, the computer failed to recognize the board. Why isn't the board interfaced successfully? How should ...
1
vote
1answer
37 views

ESP8266 12e Arduino IDE outputs garbage values on serial monitor

I recently started using the esp8266 12e (amazon link: https://www.amazon.com/gp/product/B010O1G1ES/ref=ask_ql_qh_dp_hza) and hooked the board up to the Arduino IDE. When trying to run any of the ...
1
vote
1answer
38 views

Serial communication with Python

I am trying to send integer from my Python program to Arduino MEGA. If I send 1, the LED should turn on and If I send 0 the LED should turn off. I was able to write Python code correctly as I think. ...
2
votes
1answer
53 views

Check if Arduino is connected to PC

I have been searching around the Internet to find if there is a way to check if an Arduino is connected to a PC or not. For example: if my PC is turned on, the Arduino will listen to any serial ...
-1
votes
1answer
55 views

avrdude: ser_open(): can't open device “/dev/ttyUSB0/”: Not a directory

Good evening! I know this type of question has been asked by Abhay bh but my question is different: I tried to upload my program on my actual Arduino Uno and received the error shown below: I did ls ...
2
votes
2answers
40 views

Arduino mini pro as ISP for Atmega329P-PU serial monitor failing

After trying a lot of tutorials and manuals around the web including at least 20 solutions here on StackExchange, I don't know what to try anymore. My goal is to write a message in the serial monitor ...
2
votes
0answers
48 views

Serial Communication Between 3 Arduinos Doesn't Work (Daisy-Chain)

In my project, I have to send a string from one arduino to a second arduino, and make it send the same string to a third arduino. I used UART and SoftwareSerial library, and connected the arduinos ...
2
votes
3answers
44 views

Sending textual and nontextual data simultaneously across a serial port

I am currently using an Arduino Uno and creating an LCD simulator that works by sending LCD data through the hardware UART (serial interface). This LCD data is very short in length; in this case, it's ...
1
vote
1answer
50 views

Atmega328p programming with Arduino libraries

I'm trying to use the serial communication to work between a naked AVR Atmega328p and a computer (OS X and Linux Ubuntu). I can program the atmega (using a pololu programmer), I make it blink a LED ...
1
vote
1answer
58 views

Possibility of installing custom firmware from Arduino Uno R3? [closed]

I've been messing around with installing keyboard firmware onto my Arduino UNO R3 (I used this tutorial) and had an interesting idea: would it be possible to have this install custom firmware, ...
1
vote
1answer
59 views

Serial Communication Not Receiving Entire String

I have an Arduino connected to a pico motor driver that is supposed to take a number of steps for a specific number of triggers that gets from a source (i.e. waveform generator). I've setup the code ...
-3
votes
1answer
20 views

Connecting an optris to an arduino uno to send and receive hex strings

I have an optris CT IR sensor, data sheet below. Is it possible to connect the Uno to the sensor, so I can send a hex string (01) and hopefully receive a hex string from the sensor (04 D3)? https://...
-3
votes
1answer
42 views

Arduino Parse data serially on VB [duplicate]

I am working with Arduino Uno, I have tracker application running on Arduino Uno board. I am sending data in comma separated value. Now I want to view data into Visual Basic. I have code as below. The ...
1
vote
4answers
103 views

External 5V Power and USB Serial

I have a Chinese arduino nano clone, but i dont know if its possible to connect the arduino to external (5v) power and have an usb serial connection ongoing. I'm trying to make a PC controlled LED ...
0
votes
1answer
61 views

Code will not run when serial monitor is not open

I have never seen anything like this. My code runs perfectly as long as the serial port is open. However if I connect it to external power, or even if I just try to run it plugged into my computer ...
0
votes
1answer
28 views

Trying to Serial.write RAW code properly

I have a SIM800L Module connected to my arduino Nano. I want to open a TCP connection from the sim800l module to my own server and send a text string. The connection is working however I am not able ...
0
votes
1answer
50 views

Serial ports(in 1.0.5 & Port in 1.6.11) is greyed out under tools

I am running a linux distro on my pc(Ubuntu 16.04). I have installed Arduino IDE(version 1.0.5 since it's the only one available on the store) from the Ubuntu Software Center and also using the .ZIP ...
-1
votes
1answer
63 views

Can I create a serial.read command with the arduino code alone?

I am trying to manipulate a project and the simplest way to do what I am trying to do would be to use the existing code. This code is designed to take an input from the serial monitor using serial....
1
vote
1answer
32 views

Way to use other baud rates in console or different input/output rates

I want to send some test codes to a MIDI synthesizer, so I wrote a program that lets me just type in hex codes on the serial monitor and send it over serial as the byte value. For example typing "90 ...