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
1 vote
1 answer
2k views

Can the official arduino GSM shield library be changed to work with hardware serial on mega

I have a complex requirement that uses a number of libraries that depend on timing I.e. OneWire. When using the official GSM shield on a mega, it loads a version of software serial to talk to the GSM. ...
ShanevanJ's user avatar
1 vote
1 answer
452 views

Arduino Mega's 4 Serial Ports?

I have been using only Arduino Uno. Now I am about to buy Mega. But a question rises. Are those 4 Serial Ports of Mega controlled still through one usb cable?
Zgrknr's user avatar
  • 163
6 votes
3 answers
7k views

What's the fastest way to periodically communicate via serial?

I will be using an Arduino as a bridge between a computer high-level Java client and some low-level hardware computing units (e.g. other Arduinos). I need to find a solution to periodically ...
SagiCZ's user avatar
  • 81
48 votes
21 answers
141k views

Serial data plotting programs

I need to plot serial data from Arduino. I require support for: Various data formats (e.g. signed, unsigned, 8 bits, 16 bits); Plots several data on the same axes; Exports / Imports file data. As ...
akellyirl's user avatar
  • 2,136
3 votes
1 answer
5k views

Using SD card shield on Arduino Due

I have a Seeed Studio SD card shield (V3) that I am trying to use on my Arduino Due. I am having trouble using the SD examples that come with the Arduino IDE. They worked fine on my Arduino Uno by ...
bestfriendkumar's user avatar
11 votes
1 answer
716 views

How can I communicate Raspberry Pi and Arduino (in both ways) using a 10-15m distance wires?

I am starting a personal project of home automation and I have a raspberry pi and an arduino Uno board. I want communicate raspberry pi and my arduino where my raspberry should be able to write and ...
thiagoh's user avatar
  • 211
3 votes
2 answers
11k views

How to create a serial communication connection between Cubieboard running Android and Arduino

I am connecting my Arduino to my Cubieboard that is running Android. I tested this originally with my android tablet and USB cable. This worked successfully for the most part using the firmata kit ...
ValrikRobot's user avatar
70 votes
12 answers
443k views

How do I split an incoming string?

I am sending a list of servo positions via the serial connection to the arduino in the following format 1:90&2:80&3:180 Which would be parsed as: servoId : Position & servoId : Position ...
ValrikRobot's user avatar
1 vote
1 answer
9k views

How to reduce serial speed on Arduino bootloader (optiboot) and on the IDE?

I'm debugging a couple of RS232-to-TTL converter boards that I'm trying to use to program my Arduinos and one thing I would like to try would be to reduce the upload serial speed from 115200 to 19200. ...
Ricardo's user avatar
  • 3,360
1 vote
1 answer
463 views

Shield interfere with Serial Communication

I'm new to arduino. I have nexus duino robot as described in http://www.aliexpress.com/item/3WD-48mm-Omni-Wheel-Mobile-Arduino-Robot-Kit-10019/688287804.html, the shield connected with motors and ...
user3336008's user avatar
7 votes
4 answers
4k views

How to connect Android phone to Arduino?

Is it possible to connect an Arduino to an Android Phone and use it for input/output? Are connections possible over USB? Or do I need to have a wifi or Bluetooth shield?
Chintan's user avatar
  • 171
10 votes
1 answer
6k views

Writing First Library - Serial Stream Object

I have done quite a few projects with Arduino, but have never done more than a "Hello World" in C. I am writing my first library, and a lot of the object oriented stuff is going over my head. Anyway, ...
ahalekelly's user avatar
2 votes
2 answers
2k views

Serial.read has garbled data after a Serial.write

I'm using the Serial1 of the Arduino Leonardo to send and receive data with another MCU. The following code will always retrieve garbled data: byte streamReadResponse; Serial1.begin(115200); Serial1....
Roberto's user avatar
  • 141
2 votes
3 answers
4k views

Serial port /dev/cu.usbmodemfa131 vs /dev/cu.usbserial-A702NY8S

On Mac OSX Mavericks, why does Arduino Uno uses serial port named /dev/cu.usbmodemfa131 while Arduino Nano uses /dev/cu.usbserial-A702NY8S? Are they using different FTDI drivers?
Nyxynyx's user avatar
  • 1,389
