Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
321 views

arduino nodejs serial data chunked and not in synch

I'm trying to get an arduino sending data to node but with no success. I'm connecting to an ar-drone 2.0 as in https://gist.github.com/maxogden/4152815 Here is my Arduino code: #include <...
0
votes
0answers
116 views

Bluetooth HC-05 Receiving at arduino

Yesterday i've bought bluetooth module hc-05 and it worked fine until today. When i send data from bluetooth terminal from android, EEBlue.available() is always 0 here's my code: #include <...
0
votes
1answer
64 views

atmega88 timer2 32.768KHz and Serial problem

I am trying to use atmega88 timer2 with a 32.768KHz crystal. I'm using a slightly modified version of Nick Gammon's code. I am using Minicore. No bootloader, 1MHz clock from internal oscillator, BOD ...
0
votes
1answer
860 views

How to make I2C work on RS485?

I'm trying to optimize the communication (minimize wires) on a project where I can control a motor and toggle some 230V devices by using RS485 and I2C. On this project, I'm using an Arduino (Mega) ...
0
votes
1answer
74 views

Utilizing two different serial ports simultaneously on a due

I am trying to understand how the serial ports are configured on the due board. Please correct me if i'm wrong, but to my understanding, the due has: Four separate serial ports ("serial", and "serial ...
1
vote
1answer
191 views

Serial.write(buf, len) error. How to remove an error and pass an array of bytes?

int angleServo1,angleServo2 = 0; const int axisX=A0; // ось Х подключена к A0 const int axisY=A1; // ось Y подключена к A1 int valX, valY = 0; // переменные для хранения значений осей int datos[3]; #...
0
votes
0answers
165 views

How to check for valid Serial data, then break?

I'm having trouble completing this code for my university final project. I feel like I'm almost there, but I can't seem to find the final buttons to press. I'm using the Arduino Pro Micro. I have one ...
0
votes
1answer
196 views

Find Elapsed Time on Serial Plotter

How do I find out the elapsed time from the serial Plotter graph? I am plotting sensor values from the Arduino Nano and would like to know the time scale on the x-axis in order to calculate settling ...
0
votes
1answer
49 views

Set computer time on arduino uno [closed]

How to set computer time on Arduino Uno, and then control it (Arduino) with Serial monitor. For example show time on LCD. I have no idea, how to make it using Arduino IDE. So, maybe I can write code ...
0
votes
1answer
122 views

Arduino reading value from external devices on

For this device it says: The PC Interface Option has all the features of the standard DC1100, but also has a COM Port interface that allows you to capture the air quality data to a PC for graphing ...
0
votes
1answer
60 views

Can I switch from Serial to SoftwareSerial at runtime with the same baud?

I'm trying to use a GPS and the Adafruit thermal printer module with an Arduino Nano in the same project (both use baud 9600) and was wondering if I could do something like in the code below? ...
0
votes
1answer
105 views

How to digital read and send the data through serial to PC with speed around 2 MHz?

I would like to read analog data with frequency sampling around 2 MHz and send it to PC to be processed with python for digital oscilloscope. I use Arduino Nano. I have found ADC (AD9057, PDF) that ...
0
votes
1answer
136 views

AT command parsing and listening for incoming SMS Arduino Leonardo SIM800H

I am trying to make a program that receives commands contained in SMS. The commands can be $CMD1 and $CMD2. Of course I need to verify the phone number of the sender by its last 6 digits. Other than ...
0
votes
0answers
90 views

How to establish serial communication between Matlab and OpenCM9.04

I'm trying to follow this example http://matlabarduinorobotics.blogspot.ca/2014/07/matlab-arduino-serial-communication.html , where I replace the Arduino Uno with OpenCM9.04. And the software I use is ...
0
votes
3answers
76 views

Why call a USB connection a serial connection?

Does anyone know why Arduino calls a USB connection a serial? When I hear a serial connection I automatically think of a male pin connection and not a USB connection. Also not sure if this a Linux ...
1
vote
1answer
105 views

Arduino +CCLK at command parsing

I have arduino leonardo and sim800h module. I don't seem to find the problem in my program, this is probably the 5th time I'm rewriting it. Please someone tell me what should I change to work normally....
1
vote
2answers
315 views

MQTT bridging with Arduino and ESP8266 - What software should I use?

