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
7
votes
4answers
14k views

Watchdog timer stuck in restart loop? (green led flashing)

I am trying to set up a way to reboot arduino on command. The code below should do that but it seems like my arduino just get's stuck in some sort of a loop where I cant upload or get any serial ...
1
vote
1answer
1k views

Wired serial connection between two Arduinos - do they need a common Ground (GND)?

I would like to connect two Arduinos by a serial connection. Is it sufficient to connect TX1<-->RX2 and RX1<-->TX2 or do I also need to connect the GND of the two Arduinos?
0
votes
1answer
357 views

Unable to light up all the LEDS connected to Arduino using processing

I have 3 LEDs connected to my arduino which are controlled via laptop key presses with processing. While the LEDs are able to light up when the respective buttons are pressed, i am unable to light up ...
2
votes
2answers
1k views

How can I reset the program on an Arduino Uno while the device isn't recognised by my computer at all?

So I've recently been playing around with my arduino uno, and today it completely refuses to communicate with my computer at all. I've tried using other cables, switched OS (Tried Windows 8.1 and ...
1
vote
1answer
2k views

Reading text/strings via processing

I'm trying to control an led attached to my arduino via key presses on my laptop.When i hold down a key, the led should light up, and when i release the key, the led should turn off. While my code ...
13
votes
5answers
20k views

Reducing lag between the arduino and a processing sketch on my computer

I'm currently on project #14 of the Arduino project book. I'm trying to control a processing sketch on my laptop using my Arduino. This is accomplished by using a potentiometer to control the ...
0
votes
1answer
1k views

Best way to interact arduino and python

So, i've worked with the pySerial module for python, where I communicated with my arduino via serial. However, this module only works for 32bits and I would like to make my project work on both ...
3
votes
1answer
4k views

Connecting a USB 3.0 Flash Drive

Is it possible to connect the nine pins from a USB 3.0 memory drive to the corresponding GPIO pins of the arduino (intel Galileo is what I am using, but it is very similar) and access the drive's ...
13
votes
2answers
3k views

Making analog telephone calls?

How can we make the Arduino board interact with old, analog telephone, and to make phone calls? I guess it involves connecting the board to the telephone with some specific cable (how it's called?) ...
3
votes
3answers
3k views

Interfacing Arduino through USB or I2C?

I am planning to connect multiple Arduinos to my Raspberry Pi. There are basically two ways I can achieve that: Use an USB hub. Each Arduino will then be available through ordinary serial commands ...
30
votes
2answers
33k views

How does the Arduino handle serial buffer overflow?

How does the Arduino handle serial buffer overflow? Does it throw away the newest incoming data or the oldest? How many bytes can the buffer hold?
2
votes
3answers
9k views

Why does serial port stop sending data?

I'm using an Arduino Leonardo to interface with two pressure sensors and Python on my laptop, a MackBook Pro. I'm using arduino IDE V. 1.5.4, Python V. 2.7.6, and OSX 10.8.5. One pressure sensor is ...
2
votes
1answer
4k views

Arduino reading serial data non-blocking

I have an Arduino reading serial data and responding to other inputs as well, I'm trying to read incoming serial data without using the while, if at all possible. the incoming serial data will be ...
7
votes
5answers
12k views

Programming arduino via bluetooth module issue

I followed a tutorial on how to setup arduino and bluetooth so it can be programmed without usb cables. I didn't use capacitors or resistors asthere doesn't seem to be a need for them. I have the ...
0
votes
1answer
580 views

Data packet format when USB initialized as COM port

Does anyone know how the data in data packet looks like when the USB is initialized as COM port? I have a Arduino Mega 2560. I have initialized COM port with a baud rate of 9600. I know that there ...
2
votes
1answer
832 views

arduino EM408 GPS problem

I have written this little snippet of code to interface with EM408 GPS. #include <SoftwareSerial.h> SoftwareSerial GPS = SoftwareSerial(2,3); //rx,tx void setup() { GPS.begin(4800); Serial....
3
votes
1answer
2k views

Is there a way to test whether the UART Tx buffer is empty without waiting?

Is there a way to test whether the UART Tx buffer is empty without waiting? serial.flush() waits, so it won't help me. I tried looking into serial.SerialEvent(), but the link was broken on the ...
1
vote
2answers
2k views

Error while connecting Arduino to Macbook: “serial port already in use. try quitting any programs that may be using it”

I'm trying to connect to my Arduino board through a macbook pro with mac os x 10.9.3 installed. I'm following the instructions from the arduino guide and in the connection section: " Connect the ...
26
votes
3answers
121k views

What is Serial.begin(9600)?

I know that this is to initialize something: Serial.begin(9600); But I want to know what it really means?
4
votes
1answer
607 views

Can a PC connect to an Arduino for serial communication without installing the entire dev kit?

I'd like to send a prototype board to a friend pre-programmed and wired. Ideally they should just need to plug in the USB and connect to it over a serial COM port. With another laptop I used for ...
3
votes
2answers
3k views

Connecting Nokia 106 to Arduino

I was wondering if this can be done. I got a Nokia 106 and am trying to make it talk, but the audio jack doesn't seem to cooperate and the Fbus pins are right under the SIM slot, which is right under ...
8
votes
5answers
37k views

Arduino Pro Micro, get data out of Tx pin?

I have a Sparkfun Arduino Pro Micro with an ATmega32u4 on it and a Roving Networks RN32 Bluetooth Module Theoretically, I should be able to solder the Rx of the Bluetooth to the Tx on the arduino and ...
5
votes
2answers
2k views

how does serial port communication work under the hood?

im just looking for how to send/ write date to pc over serial port from arduino..vice versa. I have few Question to ask after taking so much time and couldn't figure it out myself. I hope you guys ...
1
vote
1answer
72 views

Simple Script controlled by Raspberry not working

I can't figure out why the next script is not working. I have attached the Arduino to one USB port of the raspberry pi, in which I've installed pyserial. I just want to turn off/on a led depending of ...
2
votes
2answers
869 views

Matching Baud Rates

So I am working on speeding up a nixie tube speedometer, in this question: , but this brought up another question. Would having matching baud rates for multiple external devices speed up processes. ...
6
votes
5answers
10k views

Simultanous read and read/write on two serial connections

At the moment I'm using two softserials to connect to a GPS and an GSM module. It seems not possible to have two open software-serials. So I was looking for an solution After the initial-setup, the ...
5
votes
3answers
3k views

Super slow serial (UART) communication on Arduino

I am using this device for my Arduino that connects to the OBD-II port of my car to get various information such as speed, rpm, etc. I am using this for a digital Nixie tube speedometer using the ...
1
vote
1answer
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. ...
0
votes
1answer
421 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?
5
votes
3answers
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 ...
42
votes
20answers
124k 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 ...
3
votes
1answer
4k 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 ...
11
votes
1answer
701 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 ...
3
votes
2answers
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 ...
62
votes
12answers
377k 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 ...
1
vote
1answer
7k 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. ...
1
vote
1answer
445 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 ...
7
votes
4answers
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?
8
votes
1answer
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, ...
1
vote
2answers
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....
1
vote
3answers
3k 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?
3
votes
1answer
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 ...
7
votes
1answer
4k 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 ...
4
votes
1answer
3k 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. ...
2
votes
2answers
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 ...
30
votes
12answers
115k 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 ...
6
votes
1answer
1k 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. ...
1
vote
1answer
5k 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 "...
11
votes
3answers
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, ...
16
votes
7answers
117k 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;...