5 votes
1 answer
2k views

Reading three signals sent serially on Simulink from Arduino

I am sending three signals from one Arduino mega to another using xbees. On the receiving end I am using these signals in a Simulink code to control servo motors. Currently it is set up to read from ...
user734's user avatar
  • 91
7 votes
1 answer
5k views

How to use RS-232 sheild as software serial port?

I would like to be able to use a USB port at the same time as an RS-232 port with my Arduino Uno board. I unwittingly bought a shield that (I think?) overrides the USB port when it is mounted to the ...
user_name's user avatar
  • 317
4 votes
1 answer
4k views

XBee+Arduino communication problem

I tried testing the system and I’m not sure if the problem is with the XBee’s, the transmitting code, or the receiving code. Before I post my code, I will explain what we are doing with the signals. ...
user734's user avatar
  • 91
2 votes
2 answers
4k views

Arduino unable to read from XBee Series 2

An XBee Series 2 is set to Router AT whose TX and RX pins are connected to an Arduino Nano's Rx and Tx pins respectively. The Arduino is connected to a Mac OSX via USB. A second XBee Series 2 is ...
Nyxynyx's user avatar
  • 1,389
40 votes
12 answers
146k views

Arduino Nano uploading gives error: avrdude: stk500_recv(): programmer is not responding

I have a Arduino Nano (Sainsmart) that I'm trying to upload a sketch to. Under the Arduino IDE, the device selected was Arduino Nano w/ ATmega328. However uploading the sketch gives me the error ...
Nyxynyx's user avatar
  • 1,389
6 votes
1 answer
2k views

Arduino Mega not flashable with XBee PRO S2B

I have an Arduino Mega 2560 with a libelium XBee Shield. If I have an XBee S2 mounted on it and set the two jumpers to the USB setting or remove them, I am able to flash a program onto my Arduino. ...
soerface's user avatar
  • 161
1 vote
1 answer
6k views

Reading multiple bytes from *software* serial

I have Arduino Leonardo board operating lots of AC relays in quite noisy environment. USB works unstable, which sometimes causes the board to hang, so I decided to use secondary serial connection as "...
Alexander's user avatar
  • 101
12 votes
3 answers
6k views

High precision timing on Arduino for serial communication

I am using an Arduino Uno to send time and voltage information over the serial port to Python to plot. However the interval timings between successive time stamps appears to be increasing over time, ...
hawkar's user avatar
  • 543
17 votes
7 answers
131k views

How do I know the sampling frequency?

I am beginning to get a bit confused about sampling rates and baudrates etc. I have this Arduino code: #include <eHealth.h> extern volatile unsigned long timer0_overflow_count; float fanalog0;...
hawkar's user avatar
  • 543
4 votes
3 answers
2k views

Use an Arduino as a user interface for the computer

I wanted to use either Arduino Mega or Uno as a form of an interface between me and the computer. I want to apply it to the following scenario; if I press a button on a circuit board I want it to ...
Jakub's user avatar
  • 151
2 votes
2 answers
3k views

Arduino Serial Monitor only returning Null Characters

I'm trying to simply access my HC_05 bluetooth module and conduct some AT commands through the Serial Monitor. For some reason though, it only seems to be returning Null characters, though it does ...
JcKelley's user avatar
  • 121
6 votes
4 answers
8k views

Arduino disconnecting at upload

This problem doesn't seen to be very common around the Arduino community. Basically, what's happening is that as soon as I click the upload button, the Arduino IDE tells me that my Arduino board is ...
Fadi Hanna AL-Kass's user avatar
5 votes
3 answers
8k views

Arduino serial port reset in Serial monitor & Python

So am I using an Arduino with a shield to gain some voltage values for an ECG. I am then plotting that data in Python. However whenever I "observe" the serial port, be that through the Arduino serial ...
hawkar's user avatar
  • 543
8 votes
3 answers
8k views

Make an Arduino board act as both a usb storage device and a keyboard?

I am making an interface project that, when plugged into a computer, shows up as both usb flash storage and can type like a keyboard when some physical buttons on the board are pressed. I have seen ...
teasub's user avatar
  • 81
