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

Send and Read packet xbee AT mode

I have a simple network created using Xbee series 2 devices. My network is very simple, my end-device with Arduino UNO read a temperature and Lightning, display this value into LCD and send using Xbee ...
2
votes
0answers
35 views

Faster output of Serial.print() data coming from TSL1402R sensor [on hold]

I am reading a TSL1402R with an Arduino Mega2560. The code is based on the sketch from the arduino playground here:http://playground.arduino.cc/Main/TSL1402R The application is a digital caliper for ...
0
votes
0answers
21 views

Arduino IDE in conflict with pyserial for use of serial port in OSX Yosemite

I'm trying to communicate with an Arduino Uno via pyserial using a code that I wrote for Ubuntu. However, when I try to use the same code in OSX Yosemite after identifying the serial port for the case ...
1
vote
2answers
36 views

Making a current GPS code run once, and only once, after the code is 'activated'

I have a GPS code that I need to run only once, but every different try gives me errors, including placing the whole code in void setup(). Is there any way that this code can be run just once? As of ...
0
votes
1answer
35 views

Cannot assign COM port to HC-05 bluetooth device

I can't set a COM port to my paired BT module. For better understanding I recorded a YouTube video to make sure I show everything. Hardware: Arduino Nano knock-off by RobotDyn (atmega168) Bluetooth ...
1
vote
0answers
30 views

Getting some unknown characters while trying to connect my SIM900A to my PC [on hold]

Im trying to connect my SIM900A. While trying to connect I'm getting some junk characters and not able to pass A T Commands Attached are the screen shot. Note:- Im getting the blue light blinking....
-3
votes
0answers
23 views

A minimal example of serial communication from Leonardo to computer [closed]

Setting: A (windows) PC connected to a Leonardo by USB. I want a minimal example such that when a python script on PC is executed, it will get a variable from Leonardo, then increment it, then set ...
-1
votes
0answers
29 views

Unable to send serial data to XBee connected to Arduino Uno without a shield

So here are some pictures of the setup I have with an LED, 330 Ohm resistor, Arduino UNO, 2 XBee S1s, and many wires, http://imgur.com/a/FpKob For specifics, here is the wiring, XBee Pin 1 (VCC) ...
1
vote
1answer
25 views

strtok problem while parsing String

Here is my code. The incoming string is "*CRB12344,Temp25,Humidity55,CC5#" I am unable to get value of Temp which is 25 and Humidity which is 55 and CC which 5. It only display the value of CR i.e ...
1
vote
1answer
18 views

State machinese for serial input

