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

0
votes
4answers
356 views

Will enabling parity bit actually decrease corruption?

I have an Arduino Mega communicating with a Bluetooth adapter through one of the auxiliary hardware serial ports. It works, but there appears to be a corruption rate of approximately 1 in 200 small ...
0
votes
0answers
22 views

Is it possible to program the Arduino with only the RX and TX pins?

I am building a robot and I want to possibly implement some wireless programming functionality into it. I want to know if the programming procedure only involves the serial line or if there is some ...
0
votes
0answers
13 views

ICT Bill Accepter

I have a ICT a6-15scp-usd4-ii. I have all of the wires for it. I dont have the gambling machine it came out of and it was laying around. Is it possible to make a Light come on when a bill is put in? ...
3
votes
1answer
30 views

Is it OK to Serial.print(message), when the USB cable is not connected to a host PC?

Often I put a bunch of Serial.print( F("debugging messages") ) in my Arduino sketch. Normally those messages go up a USB cable to a host PC so those messages can be seen on the serial monitor. I ...
0
votes
0answers
16 views

Get the last piece of data received on a serial port

I'm using software serial to use multiple ports as serial in an arduino UNO and each of those is constantly receiving data. I want to know a way to get just the "newest" data each time I listen to one ...
0
votes
1answer
25 views

Is there a practical way to broadcast and receive ascii payloads over ethernet or wifi?

How best might arduino nodes pass incoming serial ascii messages out as ascii network broadcasts for all others to receive and pass out through their serial ports? ie: typing a msg from the IDE ...
1
vote
1answer
32 views

Serial Not Working With I2C

I have been working on a hydroponic garden that is controlled with Arduinos. I have everything working except for the user interface. What I would like to do is have an LCD screen paired with a rotary ...
0
votes
3answers
59 views

Use only one pin as serial output/input with arduino

I'm looking for a way to use Arduino UNO's as serial outputs or input "individually", I don want to have an RX pin for each TX pin. I know the library SoftwareSerial, but I'm not sure if it is posible ...
0
votes
3answers
33 views

Serial Monitor not displaying anything

I have a very basic script that is supposed to display something to the serial monitor but no matter what I try the serial monitor won't display anything...I;ve watched about 5 tutorials now and each ...
3
votes
2answers
94 views

if(Serial) not working correctly on micro or pro micro

I have an arduino micro and several clone "pro micro"'s both of which are based on the 32u4, i'm trying to make my project have a debug mode which is only active when the serial port is open, the ...
2
votes
1answer
27 views

Send AND Receive through i2c / set Arduino as master AND slave

For a project I'm using 2 Arduino Uno's, where Arduino#1 (master) sends raw data to Arduino#2 (slave). The slave should receive and encrypt the data and afterwards send the encrypted data back to the ...
0
votes
1answer
54 views

Why doesn't my object's method return back to my caller method?

I am creating a miniature computer using an Arduino, and I am creating a full-scale interpreter for it. Everything works, and the code begins to run after calling the runCode method, but once the run ...
0
votes
0answers
25 views

Arduino IDE programs Leonardo but cannot open serial terminal

I'm using Arduino: 1.6.7 (Mac OS X 10.11.3), Board: "Arduino Leonardo". When I try to program my code, it works without problems. When I want to open the built-in Serial Monitor or Serial Plotter, ...
1
vote
1answer
40 views

Unpacking arduino binary data on a python sketch

as a follow up to my earlier post Simultaneously reading data from multiple serial ports, I am stuck trying to develop a python sketch that can read the incoming serial data from the com port on my ...
0
votes
3answers
49 views

Splitting String from Serial

I am currently working on a program for an Arduino uno and want to, in the program, when it receives a 16 digit number from a serial transmition, it will split the 16 digit number into 4 separate 4 ...
0
votes
0answers
12 views

BLE Python with GUI on OSX

Has anyone connected BLE devices with Python + GUI on OSX? I've looked into a few libraries (most are old), but one that has the most success if Adafruit's BlueFruit library. However, this library ...
0
votes
0answers
13 views

Using the raspberry Pi 2 mod B to programming arduino with a usb externally powered hub [migrated]

