RWDTeam4 / RWD-Repo-Team4-Season1

A code repo for Arduino code written to control the Robot
MIT License
0 stars 0 forks source link

MiniMegaHub Serial #1

Closed RobertPollum closed 6 years ago

RobertPollum commented 7 years ago

Communication between the MiniMega Hub and other modules seems to have mixed results. The Motor Control Module generally can communicate messages back and forth, but at certain times, the Serial.println will spit out garbage from the Mega and I can't seem to grab command values correctly from the rf module. (The input gets scrambled due to buffer overflows from the Usb library I believe)

RobertPollum commented 6 years ago

When using Serial3 on the MegaMiniHub, the program will flash to the Arduino, but won't be read back (IDE declares it unsuccessful)

RobertPollum commented 6 years ago

When using Serial1 instead of Serial3, the program flashes fine, but Serial0 (declared just Serial in program) baud rate is changed to whatever Serial1 is using.

RobertPollum commented 6 years ago

Turns out that this was related to the Serial chip used on the MiniMega Hub. Switched Arduinos and the Serial works much better.