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
1
vote
2answers
427 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
1answer
103 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 ? ...
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 ...
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
vote
1answer
135 views

Program NOT responding to loop()- Arduino UNO+GSM + Sensor

I'm trying to monitor the sensor values (range 0-1000) connected to Arduino UNO's 12th-pin. If the value stays below say 500, then it should SEND SMS. I tested the sensor and GSM shield seperately and ...
1
vote
1answer
825 views

Can an Arduino be used to read data from a serial port?

People often use Arduinos to send data over serial to other peripherals (flashing firmware onto modules, etc) by pulling RES to ground, connecting the TX and RX pins to the device being programmed, ...
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 ...
1
vote
1answer
1k views

GSM SIM900A SMS content not displaying

I am trying to read messages sent from my mobile to a GSM SIM900A module on my Arduino Serial monitor. Neither does the AT+CMGR command nor does the AT+CMGL command display SMS content. I also tried ...
1
vote
2answers
2k views

Arduino + L9637 K-Line reader - 10400 baud on SoftwareSerial?

I know this question has been asked many times before in different flavours, but all of the previous questions I have found seem to pre-date the current SoftwareSerial library, which afaik now (unlike ...
1
vote
2answers
3k views

Adding null character to char array

I have this code written and functioning that will write out the chars in cmd to a serial port for an input of ASCII text representing byte values. void SendCTRL (String &input) { //Adjust ...
1
vote
1answer
642 views

Common ground serial communication trouble SIM800L

I have a trouble when i'm using SIM800L module with common ground with combinaison with : FTDI232+ARDUINO PRO and Li-po battery. I use common ground to allow Arduino see the serial of SIM800L. I use ...
1
vote
1answer
77 views

Can't send SoftwareSerial to Class Object

I have a problem when I try to use SoftwareSerial in a class.. Here my detail My class class MyEsp8266 { protected: SoftwareSerial *esp8266; public: MyEsp8266(SoftwareSerial *...
1
vote
2answers
116 views

Serialprint and analogRead time

How much time takes to print each sample using Serial.print and analogRead in each iteration? #include <SoftwareSerial.h> #define Sensor A0 void setup() { Serial.begin(250000); pinMode(...
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
302 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
1answer
547 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
287 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
839 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: ...
1
vote
1answer
128 views

No response from device when trying to communicate with it via RS-232

I have an Arduino Uno with an RS-232 shield, and a servo drive that communicates via CAN or RS-232. I'm trying to communicate with this drive using an RS-232 cable, but I'm getting no response. I'm ...
1
vote
1answer
4k views

Arduino Nano ESP8266 software serial problems

I have a problem with my Arduino Nano ATmega328 and my ESP8266 01 module. I have connected the ESP8266 on my Arduino board without FTDI. I have made the following connection: I an using a 5V ...
1
vote
2answers
1k 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 ...
1
vote
2answers
1k views

SIM900 Shield read only sms headers without text

I enable messages about new SMS AT+CNMI=2,2,0,0,0 OK and when received sms, output like this. +CMT: "+79XXXXXXXXX","1","15/09/23,01:34:03+24" Test But when I read message, output only before <...
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(...
1
vote
1answer
88 views

SoftSerial freezes on comparing getInt to int

I have a robot application on my Arduino which basically takes values from a SoftSerial instance on my 0/1 pins (connected to a Bluetooth board). From the 'driver station' I send speed values to the ...
1
vote
0answers
32 views

reference to 'File' is ambiguous. Why am I getting this error?

The program is supposed to take photo and store the picture into the SD card with the timestamp. My Program Code: #include <SdFat.h> #include <Adafruit_VC0706.h> #include <SPI.h> #...
1
vote
0answers
45 views

Serial Communication between arduino and nodeMCU

I am trying to connect a nodeMCU to arduino mega using serial communication so that i can read data from firebase. I have put the following code on the NODEMCU. #include<SoftwareSerial.h> //...
1
vote
0answers
104 views

RS485 Serial Communication not working with Arduino

I am trying to control 2 devices with my arduino using RS485 communication. Basically switch on device 1 for 5 seconds when I send 'g' to the master. And switch on device 2 for e3 seconds when I send ...
1
vote
1answer
66 views

Using Arduino as ISP and SoftwareSerial at the same time

I'm trying to use my Arduino Uno as an ISP to program an ATTiny85 and at the same time check my board by using the SoftwareSerial library to output the values I'm getting from my sensor. Is this ...
1
vote
2answers
97 views

Two serials can't work on the same speed

I have a device which sits on pins 10/11 of Arduino UNO. I am trying to send commands from my PC using Arduino to relay my commands to the device via Serial. The problem is that if I use speed 9600 ...
1
vote
3answers
59 views

For Arduino, is there a meaningful difference between carriage returns?

Serial.write(0x0d); // hex Serial.write(13); // ASCII Serial.write('\r'); // char Is one more efficient? I read how it depends on the terminal program. So does that mean the IDE? (This is my ...
1
vote
1answer
119 views

Arduino Mega Pins for SoftwareSerial (vs. AltSoftSerial)

I am currently looking at using an Arduino Mega to build a MIDI Receive box that will then pump the data over USB, but am having design issues/uncertainties with the Arduino's receiving end. I am ...
1
vote
0answers
983 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
2answers
1k views

GSM and GPS module don't work together

I am trying to create a project which involves getting latitude and longitude via GPS Module and send it via GSM Module. My problem here is that individual code is working perfectly. However, if am to ...
1
vote
2answers
981 views

Arduino reads hc-05 device connecting status

Hello I want to get an arduino get status of bluetooth hc 05 if connect with device or not . I'm trying by myself and search on internet website but I can't find useful things.
1
vote
0answers
260 views

Arduino hardwareSerial Bluetooth.println not sending string over 310 chars

Hey all I am wondering if my code below can be modified in order for the Arduino to send more than 300 chars to a HM-10 bluetooth 4.0 le module? #include <SoftwareSerial.h> #define ...
1
vote
0answers
232 views

Trouble in acquiring NEO6M GPS data through S-Function builder at Matlab simulink using Arduino libraries

I have connected a NEO6M GPS module to an Arduino Mega 2560 and programmed using TinyGPS++ library's "Device Example". I am getting proper data at serial port. NEO6MGPS to ArduinoMega2560 Vcc ...
1
vote
1answer
491 views

Arduino PC to RS232 not reading data

I am trying to read data from RS232 Shield with an Arduino Mega. This is the schematic pin, TX is 3 and RX is 2. Wiring: PC > USB-RS232 cable > Arduino RS232 Shield. Software to send/receive data: ...
1
vote
1answer
188 views

ESP8266 problem with recieved data trasmission via TCP

I am having small project where I want to read couple of analog inputs from Arduino UNO, send it via software serial to ESP8266-01 and from that to python server using TCP. Data is sent to ESP using ...
1
vote
0answers
198 views

ESP8266 sometimes stuck on AT+CIPSEND with “busy s…”

I'm using an ESP8266-01S Wi-Fi module on an Arduino UNO. When I use AT+CIPSEND=4 and then type test it successfully sends that message to my laptop. However, sometimes the module returns a busy s... ...
1
vote
0answers
922 views

Arduino Mega 2560 SoftwareSerial Not Working

We have an xBee Pro S2C that is using this library (https://github.com/andrewrapp/xbee-arduino) very well on a Software Serial connection to ports 2 and 3 on an Arduino Uno. However, when we take the ...
1
vote
0answers
92 views

How can I use delimiter/split serial input in a loop function?

How can I use delimiter/split serial input in a loop function? I want to use each word from the input and check a database, to check availability. #include SoftwareSerial.h> #define ...
1
vote
0answers
733 views

'SoftwareSerial' does not name a type in Adafruit Feather M0 Bluefruit LE

I am trying to create a software serial connection between Arduino Uno & Adafruit Feather M0 Bluefruit LE. I am getting the following error in the M0 sketch: Arduino: 1.8.1 (Windows 10), Board: ...
1
vote
0answers
2k views

How to define SoftwareSerial pins on ESP8266

I'am new to arduino yun and ESP. In fact, i have an arduino yun which has a sim808 dfrobot shield on it which uploads GPS data online at a regular time interval. I want to connect the dfrobot sim808 ...
1
vote
0answers
260 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
250 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
0answers
64 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
vote
0answers
174 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
0answers
523 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!...
1
vote
2answers
3k views

DB:NO RESP Using inet.httpPOST on loop()

I'm using SIM900 module + arduino uno + gsmlib.org library. I'd like to send a string to endpoint on my API , and it worked correctly for the first time when I using inet.httpPOST function in setup(),...
1
vote
0answers
1k views

Sending GPS data between two Arduinos using Easy Transfer

I'm trying to get GPS data transmitted from one Arduino UNO to a second unit to eventually be displayed on an LCD and stored in an SD card. I am using Xbees S2C's on Xbee Shield's to do this. The ...