30 votes
2 answers
66k views

Arduino as USB HID

Is it possible to build a HID device (like a keyboard) using an Arduino uno? At the time being, I have button inputs on the Arduino giving outputs on the serial line. So, how can I transform my ...
Stuyvenstein's user avatar
44 votes
4 answers
49k views

Why does starting the serial monitor restart the sketch?

If I upload any sketch that sends serial data, I immediately see the TX/RX LEDs flash once the sketch is uploaded. If I then start the serial monitor, the sketch appears to restart. A bare minimum ...
Cybergibbons's user avatar
  • 5,340
10 votes
2 answers
19k views

How does this code line detect if a serial interface is connected?

I am working with some code for remote temperature sensor nodes. They turn the debug interface on and off depending on if anything is conneced to the serial port or not. The code is on Github here. ...
Cybergibbons's user avatar
  • 5,340
1 vote
1 answer
2k views

Extracting data from Arduino MultiWii Flight Controller

I am new to the world of Arduinos but have a new project going with a MultiWii Flight controller. With the MultiWii comes a software for showing all data that is measured from the sensors (...
user2069136's user avatar
9 votes
1 answer
3k views

How can a 5v Uno talk to a 3.3v Due?

I currently have an Uno (which operates at 5v), and I'm looking at buying a Due (which only operates at 3.3v). I'd like to make them communicate via Serial or SPI or similar, but presumably connecting ...
Peter Bloomfield's user avatar
0 votes
1 answer
485 views

Why can't I use Jeelib Sleepy on the Teensy 2 along with Serial

I have been using the Jeelib Sleepy functionality for several years now to achieve low power states on the Arduino ATmega328/1280/2560 boards, specifically the LoseSomeTime functionality. I want to ...
Cybergibbons's user avatar
  • 5,340
6 votes
3 answers
2k views

Serial sensors and the Yun

I am involved in a project that is going to measure PH and chlorine in a swimming pool. The plan is to use a Arduino Yun. The sensors we are going to use are connected using serial. Since we may be ...
Faux_Clef's user avatar
  • 199
14 votes
3 answers
13k views

Serial data showing up weird

I have a simple sketch that prints out "Hello World" to the serial, but I'm getting a bunch of gibberish instead. void setup() { Serial.begin(9600); } void loop() { Serial.println("Hello ...
sachleen's user avatar
  • 7,505
14 votes
6 answers
17k views

Sending Large Amounts of Serial Data

So in the fields of robotics sometimes you need multiple boards and or computers linked together to share information or save statistical data. Currently I need to send a few different variables over ...
Steven10172's user avatar
53 votes
12 answers
271k views

How do I print multiple variables in a string?

Say I have some variables that I want to print out to the terminal, what's the easiest way to print them in a string? Currently I do something like this: Serial.print("Var 1:");Serial.println(var1); ...
sachleen's user avatar
  • 7,505
6 votes
1 answer
1k views

Connecting breakout board to Arduino with UART

I'm using a DigiX (Arduino Due based 3.3V) board to connect to a GPRS/GSM SIM908 breakout board. The SIM908 EVB board has the following pins on its RS232: I've got all three UART TX lines hooked up ...
user2757902's user avatar
8 votes
4 answers
22k views

How can I communicate from Arduino to MATLAB

I want to use sensors on an Arduino to control values in a MATLAB program. What are my options for communicating? I've used Processing to receive data sent via the serial cable, and that strategy has ...
Bill Nace's user avatar
  • 224
22 votes
2 answers
9k views

Why can't I upload a sketch while other components/devices are connected to my Uno?

I wanted to make a fairly simple circuit which would flash a series of LEDs in sequence, using my Arduino Uno (more specifically, a SainSmart clone). I wrote my sketch and it compiled fine. After that,...
Peter Bloomfield's user avatar
10 votes
3 answers
1k views

Custom Arduino board beeps and process freezes while I'm uploading a sketch to it. Why?

The strangest thing is happening to a standalone Arduino board that I designed and built. The board (whose schematics are below) has the following features: It has a ATmega328P with a 5V voltage ...
Ricardo's user avatar
  • 3,360

1
39 40 41 42
43