Does anyone know if it's possible to have a switchable baud rate?
For example, having a switch which can switch between 9600 and 38400 baud.
Unfortunately, after many attempts I'm pretty convinced that it is not possible..
However, it'd would be really helpful to know if there is any workaround.. or if I have to give up
If it helps, the Arduino will communicate with Max using the 'serial' object. All I need is to be able to change the baudrate from Arduino. Max is not a problem..
all I did was to use the serial.begin() function inside the main loop, rather than in the setup, and then an 'if' statement
void loop()
{
if (switch is on)
{
Serial.begin(31250);
}else
{
Serial.begin(57600);
}
my code...
}
seems to work ok. however I don't know how good idea is to use the Serial.begin() in my main loop...
I'm afraid I will have to stick on this 'trick' if nothing else suggested...