arduinobaud-rate

Having two baud rates in one arduino code


I have an arduino code for many different sensors connected to MEGA, one of them is the bluetooth, is that possible to make the bluetooth run with a different baudrate than the other sensors?


Solution

  • You are not limited to using only hardware serial port in arduino. you can use softwareserial library to emulate serial port in other pins too.

    In your case you can have bluetooth connected to your arduino serial port and other sensor connected to software serial port. This way you can have different baud rates for diffrent device.