Sorry for the vagueness in my question, I am just looking for ideas to point me in the correct direction please... I wish to connect many (read: 20+) different sensors to a local wifi network and ...
1
vote
1answer
97 views

Serial.read(); and state machine for AT commands

I have a strange type of issue: the index of the array doesn't increment and when I print the value from the serialdata[pointingfinger] it just gives me an empty space. This is a state machine (I ...
1
vote
2answers
36 views

Strage delay needed after Serial.read()

I'm using a RedBear Duo to read the Serial writes from a RedBear Nano v2. Basically, I use a digital pin of the Duo to raise an interrupt on the Nano. Once, the nano catches the interrupt it writes on ...
1
vote
1answer
238 views

strtok() command with Serial communicaton

After i take char* variable from serial communication, i use strtok to split variables with " ". But when i do that it acts like there is " " after every character. i dont know why. How can i fix this ...
-1
votes
1answer
88 views

Arduino - use print(.., DEC) to save into variable

I am using: Serial.print(rawCodes[i - 1], DEC); to print into serial monitor, but how can I save (rawCodes[i - 1], DEC) to save into variable?
2
votes
2answers
78 views

Arduino receive response from SIM800H to AT+CCLK? command

I've been trying to make a program that interacts with SIM800H trough AT commands. It worked with the String class, but it was full of "memory leaks" and after a few hours it just hanged. Then I tried ...
-1
votes
1answer
207 views

transmit a sequence of bit using arduino uno [closed]

How do i code to transmit a sequence of bit using arduino uno?My project is about a transmitter and a receiver.Arduino as the transmitter and an application as the receiver.Light sensor will detect ...
0
votes
1answer
374 views

“Serial does not name a type error”

I m getting serial does not name a type error, expected declaration before '}' token line 69 const int trigPin = 9; const int echoPin = 10; const int buzzer = 11; const int ledPin = 13; // defines ...
0
votes
0answers
524 views

Port not showing on Arduino IDE 1.8.5 on MacBook Pro

The port is not showing up on Arduino IDE. I have tried using a compatible Arduino Uno and I'm now trying to connect an Adafruit Flora board. The serial port is just not showing up. Arduino compatible ...
0
votes
0answers
200 views

Receive data on esp 01

I have um esp 01 on port 2 and 3 from my Arduino, I can send several characters, but I cannot to receive many characters, my code is this: #include <SoftwareSerial.h> //TX RX SoftwareSerial ...
-1
votes
1answer
63 views

i uploaded the code but when i open the serial monitor, but the 'sendCommand' isn't working in serial monitor…plzz help

#include <SoftwareSerial.h> #define DEBUG true SoftwareSerial esp8266(2, 3); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); //for ...
0
votes
1answer
333 views

when i compile this code it always 'sendCommand' was not declare in this scope..plzz help

#include <SoftwareSerial.h> #define DEBUG true SoftwareSerial esp8266(10, 11); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); //for ...
0
votes
2answers
99 views

Arduino Due & Spec gas sensor - how to choose specific information from a stream of incoming bytes to store

I'm trying to build an air pollution sensor for a college project, with an Arduino Due and a series of Spec Sensors digital gas detectors. However, I'm having a little trouble getting the first one of ...
0
votes
0answers
22 views

Can I use an atmega32u4 like an ftdi232rl?

Hey all since the 32u4 has built in USB I was wondering if I could make it into a FTDI232rl so I can send serial to usb commands. What I am looking to send it this: Any info on if and how I can do ...
0
votes
1answer
85 views

How reliable is Arduino Uno Serial, via USB (ATmega16U2), CRC needed?

I have a question about the reliability of Serial communication, i.e. in particular if I need to implement CRC/checksum/ECC because of bit transmission errors? I I however think there is no general ...
2
votes
3answers
597 views

Arduino Uno programed from a Nvidia Jetson tx2

I'm trying to program my Arduino Uno with a Jetson tx2 and get the error avrdude: Send: 0 [30] [20] avrdude: ser_recv(): programmer is not responding avrdude: stk500_recv(): programmer is not ...
1
vote
2answers
98 views

How to indicate an End of a stream on USB

