# Aiuto per la libreria Software Serial

**URL:** <https://forum.arduino.cc/t/aiuto-per-la-libreria-software-serial/1416373>\
**Category:** Software\
**Created:** [November 25, 2025, 9:17pm UTC](https://forum.arduino.cc/t/aiuto-per-la-libreria-software-serial/1416373 "2025-11-25T21:17:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mksamuele97](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mksamuele97/32/1033540_2.png) [@mksamuele97](https://forum.arduino.cc/u/mksamuele97)\
**Post date:** [November 25, 2025, 9:17pm UTC](https://forum.arduino.cc/t/aiuto-per-la-libreria-software-serial/1416373/1 "2025-11-25T21:17:27Z")

</div>

Ciao a tutti! 🥲

Lo so che è imbarazzante ma non riesco a trovare in rete la libreria Software Serial per le schede Arduino Nano (Atmega328P) o Mega...

Ho provato qui:

[https://docs.arduino.cc/learn/built-in-libraries/software-serial/](https://docs.arduino.cc/learn/built-in-libraries/software-serial/)

E non funziona il link... e non c'è nessuna voce che va su gitHub 🙄

Se scrivo semplicemente "Software Serial Arduino" mi escono fuori mille librerie per schede Teensy, STM32, ESP32 ecc ma non per le schede Arduino AVR...

Ne avrei bisogno ☹

Grazie a tutti!!!

EDIT:

ho provato questa \> [GitHub - sirleech/NewSoftSerial: Forked for version control on GIT](https://github.com/sirleech/NewSoftSerial)  
e questa \> [SoftwareSerial Library, DO NOT USE. NewSoftSerial works much better.](https://www.pjrc.com/teensy/td_libs_SoftwareSerial.html)

ma entrambe non danno errore di compilazione 🙄

Manca il file: #include \<wconstants.h\>

Ho letto sul forum questo:

> [@ARDUINO 1.0 - error: WConstants.h: No such file or directory](https://forum.arduino.cc/t/arduino-1-0-error-wconstants-h-no-such-file-or-directory/83843/5):
>
> Below is the code of wire.h but where are the files inttypes.h & Stream.h located? Are in these files the send() & receive() that have to be replaced?thx! #ifndef TwoWire\_h #define TwoWire\_h #include \<inttypes.h\> #include "Stream.h" #define BUFFER\_LENGTH 32 class TwoWire : public Stream { &nbsp;private: &nbsp; &nbsp;static uint8\_t rxBuffer[]; &nbsp; &nbsp;static uint8\_t rxBufferIndex; &nbsp; &nbsp;static uint8\_t rxBufferLength; &nbsp; &nbsp;static uint8\_t txAddress; &nbsp; &nbsp;static uint8\_t txBuffer[]; &nbsp; &nbsp;static uint8\_t txBufferIndex;…

e l'utente system dice:

Your problem should be solved if you look up this solution at [King Au's web page - Cannot find WConstants.h](https://sites.google.com/site/kingauswebpage/my-projects/cannot-find-wconstants-h)  
🙂  
_"When compile an Arduino Library, it fails to compile with the message:_  
_error: WConstants.h: No such file or directory_  
_The solution is to delete the line_  
_#include "WConstants.h"_  
_and then in the .h file, add the following:_  
_#if ARDUINO \>= 100_  
_#include "Arduino.h"_  
_#else_  
_#include "WProgram.h"_  
_#endif_  
_This way, the code will compile, and it will be compatible to Arduino 0023 and 1.0 versions."_

Ho fatto come hanno detto ma poi escono un sacco di altri errori 🥺

Mi sembra veramente assurdo che in 2 ore 😠non sia riuscito ancora a trovare una libreria funzionante...

---

<div class="post-metadata">

**Author:** ![Salvorhardin](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/salvorhardin/32/469189_2.png) [@Salvorhardin](https://forum.arduino.cc/u/Salvorhardin)\
**Post date:** [November 25, 2025, 9:55pm UTC](https://forum.arduino.cc/t/aiuto-per-la-libreria-software-serial/1416373/2 "2025-11-25T21:55:12Z")

</div>

Veramente non capisco i tuoi problemi

Cosa te ne fai di una soft serial per una mega, che ha 4 seriali hw?

La uno e la nano possono usare la stessa soft serial, quella della uno

Perché ti fai del male da solo installando librerie dichiaratamente obsolete?

---

<div class="post-metadata">

**Author:** ![mksamuele97](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mksamuele97/32/1033540_2.png) [@mksamuele97](https://forum.arduino.cc/u/mksamuele97)\
**Post date:** [November 25, 2025, 10:09pm UTC](https://forum.arduino.cc/t/aiuto-per-la-libreria-software-serial/1416373/3 "2025-11-25T22:09:58Z")

</div>

Avrei bisogno della libreria per la scheda Nano.

Il fatto che ho citato la Mega era per far capire che mi serve quella classica per i chip AVR... 😐

Dove posso trovare la libreria per la uno?  
E quindi per la nano?

GRAZIE ! 🙃

---

<div class="post-metadata">

**Author:** ![ilguargua](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ilguargua/32/901053_2.png) [@ilguargua](https://forum.arduino.cc/u/ilguargua)\
**Post date:** [November 26, 2025, 6:42am UTC](https://forum.arduino.cc/t/aiuto-per-la-libreria-software-serial/1416373/4 "2025-11-26T06:42:06Z")

</div>

> [@mksamuele97](#):
>
> Dove posso trovare la libreria per la uno?

E’ già installata insieme al core [AVR](https://github.com/arduino/ArduinoCore-avr/tree/master/libraries), non hai bisogno di installare altro, basta che metti :

```arduino
#include <SoftwareSerial.h>

```

all’inizio del tuo sketch.

Ciao, Ale.

---

<div class="post-metadata">

**Author:** ![gpb01](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/gpb01/32/830685_2.png) [@gpb01](https://forum.arduino.cc/u/gpb01)\
**Post date:** [November 26, 2025, 6:55am UTC](https://forum.arduino.cc/t/aiuto-per-la-libreria-software-serial/1416373/5 "2025-11-26T06:55:53Z")

</div>

... l documentazione aggiornata si trova [QUI](https://github.com/per1234/docs-content/blob/7b88e8630795f2c24bbae4d2531eb813cef502f3/content/learn/07.built-in-libraries/04.software-serial/software-serial.md) su github.

Fossi in te, io userei la molto più efficiente [AltSoftwareSerial](https://www.pjrc.com/teensy/td_libs_AltSoftSerial.html) 😉

Guglielmo

---

<div class="post-metadata">

**Author:** ![mksamuele97](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mksamuele97/32/1033540_2.png) [@mksamuele97](https://forum.arduino.cc/u/mksamuele97)\
**Post date:** [December 1, 2025, 10:29pm UTC](https://forum.arduino.cc/t/aiuto-per-la-libreria-software-serial/1416373/6 "2025-12-01T22:29:49Z")

</div>

Ohhhhhhhhhh Grazie ho fatto il solito errore di dare per scontato che fosse una libreria esterna!

Grazie a tutti! 🥰

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 30, 2026, 10:30pm UTC](https://forum.arduino.cc/t/aiuto-per-la-libreria-software-serial/1416373/7 "2026-05-30T22:30:32Z")

</div>

Closed on May 30, 2026, 10:30pm UTC

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