ArduinoMega2560 - communicating through RS485 in both directions using MAX485

JacobSzlaur:

  1. Umm – “hardwareSerial”? What is it? :open_mouth: Tried to look it up on the internet but didn’t find much useful information :open_mouth: I just found some libraries but not description how it works or what it does or what it is :smiley:

Hardware serial is 'normal' serial with hardware support on the chip. On Uno it is only on pins 0 and 1. Mega has 4 hardware serial pairs. Software serial is serial communication implemented in software library and can use any pair of GPIO pins. The baudrate is limited with SoftwareSerial.