I am making a Lora-USB passthrough device using arduino and somehow I want to indicate that a stream over some data has ended. So far I have done: void onLoRaReceive(int packetSize) { if (...
2
votes
3answers
46 views

Set variable value with serial?

so I need to make a arduino program, generates 2 random numbers, makes a + calculation with them and asks user the right answer. If the answer is right AKA Calculation==User Answer, then led is set to ...
0
votes
3answers
928 views

How to receive more than 64 bytes on Arduino?

I am receiving about 90 bytes on the serial port. But Arduino has a serial buffer of 64 bytes only. Because of this limitation I am unable to receive further bytes. char c; void read_response() { ...
1
vote
0answers
487 views

Reading +IPD response from serial.read() using Arduino UNO and ESP8266

I have a python server running on my PC and I am using an Arduino Uno (wifi enabled by a ESP8266 chip) as the client. I can make the the server and client communicate using AT commands as shown below: ...
1
vote
1answer
55 views

Arduino Serial Output Gone Wild!

I'm having a slight problem that I'm unable to work out. I am using an arduino Uno to print an incremental, but predefined wheel circumference. This is all working beautifully except it gives a ...
0
votes
0answers
50 views

How to connect to LCD and communicate via serial usb simultaneously? (UNO)

Pretty simple home automation project I am working on. I'm trying to hook my arduino which has a 16x2 LCD, DHT22 temp/humidity sensor to my Pi via usb. I want to be able to maintain the values on the ...
1
vote
1answer
82 views

Use ATtiny85 to perform initial config on a Cisco router using its USB console port

We have 200+ brand new Cisco routers that have USB console ports (but not the old RJ45 serial console ports). This is quite frustrating because the routers didn't ship with console cables and Cisco ...
0
votes
0answers
23 views

How do I improve Bluetooth communication?

How do I improve Bluetooth communication? You will see, in this image using the Bluetooth monitor application, in order to receive the "ON" response, I had to repeatedly send the "O" character: The ...
0
votes
1answer
35 views

Infrared receiver gives only zeroes for results [closed]

I bought a 37 in 1 sensor kit from Aliexpress. Now am trying to use the infrared receiver with a TV commander. My problem is that it returns as result only zeroes. The wiring is right. The code is ...
0
votes
2answers
327 views

Can a cheap RF module be used for two way communication

Can a cheap RF(transmitter and receiver) module be used for two way communication, not at the same time of course but for example arduino A sends string to be printed on lcd the arduino B receives it ...
0
votes
0answers
150 views

Synchronizing http GET and POST request

My project aims to send HTTP GET request to web page(using Arduino UNO and ESP8266-01) then receive response, extract wanted values from response and react with(for example turn on LED1,LED3) then ...
0
votes
1answer
703 views

How do I get a nonzero output from my HX711 and load cell?

I am trying to set up a load cell using the HX711 amplifier. Whenever I upload my sketch, my serial monitor only will read zeros regardless of load applied to the sensor (no signal appears to be ...
0
votes
0answers
193 views

ESP8266 doesn't connect to WiFi

I'm using an ESP8266 with the following pin configuration and it doesn't connect to my WiFi. The blue light on the ESP module is on and my LED is on. That's it. VCC - 3.3v GND - GND CH_PD - 3.3v GPIO ...
0
votes
1answer
14 views

serial communication between arduino to 89c51 with gsm [closed]

I need to connect the 89c51 with Arduino UNO but same time I need to connect 89c51 microcontroller with Arduino without using serial reception and transmission pins of UNO b'coz that pins already ...
0
votes
2answers
1k views

how to send data to Adafruit Bluefruit Feather (32u4) over bluetooth?

Sup yo. I have my Adafruit Bluefruit Feather all wired up. It's lovely. I've got it responding to commands over the USB serial, activating an array of octocouplers. It's terrific. Here's the ...
0
votes
1answer
25 views

Improper sampling of wave [duplicate]

I am using Arduino Mega 2560 to sample and serially send a square wave. I am using Processing 3.3.6 for logging the data to .csv file. I am receiving about 6k samples at the moment. When I try ...
1
vote
1answer
51 views

Sampling and serial transfer

I am trying to get a sampling rate of over 10k Samples per second as well as send each sample over a serial line. Taking a sample and putting it on the serial line each time took too long. I am using ...
0
votes
2answers
50 views

Output 20x20 Image to Arduino serial monitor

I am working on an Arduino project where I need to display a black and white (no gray) image to the serial monitor. It doesn't need to be high resolution, so something like 20x20 would work. I will be ...