Questions tagged [softwareserial]

A library for emulating UART functionality in software on any available digital IO pins. Use this tag for questions regarding SoftwareSerial.

Filter by
Sorted by
Tagged with
0
votes
2answers
4k views

Receive data from Arduino board to Android application

I'm trying to receive data and print it on a label of my application, but I can not get it. Actually, I have 0 experience with Arduino. It's the first time I see this. I read this tutorial to receive ...
0
votes
1answer
624 views

ATTiny85 Serial communication with Bluetooth Module

For a simple project I would like to use a ATTiny85 connected to a HC-06 Bluetooth Module so it can talk to my Android phone. I wrote a code for my Arduino Uno and worked as expected. When I changed ...
-1
votes
1answer
1k views

Unable to convert string read from bluetooth to int [closed]

I am using a HC-06 and i want to read a number ending with f as a delimiter, the first three numbers as my servo position, however converting the string into int is giving an endless series of 0s. I ...
0
votes
1answer
2k views

myserial.available() returns zero byte

I wrote an Arduino program that requires two ports for serial communication. I intended to use both hardware serial and software serial, but the problem is receiving data from receiving buffer of the ...
2
votes
1answer
2k views

Send serial data to local server

I am new to arduino coding. I am reading data from serial port and storing it in char array. I want to send that data to the local server but it is not getting converted to string Code : #include &...
1
vote
3answers
2k views

HC-06 data receiving