HI i have started to use a usb externally powered hub due to power demands of arduino and current drops in rpi but when i connect the usb cable from hub to arduino port is not available in ide. I dont ...
0
votes
2answers
35 views

How to perform action if two rfid tag UIDs have been detected?

I'm using an rfid-rc522 and I want to print to the serial a string of text if two rfid tags have been read in a given time period. Essentially this: 1. First tag is read (print to serial: Tag 1 has ...
0
votes
2answers
53 views

How to upload a sketch via Arduino Nano

I have two Nano boards, but the first one seems the CH340 chipset was burn. :( , Nano v3, CH340 chipset but unable to identify after connect to my Mac using USB Nano v3, FTDI chipset and in good ...
0
votes
2answers
37 views

Override #define statements in libraries

I'm using a library that, by default, wants to use Serial2 as the interface to a display, however, I'm working with an UNO which only has one serial interface, so the compile fails. I'm trying to use ...
5
votes
2answers
74 views

How to stop Arduino from reseting after serial connection lost

If I connect to an Arduino Uno via a serial console to read debugging statements and then disconnect, the Arduino appears to reset. How do I stop this from happening? I'm trying to program an Arduino ...
1
vote
1answer
71 views

Arduino Uno R3 & Ethernet Shield (W5100)

First off I want to know if these things are compatible. I have been trying for ages to get it to work. The Ethernet shield did not come with a MAC address so I made a custom one. I am trying to get ...
0
votes
3answers
72 views

Simultaneously reading data from multiple serial ports

I have three sensors latched on to three different Arduino devices. The respective Arduino devices are connected on to an Arduino Mega on Serial1, Serial2 and Serial3. The data from each device ...
0
votes
2answers
37 views

Edit variables through Serial?

Hello in a previous question i was able to set variables through if statements const uint16_t inputLength = 512; int ss = 0; int bHold = 0; void setup() { Serial.begin(9600); } void loop() ...
0
votes
3answers
68 views

USB Serial port not recognized

Have both an Arduino Uno R3 and a Blend Micro that I have used to prototype a number of projects. Just got a new MacBook Pro and cannot get it to recognize the boards through the USB serial port. I ...
0
votes
0answers
29 views

Memory reduction in converting Serial.read to int/byte from 0-255

I'm taking rgb values in over Serial in a format like c-255 255 255. I currently have this code, struct RGB { int r; int g; int b; }; struct RGB getRGBValues(char* rgbcode) { char *rgbend; ...
1
vote
3answers
78 views

Arduino UNO Rx/Tx speaks to itself

I'm trying to make my chinese arduino (which use a chinese CH340G chip) speaks to itself via serial. I have wired rx/tx together. Then, I run the arduino IDE and go to the serial monitor. When I ...
4
votes
5answers
176 views

Serial.print() is slower than it should be

I'm trying to use Arduino as a DAQ but the Serial.print() is not working as fast as I expected. How many bits are sent if you are using a int, because if I use a uint8_t, it's taking the same amount ...
0
votes
1answer
34 views

How to change Multiple variable values through Serial Monitor

I am trying ... with minimal success to change/Check and also run voids through the serial monitor .the code i put i am having probles is that when i am try to send a value larger than 9 the value ...
1
vote
1answer
38 views

Serial monitor disconnecting itself

Problem: can't print to the serial monitor, it appears that the serial monitor disconnects itself after uploading a program. I'm brand new to arduino, and I'm trying to upload a basic program to ...
0
votes
0answers
14 views

Design - How to design a protocol for a smartphone app?

Last year I created (with lots of help, lol) and released an open-source project to help teams practice a dog sport I also do myself: Flyball. Flyball is like a relay race with 4 dogs, and my project ...
0
votes
3answers
36 views

Led issue with arduino controled by raspberry pi/python

I'm having an issue with my project. My project is 8 leds and a potentiometer on an arduino being read and controlled by a raspberry pi running python. when I'm using a potentiometer the signal is ...
0
votes
0answers
31 views

LCD is not printing strings, only integers with Arduino

As mentioned in the title I'm facing a problem in printing strings in the LCD. It's printing actually weird characters. #include <LiquidCrystal.h> LiquidCrystal lcd(7, 8, 9, 10, 11, 12); void ...
0
votes
0answers
31 views

Arduino sending data over MAX485

To introduce myself as I'm new to this forum, I'm student from Czech and currently I'm working on a meteostation project. I've got Arduino set up, with plenty of weather sensors, as well as WH1080 ...
0
votes
2answers
52 views

Reprogram CH341A chips VID PID etc

I know it's possible (in theory) to reprogram the VID PID details back into a chip. It is however way beyond me. Recently I learned that Microsoft distributed a piece of malicious software as part ...
1
vote
1answer
82 views

Problem Sending Colors from an Audio Visualizer to Arduino

Sorry in advance for the length of my question; I want to provide proper context. I wrote an audio visualization program in Java that (in addition to making "pretty pictures" based off of the ...
0
votes
2answers
24 views

Branching Bus for Sensor

I am looking to setup a system where I have a master ardunio polling a number of sensors. The way I am thinking is hooking the master TX line to the sensors RX line(and the opposite for the other ...
1
vote
4answers
55 views

Converting data between baud rates

This isn't strictly limited to Arduino but I spend a lot of time with serial devices on my Arduino and I'm sure that others do as well: So don't Troll. Here goes.. Let's say a device sends three ...
1
vote
1answer
20 views

Atlas Scientific pH project - serialEvent3 problems

I am trying to get this pH project working and I've noticed that the serialEvent3 never sets the boolean value sensor_string_complete to true. I am not sure if it is actually capturing the values ...
0
votes
0answers
62 views

Why the serial connection only work when Tx and Rx are shorted?

I have a Arduino Pro Mini 3.3V connected to a sim800l chip using a serial connection of 9600bps. When I connect the Arduino to the device, it seems I don't receive anything on the Arduino Rx pin. I ...
0
votes
0answers
27 views

Arduino Uno sometimes cannot connect to the computer

Last month, I bought an Arduino Uno R3 board (believed to be a clone). In the first few week, it seem to be working fine. However, in this week, it became very strange. What is basically does, it ...
3
votes
1answer
115 views

What is the best serial protocol for bidirectional communication with NodeMCU?

Except hardware UART. Main requirements are reliability and simplicity of use. Speed isn't as important. Details: I have an Arduino Pro Mini (ATmega328P 5V) controlled via UART. I wish to connect an ...
3
votes
1answer
48 views

Processing Serial data

I have a PM10 sensor that I'd like to get the values from. Here's the official documentation from the sensor: I've looked as serial communication, but how do i process byte by byte of information ...
0
votes
0answers
26 views

Serial Monitor Just Stops Working

I am communicating with two Arduinos with serial. The program works great for a while but then the serial monitor stops showing values in the RX code and will not work again unless the code is ...
0
votes
1answer
63 views

Arduino and PHP communication only work if I open the Arduino IDE

I have a problem. I try to open a channel to arduino and PHP talk, the PHP would send a command and the Arduino should answer that. It works, but only if I execute some steps before: sudo chmod 777 ...
6
votes
1answer
112 views

How does serial communications work on the Arduino?

With reference to the Arduino Uno, Mega2560, Leonardo and similar boards: How does serial communications work? How fast is serial? How do I connect between a sender and receiver? Please note: This ...
0
votes
1answer
45 views

How to alter joystick values with Arduino Uno?

I'm trying to use an Arduino Uno to read values from a 2-axis joystick analogue input, and alter these values. Rather than the true joystick values, I arithmetically convert the values at neutral to ...
0
votes
0answers
29 views

Serial.read () via Hc-06 doesn't work?

I used the example code of "Serial.read()" from arduino's website. This code works while communicating via cable with pc. But while using Hc-06 on tx3 and rx3, Serial.read() returns unexpected ...
0
votes
1answer
35 views

Gboard 800 (SIM 900 + ATMEGA 328)

Greetings dear reader! I have some trouble storing my IMEI code inside a variable, it always returns an error: "void value not ignored as it ought to be" since then i tried to write it to the serial ...
0
votes
0answers
44 views

Communication between Arduino and xbee

I have two Xbee Pro s2b's; one is plugged in to a usb explorer and the other is plugged into an Arduino Wireless Protoshield, which is connected to an Arudino Uno. My xbee connected to the explorer ...