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
14 views
How to serially communicate arduino uno to PIC18f4550?
I am new in PIC programming
my question is, how can i communicate arduino UNO with PIC18f4550. i am using THIS programmer board for PIC controller and it has a builtin RS232 serial interface.
Can ...
0
votes
1answer
13 views
How to use Serial Monitor without Arduino board?
I want to use Arduino(atmega8) on breadboard using USBASP programmer and want to use Serial Monitor without using any Arduino board as ISP programmer.
My questions: 1. Is such thing possible?
2. How ...
0
votes
1answer
18 views
Sending lcd commands to a slave micro
I need to split up code which I've already developed for one micro into two different Arduinos connected by serial. The "remote" micro is directly connected to a 20x4 character LCD and the main micro ...
1
vote
2answers
29 views
Arduino nano digital pins not working with external power source
We are using an Arduino Nano for simple serial comms to fire a relay from a Windows 10 PC.
Initial issue we had was windows not recognizing the device (COM Port) when the pc is powered off (as per ...
0
votes
2answers
19 views
Interrupt driven serial in Arduino Mega
This is the multi serial example from Arduino IDE
void setup() {
// initialize both serial ports:
Serial.begin(9600);
Serial1.begin(9600);
}
void loop() {
// read from port 1, send to port 0:...
0
votes
1answer
21 views
Serial characters are corrupted
I try to send an "a" string via serial with
Serial.println("a");
and I receive "Oy=" in Ascii or {4F}{79}{3D} in Hexa.
Where should I start investigating? What could be wrong? Baudrate is 9600 on ...
-2
votes
0answers
14 views
Arduino DS18B20 sensor and mux board
I am after some advice on a simple sketch to attach numerous DS18B20 sensors to the mux board on an arduino and receive a serial read.
Thanks
Flano
0
votes
0answers
27 views
Control two NeoPixels independently via serial
I'm trying to set up a series of LED status indicators using Arduino and NeoPixels. I'm using a Python script to read an API and send a command over serial to the Arduino. I've figured out how to do ...
0
votes
0answers
23 views
Call Rest API from ESP8266 and Arduino uno R3 [closed]
I just want to make a call to any of GET API request from ESP8266 and Arduino Uno (I don't want to read any response back).
My rest functionality will be taken care by the API, because doing things ...
0
votes
1answer
16 views
EPS8266 ESP-01 Blue led stays lit unless 3.3v logic divider is bypassed, works when reconnected
I am having a very weird and frustrating issue with this ESP01. I am creating a shield on protoboard, and everything checks out as far as I can tell. I am using a 3.3v voltage divider (1k and 2.2k) ...
0
votes
2answers
54 views
[Arduino UNO]Receive Serial Data from multiple sources
I have the following system:
As a master, I have an Arduino UNO Chip, more specifically an Atmel MEGA328P. The important thing is that this microcontroller has only one hardware Serial port, and ...
0
votes
0answers
10 views
Serial port on mac only works after restarting arduino IDE
The port works fine after restarting. But, if I upload a sketch it stops working some of the time until I restart the arudino development environment again.
I'm having this issue with multiple ...
0
votes
1answer
50 views
Arduino-Pyserial communication on python3, windows machine: Pyserial.write() doesn't seem to do anything
I've recently gotten my hands on an Arduino (Or rather a Genuino, but the overall architecture should be the same) UNO. I'm now using that Arduino to test how data is transmitted from an USB to Serial ...
1
vote
0answers
64 views
Serial Port greyed out Ubuntu 16.04
I am running Ubuntu Mate 16.04 LTS, with an Arduino Uno R3 clone. I am having the dreaded serial port graying out problem, and have not found a solution for fixing it. Currently, The serial port will ...
0
votes
1answer
17 views
Arduino 2560 as an Interface to 4 Serial Hardwares
I am writing a software that runs on the PC that has a Arduino 2560 connected to it via USB. This PC needs to communicate with multiple devices through RS232.
Is it possible to use the Arduino's 4 ...
0
votes
2answers
44 views
Sending data via bluetooth
I am trying to both send and receive data using bluetooth module.
Receiving data works fine with this code:
void setup() {
Serial1.begin(9600);
Serial.begin(9600);
}
void loop() {
if ...
0
votes
1answer
12 views
Controlling an OSX app by Arduino
I am trying to control an app on OSX with an Arduino Uno. Specifically, I would like to start and stop play of an MP3 on iTunes, or a track on Spotify, using an Arduino connected to the Apple ...
1
vote
2answers
49 views
Programming arduino using avrdude from command prompt
Out of curiosity, I am trying to upload a simple hex file to Arduino UNO using avrdude from windows command prompt.
As per this forum, I tried to implement it. But got stuck at
avrdude: ...
1
vote
2answers
80 views
Arduino Serial library (Synchronous or Asynchronous?)
On an Arduino 101, I have this code running:
void setup()
{
pinMode(2, INPUT);
Serial.begin(9600);
}
int counter = 0;
void loop()
{
Serial.print(millis()/1000);
Serial.print("\t");
...
0
votes
0answers
14 views
Reconnect to Serial Monitor
I have a project for which I have to work with a Teensy 3.2.
For the project I have to disconnect the Teensy from my pc running Arduino 1.6.7 (Win 10, 64 bit).
Within its runtime, the Teensy ...
0
votes
1answer
36 views
How do I read numbers from a serial sequence
I have read through a number of posts including How do I split an incoming string? However I cannot work out how to extract numbers from a serial string.
My challenge is this;
I send a serial ...
0
votes
0answers
18 views
Science behind hyperterm Tx Rx and Simulating same through Arduino. Serial Communication Between Rs160d motor controller and Arduino
I have a motor module Rs 160D. I am able to access it through Serial via Hyperterm software. I have noticed that every character i enter as part of command Send/Receive LED blinks on the USB-RS232 ...
0
votes
0answers
21 views
Cannot access “tools>Serial port” on Kali Linux
I just got my Arduino UNO delivered and I wanted to see if it's working properly or not.
I tried following this page to create a simple program and the program compiled successfully.
But when I ...
0
votes
0answers
22 views
Arduino Serial Communication Fast Protocol
I am sending data to Arduino from Raspberry PI using USB Serial communication at 115200 baudrate to run two stepper motors in real time.Protocol defined is of format < motor1Angle,motor2Angle >....
1
vote
1answer
67 views
Can anyone help me figure out why this buffer is overflowing? (Updated)
This should be fairly straightforward, but there must be something I'm not understanding about buffers.
I have serial data coming in to my Mega via Zigbee. I'm sending a string just like this: ~-0....
0
votes
1answer
31 views
Why am I always getting 48 with serial communication?
So I want to send some data from Matlab to Arduino. To verify that I am getting the correct data I am sending the data back to Matlab (since I get errors if I open the serial monitor, if there's an ...
0
votes
1answer
29 views
Blocking Serial Data
I am driving two stepper motor using serial data from Raspberry Pi to Arduino. Motors work fine when i am passing serial data but once i stop sending serial data, it doesn't accept serial data again ...
0
votes
0answers
76 views
SIM808 module : GSM location command (AT+CIPGSMLOC=1,1) giving wrong value after execution of sending message command(AT+CMGS=+91xxxxxxxx)
I wrote the code that if interrupt generated, get gsm location and send a message.
first time interrupt generated, got correct gsm location using (AT+CIPGSMLOC=1,1) and successfully send message ...
0
votes
1answer
31 views
Sending data via SoftwareSerial results in garbled reception
My overall goal is to have an Arduino Uno with an Ethernet Shield send a short (5-character) string via a SoftwareSerial connection and a UDP packet when I press a button.
The device which is ...
0
votes
1answer
26 views
Send sensor information to processing
I am currently working on an Arduino project where the Arduino will send data to a processing program via bluetooth and processing will draw the data. However, my code doesn't seem to work.
Here is ...
0
votes
0answers
21 views
how to compute Hmac on arduino based on uint32_t key and char [128] message !
I have a problem in computing HMAC on arduino which calculate an uint32_t key and receive a char message and the Hmac message computes from android.
this is the function that generate the HMAC in ...
0
votes
1answer
47 views
Why does Serial.print print out the wrong thing?
I am using a flame sensor. I am reading the state and then printing it. Here is my code:
void loop(){
flameState = digitalRead(flamePin);//variables already defined and are global
existsFire();//...
0
votes
2answers
47 views
SD Card Info Unexpected
So I have just begun testing my Wireless SD Shield from Arduino with my Arduino UNO. Upon running my the basic CardInfo sketch, it uploads and displays data, but far more than expected. The SD Card is ...
0
votes
0answers
44 views
Getting serial data from Xbees and storing Xbee output in a variable for use
I have two Arduinos that I want to communicate with each other using Xbees. One arduino is just hooked up with the Xbee (The sender), the other Arduino is hooked up with the Xbee and a sparkfun ...
0
votes
0answers
14 views
What's wrong with my IR AAC keys code ? :(
#include <IRremote.h>
#include <IRremoteInt.h>
int receiver = 2; //
IRrecv irrecv(receiver); // create instance of 'irrecv'
decode_results results;
void setup() {
Serial.begin(9600);...
1
vote
2answers
59 views
How can I reduce the redundancy of this code, so one function can perform the task of printing on Serial and Softserial?
void Multi_print (String str)
{
Serial.print(str);
mySerial.print(str);
}
void Multi_println (String str)
{
Serial.println(str);
mySerial.println(str);
}
void Multi_parse_int (int value)
{
...
0
votes
1answer
27 views
Changing Uid Using MFRC522 Via Arduino Error
Well, I' ve just bought and recieved a MFRC522 rfıd module and done to much research on it. After watching several videos, I sorted out a library for using this module via arduino.
You can click the ...
0
votes
1answer
44 views
Convert a Double to an UnSigned Char
So, I'm working on RedBear Blend Micro V 1.0, and I must use the function:
ble_write(Serial.read());
To read some input from the serial monitor(Input being stuff I type in the Serial Monitor) and ...
0
votes
1answer
47 views
how does serialEvent work?
I have come across several examples about serialEvent() function, which look like this:
void serialEvent(){
if(Serial.available()){
\\do something
}
}
The serialEvent() function is called ...
1
vote
0answers
32 views
How to filter out “jumpy” readings sent using Bluetooth
I'm using App Inventor to continuously send orientation values (as strings) to my Arduino, which are read using Serial.parseInt(). Using simple IF statements (if value > threshold), I'm trying to turn ...
0
votes
0answers
53 views
Help me How to use DALI protocol with Arduino (Mega 2560)
I'm new to this forum, but like many of us, doing project by project with Arduino, we need some help here earlier or later... So here I'm, and I hope you could help me with this.
First of all, I'm ...
0
votes
2answers
46 views
why am I losing data over serial communication between arduino and pc
I'm working on a project for school. I'm trying to rotate a servo by writing the letter that identify the servo and then the angle.
the problem is that sometimes the last number of the angle is lost ...
1
vote
1answer
38 views
Bidirectional communication between Arduino and Raspberry Pi over USB possible?
Is it possible to have bidirectional communication betweeen an Arduino Uno Rev 3 and a Raspberry Pi Modell B+ running Rasbian? They're connected ofer USB, and it would be good if I could use Python on ...
0
votes
1answer
43 views
Atmega8 with Arduino bootloader - wrong serial characters
I recently flashed bootloader of Arduino to Atmega8. Unfortunately I stumbled on a problem I can't solved.
I am testing SerialEvent example on Atmega8. I modified it but started debugging it on my ...
0
votes
0answers
35 views
Serial communication between arduino and raspberry pi works once, then stops working
I'm using a Arduino Uno Rev 3 connected over usb to a Raspberry Pi Modell B+ running Rasbian.
Here ist the arduino code:
int input = 0;
String command = ""; // beinhaltet den aktuellen befehl
int ...
0
votes
2answers
79 views
Using micros() to measure analogRead() time varies based on Serial.print location?
I'm trying to use micros() to measure the time it takes to execute an analogRead() cycle, but am having some issues. Originally, I just printed out the measured time for the analogRead() right after ...
1
vote
1answer
35 views
Why send my Arduino sometime Hex and sometimes the wrong?
Hi i have an Arduino mega 2560 i send data from the Arduino over USB to PC. That works when i test a simple Serial.print("Hello"); but that is not that what i need. I send a timestamp as a longe Value ...
2
votes
2answers
44 views
Serial Monitor listing rapidly
I am using an infrared sensor and a flex sensor to read values from the serial monitor in arduino, however after maybe ten seconds or so it seems the serial monitor breaks and the printed values start ...
0
votes
1answer
21 views
Using an external interrupt alongside serial
I want to read data from an accelerometer sensor, which pushes its data to the Arduino via an external interrupt. I then want the Arduino to relay this data to a host computer via the serial ...
0
votes
1answer
37 views
Sparkfun Can-Bus Shield Example not Working
I recently bought a Sparkfun Can-Bus Shield (https://www.sparkfun.com/products/13262) and tried the SparkFun_CAN_Demo from here but the program only prints "CAN-Bus Demo" and then does nothing even ...