Software Serial to Hardware Serial brownout detection

Hello! I've been working on my project, and it's pretty much done now. I'm communicating with a GSM module and I'm using the Software Serial library for that. But, I hears that your can use hardware serial instead. What benefits would I have if I used it instead, and what would I need to change? I'm using a standalone ATMega328p.

Also, would disabling brownout detection interfere with software or hardware serial in any way?

Thanks!

Disabling brownout detection won't have any effect on serial communication unless the battery voltage falls so low that the Arduino can't work - in which case things will just stop.

HardwareSerial works much better than SoftwareSerial and can work at higher baud rates. However if SoftwareSerial is doing the job you require then you won't see any improvement by using HardwareSerial.

The usual reason for using SoftwareSerial on an Uno is so that HardwreSerial is kept free for uploading programs and for sending debug messages to the Serial Monitor.

If those things aren't important and if the HardwareSerial pins can be freed up when you need to upload a program then by all means use HardwareSerial.

...R

Robin2

Thanks!

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