I am trying to control a servo using keyboard. void loop() { if (Serial.available() > 0) { x = Serial.parseInt(); while(pos < 180){ pos = x + pos; Serial.println(pos); myservo.write(...
1
vote
3answers
43 views

Arduino Pro Mini Serial Monitor garbage

This is my first post. I hope that I am posting in the right section of the forum. Otherwise, could an admin move this topic to the appropriate section please? Board : Arduino Pro Mini 3.3V 8MHz ...
1
vote
0answers
28 views

Why is my radio circuit working with other arduinos but not the Pro Minis?

I have some Arduino Pro Minis. I have both the 3.3V/8MHz and 5V/16MHz versions. I'm trying to get them to work with the nRF24L01 RF modules. I've lightly modified some example code from the RF24 ...
1
vote
1answer
27 views

read/write data from 2 arduinos simultaneously over python

So for my project I have one Arduino Mega hooked up with a quadrature rotary encoder which is connected to the Computer. The other Arduino Uno is connected to a circuit I build which in turn is ...
4
votes
3answers
35 views

Arduino Unreliable Serial communication

After reading the following 2 articles: https://hackingmajenkoblog.wordpress.com/2016/02/01/reading-serial-on-the-arduino/ https://hackingmajenkoblog.wordpress.com/2016/02/04/the-evils-of-arduino-...
1
vote
2answers
44 views

Problems reading I2C sensor when using a Xbee module

I'm developing a project where I can control a RC boat with GPS and a magnetometer. How ever, I was developing everything connected to my computer and worked pretty well. When I was going to make some ...
3
votes
1answer
36 views

How to display an entire incoming string from the serial monitor in arduino ide?

this is my first question in this forum. I need to receive a string from the Arduino serial monitor and display it when the communication is over. I have a similar problem like the one discussed in ...
0
votes
1answer
27 views

What is wrong with this processing code?

I have written a processing code to work along with my arduino code for the arduino UNO. In this I'm trying to control the colour of the processing window by the arrow keys. However, I'm doing this in ...
1
vote
0answers
27 views

Odd symbols in ESP8266 responses to AT commands

I used the code below to control an ESP8266. I am getting some unknown symbols in the responses. #include <SoftwareSerial.h> const byte rxPin=2; const byte txPin=3; SoftwareSerial ESP8266( ...
0
votes
1answer
41 views

Why does exit status 1 stray '\302' in program pop up around Serial.println ( “-> Second Service load”);? [duplicate]

/* Controlling a servo position using a potentiometer (variable resistor) by Michal Rinott <http://people.interaction-ivrea.it/m.rinott> modified on 8 Nov 2013 by Scott Fitzgerald http://...
1
vote
2answers
66 views

How to detect Arduino serial port programmically on different platform?

I am trying to write a little program that needs to detect arduino port automatically. I have tried many methods but haven't found any reliable way. I can see that Arduino IDE could detect it, by ...
0
votes
2answers
35 views

Print when echo is read by HR-S04 sensor

I'm trying to see when an echo is received by my HR-S04 sensor. I have a Serial.println within my while loop to read the signal and see once a change happens to break the loop. The issue is my serial ...
0
votes
2answers
55 views

Inconsistent response AT command

I'm building a vehicle tracker with Arduino shield with Waveshare SIM 808. I am communicating with the Arduino via AT commands, and came across the following problem: The method "leserial ()" returns ...
0
votes
0answers
18 views

Bluetooth Communication between LightBlue Bean and MATLab

I have been trying to find a way to get my LightBlue Bean wireless prototyping board to communicate directly (write and read information) with MATLab via Bluetooth connection in real time. I did a ...
2
votes
2answers
46 views

Arduino trim: does it remove the \n as well?

According to the manual: https://www.arduino.cc/en/Reference/StringTrim Trim strips one or more whitespaces from the beginning and the end. Does it also removes tabulators and \n ? I have the ...
1
vote
0answers
41 views

save bytes from Serial into ROM (EEPROM)

i am trying to save an incomming text from serial into the rom of the arduino using EEPROM. I found out that you can only save a byte at once. So i thought i could do it like that: #include <...
-1
votes
2answers
74 views

RFID Reader ID12-LA reads every card as ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ

My new RFID reader ID12-LA by SparkFun can recognise an RFID tag, but it can't read its tag number - the Arduino IDE outputs the tag as ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ Any help on how to convert this into a proper ...
1
vote
3answers
29 views

How to keep amperage in serial and parallel?

I have a 2000mA AC adapter and also I have the lights that I show here: Each of these lights consume up to 300mA. If I make a circuit with 3 lights in serial, ¿will the amperage of each light ...
-1
votes
1answer
43 views

SoftwareSerial data not available

Second time I'm asking the same question with no solution, let me elaborate in other way for clarity. I wrote an Arduino program which uses two serial ports, one is hardware serial port and other is ...
1
vote
1answer
37 views

Serial print message results in gibberish

I'm trying to print messages to the serial monitor, and all I get is some unreadable format. Looping Serial.println("Wait...!"); gives me the following results: ö’ö’ƒÕ•¬­ƒ´¼Õƒö­“ƒ²ƒƒƒ¬‘¼¬Õ”’­­“ƒ¬• ...
4
votes
1answer
42 views

Arduino - read multiline serial input

I'm trying to get data from a heat counter via the serial, the format of the response is: t1=ХХХ.ХХ t2=ХХХ.ХХ t3=ХХХ.ХХ t4=ХХХ.ХХ P1=ХХ.ХХ P2=ХХ.ХХ VolSpd1=ХХ.ХХХ VolSpd2=ХХ.ХХХ MassSpd1=ХХ....
-3
votes
1answer
43 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
33 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
45 views

Read serial 8 bytes from Arduino buffer [closed]

I am fairly new to Java, but with a rather complicated question. We are looking at reading some bytes coming in from an Arduino. The Arduino sends bytes in the form: Serial.print(Voltage1); Serial....
1
vote
1answer
33 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
38 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
51 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
51 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 ...
-1
votes
0answers
179 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
30 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
17 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
1answer
29 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
35 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
36 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. ...
1
vote
1answer
27 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
48 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
44 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
41 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
11 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
51 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 ...