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 [softwareserial]

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

0
votes
0answers
658 views

Arduino Zero - Reading data from the Rx pin on the Serial1 platform - Adafruit GPS

I am trying to use the Adafruit Ultimate GPS sensor. In the tutorial Adafruit provided, one of the initial steps to see if the GPS can get a fix on your location is to wire up the GPS to 5V, GND, RX, ...
4
votes
1answer
17k views

Get data from website with ESP8266 using AT commands

I'm trying to get data from a website by sending a HTTP GET request via AT commands for the ESP8266. Here is my current code: #include <SoftwareSerial.h> const byte rxPin = 2; const byte txPin ...
1
vote
1answer
1k views

GSM module connected with arduino uno giving garbage values in response

I connected a GSM module with the Arduino UNO. The connections are as follows: Gnd of gsm -----> Gnd of arduino TX of gsm -----> pin 9 of arduino Rx of gsm -----> pin 10 of arduino GSM ...
1
vote
1answer
2k views

Use an Arduino to “intercept” transparently serial communication to Grbl?

I need to have an Arduino "spying" on communications between the PC and another Arduino with GRBL. The goal is to intercept a couple of GCode commands and act on them instead of Grbl. My first step ...
0
votes
2answers
4k views

Arduino to ESP8266 SoftwareSerial communication

I have an Arduino Uno and an ESP8266, connected over serial through ESP8266 pin GPIO_2 (which is set as RX over espsoftwareserial) and 11 on Uno (which is set as TX over SoftwareSerial). I am trying ...
-1
votes
1answer
559 views

Unable to read the Serial Port through Arduino the way Serial Port Monitor softwares read it

I have a device feeding Rx Tx data every minute. I connected it to the computer. I downloaded a Serial Port Monitor Software, and here is the data I captured using that software. Now when I try to ...
0
votes
1answer
275 views

Serial 3 vs Software Serial

So I have a program that works great on the Mega, it uses serial 3 to read and streams out to the USB (I posted a previous question which someone answered) I tried to use Serial (D0) to read and then ...
2
votes
3answers
2k views

Arduino Pro Mini Serial Monitor garbage

This is my first post. I hope that I am posting in the right section of the forum. Otherwise, could an admin move this topic to the appropriate section please? Board : Arduino Pro Mini 3.3V 8MHz ...
3
votes
1answer
637 views

Arduino Leonardo - Using ICSP pins for serial

I'd like to know if it's possible to use the ICSP header pins on the Leonardo as GPIO pins, for example for software serial, and how to address them. I've a project which needs all available I/O pins, ...
1
vote
0answers
201 views

GSM librarys Software Serial conflicts with I2C pins 2 and 3 for Arduino Micro

