EFeru / hoverboard-firmware-hack-FOC

With Field Oriented Control (FOC)
GNU General Public License v3.0
1.12k stars 932 forks source link

Problem with reading bytes UART #499

Open pavelhaleta opened 3 months ago

pavelhaleta commented 3 months ago

Variant

USART

Control type

FOC

Control mode

Speed

Description

I have connected board with Arduino and use example from project. But I received only bytes but no data. Guess some problem with decode. Example from DEBUG_RX 282828280224252025225225225228252252282522522825222425225202242520224224224252282242522520252

Dominykasssx commented 3 months ago

If you are using DEBUG_SERIAL_USART2 or DEBUG_SERIAL_USART3 try this:

void Receive() {
  if (HoverSerial.available()) {
    char incomingText = HoverSerial.read();
    Serial.print(incomingText);
  }
}