SoftwareSerial Library Issue

Hey!
So I am trying to find a library called SoftwareSerial, but I am not able to find it online or even on the Library Manager for Arduino IDE. I was planning on looking at past forums, but I noticed some have links that say "404 not found". Can someone send the link?

Thanks,
ShivPat

Here
https://docs.arduino.cc/learn/built-in-libraries/software-serial/

1 Like

Thank you so much. I really appreciate your help :)))

Wait there is one thing. Let me explain why I want this library.
So I am writing some code where that will input data from this sensor known as the "WT901". However, I am stumbling across a fatal error because either I don't have the library or I don't have the correct header files downloaded from the internet. If someone can glimpse and assist me, that would be awesome :))

#include <SoftwareSerial.h> // Create a software serial port SoftwareSerial mySerial(10, 11); // RX, TX // Buffer to store incoming data char dataBuffer[256]; int bufferIndex = 0; void setup() { Serial.begin(115200); // Initialize Serial Monitor mySerial.begin(115200); // Initialize software serial Serial.println("WT901 Sensor Data:"); } void loop() { // Read incoming bytes from WT901 while (mySerial.available() > 0) { char incomingByte = mySerial.read(); dataBuffer[bufferIndex++] = incomingByte; // Check for end of data packet (assuming '\n' signifies end) if (incomingByte == '\n') { dataBuffer[bufferIndex] = '\0'; parseData(dataBuffer); bufferIndex = 0; } } } void parseData(char* data) { float accX, accY, accZ; float gyroX, gyroY, gyroZ; float magX, magY, magZ; // Parse the data (adjust according to your data format) sscanf(data, "ACC:%f,%f,%f;GYRO:%f,%f,%f;MAG:%f,%f,%f", &accX, &accY, &accZ, &gyroX, &gyroY, &gyroZ, &magX, &magY, &magZ); // Print parsed data Serial.print("Accelerometer: X="); Serial.print(accX); Serial.print(" Y="); Serial.print(accY); Serial.print(" Z="); Serial.println(accZ); Serial.print("Gyroscope: X="); Serial.print(gyroX); Serial.print(" Y="); Serial.print(gyroY); Serial.print(" Z="); Serial.println(gyroZ); Serial.print("Magnometer: X="); Serial.print(magX); Serial.print(" Y="); Serial.print(magY); Serial.print(" Z="); Serial.println(magZ); 

What Arduino are you using?

Arduino Due

You don't need software serial. The Due has 4 hardware serial ports.

You don't need SoftwareSerial library on Arduino Due, because the board has a multiple hardware Serails

Ah ok. Thank you @b707 and @SurferTim :)))

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.