The GSM library apparently uses the Software Serial library to perform the communication. The Arduino Micro specified pins for the serial connection to the GSM is pin 2 and 3 (doc says, but see def of ...
1
vote
0answers
224 views

ESP-12f SoftwareSerial read fails

I am trying to use esp8266 version of SoftwareSerial, espsoftwareserial, on an esp-12f. If I initialize an object using: SoftwareSerial gpsSer(14,12, false, 256); or SoftwareSerial gpsSer(12,14,...
1
vote
1answer
248 views

Odd symbols in ESP8266 responses to AT commands

I used the code below to control an ESP8266. I am getting some unknown symbols in the responses. #include <SoftwareSerial.h> const byte rxPin=2; const byte txPin=3; SoftwareSerial ESP8266( ...
1
vote
2answers
4k views

Setup arduino uno with ESP8266 ESP-1

Iam trying to set up the arduino uno with the wifi module ESP8266. I use this schematic setup: I have followed this tutorial: Tutorial ESP8266 Thereby I removed the Mega328P Chip like it says above, ...
1
vote
0answers
56 views

Maplin Bluetooth Shield for Arduino - BAUD rate

I am currently using a Bluetooth shield which i bought from maplin, see: http://www.maplin.co.uk/p/bluetooth-shield-for-arduino-n97dg. I have got it to work perfectly on the default 38400 BAUD , but ...
-1
votes
2answers
340 views

RFID Reader ID12-LA reads every card as ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ

My new RFID reader ID12-LA by SparkFun can recognise an RFID tag, but it can't read its tag number - the Arduino IDE outputs the tag as ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ Any help on how to convert this into a proper ...
-1
votes
1answer
2k views

SoftwareSerial data not available

Second time I'm asking the same question with no solution, let me elaborate in other way for clarity. I wrote an Arduino program which uses two serial ports, one is hardware serial port and other is ...
-3
votes
1answer
60 views

Strange binary number representation

I have a very simple sketch, something like this: int aFour = 4; softwareSerial.print(4,BIN); softwareSerial.print(aFour,BIN); Which gives the following output: 1001 0011 Why don't they print ...
-1
votes
1answer
56 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 ...
-1
votes
1answer
86 views

Arduino char showing as 2 characters

I'm writing the character 1 from a node.js XBee using the code sp.write("1"); to my Arduino's XBee. Then on my Arduino's XBee I read it like this (inside a loop): if (XBee.available()) { do { ...
0
votes
2answers
749 views

SIM800L module just repeating data sent via serial

I've got a Teensy 2.0 with simple AltSoftSerial as displayed on image: As you can see, when I send a command (or any other input via serial) the SIM800L module sends me the same input. I tried to ...
0
votes
1answer
787 views

Using SoftwareSerial to send data to itself

I'm debugging a project which includes SoftwareSerial. I'm not convinced the serial connection behaves as expected, so I came up with the following simple test: #include <SoftwareSerial.h> ...
1
vote
3answers
2k views

Problem with Software Serial: no response

I am using an Arduino Uno board with IDE 1.6.7. I have tried to implement a tweaked version of the basic example (SoftwareSerial example) from the Software Serial library. The code is attached. It ...
2
votes
1answer
88 views

ATtiny serial.print() crash with INTs

I'm trying to print some data to and from an ATtiny85 via serial, using the SoftwareSerial library. So far I've tried these setups with no results: 1/8MHz clock baud rates from 9600 to 57600 (...
-1
votes
1answer
307 views

Can I create a serial.read command with the arduino code alone?

I am trying to manipulate a project and the simplest way to do what I am trying to do would be to use the existing code. This code is designed to take an input from the serial monitor using serial....
1
vote
3answers
380 views

Garbled serial from GPS device

I'm using an Arduino Uno. "Regular" serial is plugged into my computer, and I can receive just fine. I'm using AltSoftSerial (tried SoftwareSerial, same results) with RX and TX on pins 8 and 9 to ...
3
votes
1answer
88 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 ...
1
vote
2answers
3k views

Arduino-Pyserial communication on Python 3, 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 a USB to Serial ...
0
votes
1answer
183 views

Help understanding SoftwareSerial recv() and PCINT

In the SoftwareSerial library, I see the beginning of recv() as follows void SoftwareSerial::recv() { #if GCC_VERSION < 40302 // Work-around for avr-gcc 4.3.0 OSX version bug // Preserve the ...
1
vote
2answers
1k views

Using two software serial - two UART

I have ATMega328p chip, and I have HC-06 on pin A5, A4 (RX, TX) and I have another device on pin 10, 9 (RX,TX). I want to be able to send some command on BT via Bluetooth Terminal and pass raw (...
0
votes
0answers
483 views

SIM900 GPRS/GSM Shield - Working SMS and Calls, but no internet

I have this shield which I am using my EE SIM card in. I have successfully got texts and calls working fine, but the end goal is to submit HTTP requests. For some reason though, I cannot get the ...
0
votes
1answer
556 views

Interfacing to scale over RS-232

Objective: interface and Arduino MEGA to a Mettler Toledo SB32001 using the RS-232 communication protocol described in the manual. Equipment Used: SB32001 Mettler Toledo 32 kg scale Arduino MEGA ...
1
vote
1answer
172 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 <...
1
vote
1answer
430 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
3answers
7k views

SIM808 module GSM working fine, GPS not working (No GPS ready message on power on)

I powered on my SIM808 module. It showed me following output: RDY +CFUN: 1 +CPIN: READY Call Ready SMS Ready It supposed to show GPS ready also. I sent AT command and return ok. However ...
1
vote
2answers
149 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) { ...
1
vote
0answers
156 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 ...
1
vote
1answer
245 views

How to send data from arduino to Temp Controller for setting temp?

I send data from arduino by method following. Configure the value : byte message[ ]; #include <SoftwareSerial.h> #define RX 2 #define TX 3 int incomingByte = 0; SoftwareSerial mySerial(RX, TX);...
1
vote
1answer
660 views

SoftwareSerial error:

Please help me with this library "Softwareserial". The basic sketch does not work. Please look the errors: C:\Program Files (x86)\Arduino\libraries\SoftwareSerial\SoftwareSerial.cpp:128:2: error: ...
0
votes
5answers
12k 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 ...
0
votes
0answers
41 views

Murata Type ZY BLE

Previously I was using HM-11 BLE module with Arduino Lilypad in order to communicate between Arduino and Android phone. HM-11 was well documented and supports AT commands so I was able to program it ...
1
vote
1answer
640 views

Is the a low memory alternative to SoftwareSerial?

I'm running a program on a ATtiny85 and running into problems because of a lack of available RAM. When I ran avr-nm on my ELF file I found that SoftwareSerial was taking up a lot of RAM even though I'...
1
vote
2answers
409 views

Using only Rx pin to receive data from HC 05 and attiny85 (Arduino IDE)

I was building a Bluetooth car with attiny85 (Arduino IDE) and HC05 bluetooth module. I need 4 IO pins to control the car. Since attiny have only 5vIO's, I am left with only 1 pin to connect to HC05. ...
0
votes
1answer
497 views

Arduino OBD library and software serial library

Can I use Arduino OBD library with "custom" software serial or it needs to be used with hardware UART only? For example if I have D5 and D6 pin as RX and TX in my code hooked on OBD board, how do I ...
4
votes
1answer
244 views

Problems running several Arduinos off of one HC-05 Tx pin

TL;DR: Multiple Arduinos listening to a single serial rail are burning out my HC-05's TX pin. Arduinos are leaking voltage onto the signal rail. How do I stop, or isolate that to keep from burning out ...
1
vote
1answer
203 views

Is it possible to run 2 functions, that communicate with 2 different serial devices, in parallel using FreeRtos library?

This might seem like a very broad question but that's what i want it to be for multiple ways of implementation. I've an Arduino UNO communicating with 2 Serial devices interfaced using SoftwareSerial ...
0
votes
1answer
582 views

What is the output of Software Serial .read() function

Hi I am new to arduino development i was using esp8266 using software serial library here is the code #include<stdlib.h> #include <SoftwareSerial.h> SoftwareSerial monitor(2, 3); // ...
0
votes
1answer
32 views

Power supply change change gps readings?

I was powering a GPS Sensor from the 3v3 pin of a raspberry pi and my reading for my GPS sensor had some strange symbols in the mix, but when i switched to the 3v3 on the arduino, my reading came back ...
0
votes
1answer
4k views

How to Capture Data from a Webpage in Arduino and Display it over Serial Monitor of ESP8266?

My Code is as follows-> #include <SoftwareSerial.h> SoftwareSerial ESP8266(8,9); String inData; void setup() { ESP8266.println("AT"); delay(1000); ESP8266.println("AT+RST"); } void loop() {...
1
vote
0answers
479 views

Controlling dynamixel AX12 by Arduino

Actually, i would like to control 12 motors of AX-12 using Arduino .. I could control just 2 motors. However when i send a command to the 12 motors they don't move and one or 2 of them move randomly!...
0
votes
2answers
2k views

mqtt library which support softwareSerial on arduino uno with ESP8266

I am using ESP8266 and Arduino with SoftwareSerial. My requirement is to use MQTT protocol with it. So I am using an MQTT library named pubSubClient but the problem is it doesn't support ...