I've written a script in Python which sends data through the PC's Bluetooth to HC-06 on Arduino. state is an integer from 0 to 1000 (it is controlled through the potentiometer). ... gaugeSocket.send(...
0
votes
2answers
9k views

Arduino to read from RS232 converter to TTL serial module (updated)

Here's the system I want to work on: The weight controller device detects weight which can transfer data via RS232 serial connection I used RS232 converter to TTL serial module to connect the weight ...
7
votes
4answers
11k views

Is SoftwareSerial left out for the ATTiny85/84?

I want to use SoftwareSerial with my ATTiny85 and when I google it several projects claim that they are using it... I downloaded the hardware from https://code.google.com/p/arduino-tiny/, but when I ...
0
votes
5answers
14k views

How to send AT command to sim800l with SoftwareSerial

I have SIM800l module connected to Arduino and I'm trying to initialize it in my setup function with this code: #include <SoftwareSerial.h> //SIM800 TX is connected to Arduino D8 #define ...
1
vote
3answers
101 views

SoftwareSerial runs out of “text” space on ATtiny

I have an ATtiny and am trying to send a very large byte array stored in a separate .h file over SoftwareSerial: for (int i=0; i<numElements; i++) { softSerial.println(myList[i]); } I imagine ...
-1
votes
1answer
1k views

A SoftwareSerial library for SAMD boards

So I've got three boards that I'm using to test this (modified) code: int sensor1Pin = A0; int sensor2Pin = A1; int sensor3Pin = A2; float sensors[] = {0,0,0}; void setup(){ Serial.begin(9600); } ...
1
vote
2answers
411 views

ATtiny85 serial communication, bootloader and setting up fuses

I have been reading some articles about ATtiny and how to burn the bootloader. And I have two questions which I can't figure out. Do I need to manually setup fuses to run 8 MHz on my ATtiny when I'm ...
1
vote
2answers
4k views

Arduino with HC 08 bluetooth module

I am connecting Arduino Uno R3 with HC 08 module lie following Arduino 5v -> HC 08 Vcc Arduino gnd -> HC 08 gnd Arduino Pin 5 -> HC 08 RXD Arduino Pin 6 -> HC 08 TXD Then I connected two ...
0
votes
1answer
2k views

Can not initialize ESP module in Arduino SoftwareSerial

Can not initialize ESP module in Arduino SoftwareSerial's example sketch in configuring WiFi module. In the sketch it tells: #include "WiFiEsp.h" // Emulate Serial1 on pins 6/7 if not present #...
8
votes
6answers
92k views

Send AT commands to ESP8266 from Arduino Uno via a SoftwareSerial port

GOAL From Arduino UNO, send AT commands to ESP8266 via a SoftwareSerial port and receive results. CURRENT STATUS I either send AT commands and get nothing back (wiring scheme 1) or I send AT ...
0
votes
1answer
183 views

send more than one integer on serial between Mega and nodeMcu

i have 2 integers i want to send them from Mega to nodeMcu i get them to talk to each other by this one on Mega :- #include <DHT.h> #define DHTPIN 2 // Selecting the pin at which ...
2
votes
2answers
721 views

What causes Serial.available() to become false after Serial.read() gets data?

As serial data bytes are being read from the serial buffer by Serial.read(), are they removed from the Arduino's 64-byte serial buffer altogether? In my current situation I'm using SoftwareSerial, ...
3
votes
5answers
12k views

SIM800L change default baud rate

I am using an ATmega328P with internal clock (8 MHz) with a SIM800L module. The default baud rate of the SIM800L is 115,200 baud and I can't make them talk to each other correctly. Although I was able ...
0
votes
1answer
2k views

Connect Arduino to Socket IO Webserver via Esp8266

As part of a project I want to receive data on my arduino uno via a sensor, which is working fine. This data should be sent to a webserver where a node js with socket io is running. Therefore i bought ...
0
votes
3answers
106 views

Why Commenting Serial.print() gives me a different value?

I am working on with Cypress and Arduino.I am trying to transfer the data from cypress and printing it to the Serial Monitor or Arduino. but the thing is when I am using Serial.print(j) it is showing ...
1
vote
1answer
3k views

HM-10 send and receive data and checking received value

I am wondering what is wrong with my code below. I have 2 issues. The first issue, I am checking if c equals "hi" and if it does then display said hi. I currently see the output of c when it hits ...
0
votes
2answers
960 views

NRF24L01 receiving even if no data sent

I am using nRF24L01 to communicate between two micro controllers. Both are Arduino Uno. The question i have here is , even if i do not send any data from sender to receiver , the receiver device is ...
5
votes
5answers
24k views

AT command is not responding on serial monitor

I am trying to send AT commands to ESP8266. I re-flashed ESP8266 http://imgur.com/a/J8Ueh I followed this tutorial http://remotexy.com/en/help/esp8266-firmware-update/ and I hope it re-flashed ...
1
vote
2answers
5k views

2 way communication between Arduino with XBee and Computer

I have an Arduino Uno with a Wireless SD Shield and XBee S1 and a PC with another XBee S1 connected to it. What I'm after is for me to be able to send a message from my computer and receive a message ...
1
vote
1answer
536 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 ...
1
vote
1answer
102 views

SoftwareSerial + Serial.printlen() not working properly

I want to read a SMS message , find it's length and do some "substring();" operation on received SMS. My last two(2) statements do not work . How can I get correct answers? What are correct codes ? ...
8
votes
3answers
16k views

Serial Print, String And Variable On Same Line

How can I print to the serial monitor a string or just single character followed by a variable like "L 55"
0
votes
0answers
22 views

AT response clean-up

I am trying to get the response from server using AT commands. This is my program #include <SoftwareSerial.h> const byte rxPin = 2; // Wire this to Tx Pin of ESP8266 const byte txPin = 3; // ...
-1
votes
1answer
300 views

Solution for two software serials

I've been working a while on a project using 3 Arduino Nanos, linked together using this tutorial Nick Gammon. As I am not experienced with Arduino programming, I was making it step by step. First I ...
0
votes
1answer
642 views

Arduino Servo with Serial

I have an interesting problem. I want to control ESC and servo with Arduino. I'm using HC-12 to communicate with 2 Arduino and I'm using SoftwareSerial on the nano. #include <SoftwareSerial.h> ...
1
vote
2answers
4k views

What do symbols like UCSR0C, UMSEL01, etc. means?

I have a code with a connection to serial port: // Set baud rate UBRR0H = UBRRH_VALUE; UBRR0L = UBRRL_VALUE; // Disable USART rate doubler (arduino bootloader leaves it enabled...) UCSR0A &= ~(1 &...
0
votes
2answers
487 views

Arduino due - Getting 0xFF (garbage) from serial

I am developing application with serial communication with arduino due. Like this: while(1) { if(Serial2.available() > 0){ byte l_byData = Serial2.read (); Serial.println(l_byData,HEX); } ...
1
vote
1answer
64 views

Not long tweets published using ESP8266-01 with Arduino UNO

I'm trying to create a setup with which an Arduino UNO sends out a tweet (one random quote) every time a button is pressed. I want to use it as a Mailbox Watcher. I'm not new to Arduino but ESP8266 ...
-1
votes
1answer
59 views

Replacing stock String.cpp with smaller version

Hey all I am wondering if it's possible to modify the WString.cpp file to only include the commands that I need for my project since that file is so large. I am using a Digispark arduino that is ...
0
votes
1answer
838 views

bluetooth module with stk500_recv() error

I am trying to dow what is demonstrated in this tutorial. I have altered the original setup a little by adding a level converter to not fry the Bluetooth module and resistors for the LEDs, as well as ...
0
votes
0answers
578 views

Arduino Digital Pins Control with ESP8266

I am currently working on my FYP. I need to control 15 servos (13 for x2 Robotic Arms + 2 for Camera) and 4 motors of my Robotic kit via webserver. I have the following options: NodeMCU Arduino Mega ...
1
vote
1answer
186 views

On UNO, when serial.print to UART pin 11, nothing comes out of pin 11

The problem: Message prints only to the Arduino IDE's Tools > Serial Monitor, not coming out of TX pin 11. Question, please how to get Arduino Uno or Mega to send data out of pin 11? #include <...
0
votes
1answer
2k views

How to pass 'Serial' as an input argument in Arduino function?

I have one integer value which I should pass through Serial1, Serial2, Serial3, and Serial4 after performing some algebraic operation on this integer. For this algebraic operation, I made a function ...
1
vote
3answers
2k views

Interfacing an ATtiny85 with MIDI via Software Serial

In order to finish a synth project that I'm working on I built a MIDI interface. To test it, I drew up some code which (is supposed to) light up an LED when any key is pressed. The light turns off ...
3
votes
3answers
17k views

Why am I getting “fatal error: SoftwareSerial.h: No such file or directory”

I downloaded the Adafruit_GPS library from Adafruit and I'm trying to compile the example code (due_parsing) but I can't seem to get past this silly error: In file included from due_parsing.ino:15: /...
0
votes
1answer
389 views

Is there a way to define an alias for a hardware Serial

I'm porting some code from Arduino Uno over to a Mega and I want to replace a SoftwareSerial defined in the previous code with one of the built-in UARTs. Rather than go through and replace all ...
0
votes
2answers
353 views

No Information obtained when using 2 x SoftwareSerial ports on Arduino Nano

I have a LoRa Click Module and Adafruit Ultimate GPS which both use Serial Communication. I wish to just check the initial tests with all the components in on the Serial Console. Hence I have ...
3
votes
1answer
93 views

Using softwareserial with a TFT, how can I use a variable to position cursor?

I have tried several different ways to do this, but in the line: myTFT.println("DS32(32,g,'Hello!',4);"); where g is an int, it simply doesn't print. If I just replace the g with a value of any ...
0
votes
1answer
40 views

Referencing Serial output

I'm confused with what I'm reading. I have Serial communicating with my PC (USB) and SoftwareSerial over RS485 to a remote PC. I don't want to duplicate all of my print statements to be able to send ...
-1
votes
2answers
2k views

GSM Modem Connection Directly to Rx and Tx

I am using Arduino Uno and using SIM800 GSM GPRS modem. I am connecting Arduino directly with SIM800 GSM/GPRS modem. I already read manually about GSM like how much power supply it needs and what ...
0
votes
1answer
225 views

SoftwareSerial returns garbage when powered externally

I'm currently working on a project with the ESP8266 and Arduino Nano, and when I power the device via USB they talk to each other via SoftwareSerial just fine. I use the Arduino IDE Serial Monitor to ...
0
votes
2answers
698 views

Change UART pin

I am developing GPRS HTTP send request code using a GSM/GPRS module. I found the following code via google: /************************************************************************* * SIM800 GPRS/...
1
vote
2answers
13k views

Arduino SoftwareSerial library basic example doesn't work

I come to you again because I have a problem with the Arduino SoftwareSerial library. With a basic example I fail to see results in the serial monitor. The basic code example: #include <...
4
votes
2answers
2k views

Does data coming in on Arduino serial port store for some time?

I am using Arduino Uno and my question is when data is coming on Rx pin and at that time our program is not checking Serial.available() Then after some time the program will check Serial.available()....
0
votes
2answers
1k views

How can I run HC-05 on 8MHz Pro Mini?

I run an Arduino Pro Mini on ATMega328 3.3V 8MHz, and I am unable to send data over HC-05 breakout board on this frequency, and on 5V 16Mhz, it has no issues. The Arduino code is down below: #...