Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino USART3 Not Working #125

Closed
RolandoQuintana opened this issue Jan 8, 2021 · 8 comments
Closed

Arduino USART3 Not Working #125

RolandoQuintana opened this issue Jan 8, 2021 · 8 comments

Comments

@RolandoQuintana
Copy link

Hello, I am very new to this HoverBoard hacking but I've finally been able to upload the Firmware to the HoverBoard but now I'm having trouble controlling it with the Arduino.

I have been using RoboDurden's online compiler to compile a .bin file which successfully uploads to the mother Board (https://pionierland.de/hoverhack/ found under EmanuelFeru/hoverboard-firmware-hack-FOC). In the Config.h file I've uncommented the #define VARIANT_USART and I followed the instructions in the hoverserial.ino file.

Capture

I have my Arduino connected to the Right set of wires (short) and have used a multimeter to ensure that the Black wire was truly ground. I've checked multiple times to ensure I had the Rx and Tx of each device connected properly as well.

I've uploaded the hoverserial.ino to an Arduino Nano and I currently trying it with an Uno. I've tried different digital Pins for the serial but those seem to have no different results.

Really, the only thing I can think of is that I'm somehow not configuring the firmware right in the config.h which is why I'm reaching out here. Possibly someone else is has run into similar issues(?) Also, I'm not sure if it's relevant but the Red Wire (Power) on the Right set of wires reads zero volts when I measure it. The black wire is surely ground but perhaps this has something to do with it (I am unsure since it is unnecessary anyway)?

(Also this is my first time using GitHub for issues so I apologize if this is not the proper way to ask questions)
Thank you.

@EFeru
Copy link
Owner

EFeru commented Jan 8, 2021

Hi @DanielQuintana2 and welcome! ;-)

  • At a first look at your config.h I am not sure how were you able to compile the firmware because normally it should throw an error if you have both of the following defines enabled:
#define CONTROL_SERIAL_USART3
....
#define SIDEBOARD_SERIAL_USART3

You have to choose one because they are on the same cable. You cannot have both an Arduino and a Sideboard connected to the Right cable (UART3).

Edit1: For your Arduino case you need to uncomment #define SIDEBOARD_SERIAL_USART3.
Edit2: Sorry my mistake.. forget the above. I just noticed you did not enable DUAL_INPUTS.

@RolandoQuintana
Copy link
Author

Hi @EmanuelFeru
Thank you for your reply!
Just to double-check, do I need to change anything with the
#define CONTROL_SERIAL_USART3 .... #define SIDEBOARD_SERIAL_USART3
in the config.h?

It looks like I've uncommented the correct Variant:
Capture

As for the voltage, I do get around 15v off of the left one just not the right one (short cable). The LED is lit when I've been doing all of this but I do not hear a melody when the power button is pressed. Perhaps this latch is what is giving me trouble...In order to keep the board on I either have to hold the power button down or use a jumper wire (jumping the power button terminal). When I flash there are no errors but perhaps there is something else wrong?

I've Uploaded Niklas Fauth's firmware onto the motherboard without changing anything and it completed the motor test completely fine but that's about it. Thank you again for your Reply!

@EFeru
Copy link
Owner

EFeru commented Jan 8, 2021

  • If you were able to spin the motors, that is a good sign... However, on the other side not hearing the melody is not a good sign.. Have you tried other Variant like ADC? Usually that is the lightest in terms of memory.
  • I am still puzzled that you only have 15V on one cable...
  • For flashing I always did it by holding the button. The advantage is I can release it quickly at any time.
  • Also it would help to know what board you have, STM, GD, a picture can help.

@RolandoQuintana
Copy link
Author

Hi @EmanuelFeru

I have not tried the ADC variant. I'll try that rn and let you know what happens.
When I flash I guess jumping the terminal is equivalent to holding the button. But is it normal to have to either hold the button or use a jumper in order to keep the board on after I've flashed?
I didn't know there were different types, here is a picture
16101430102554200069632830098239
16101430728377987423270507127810

It's kinda hard to read the main chip but it seems to be a GD.

Thank you.

@EFeru
Copy link
Owner

EFeru commented Jan 8, 2021

Oh, you board is different.. it doesn't have the same shape like mine. So i am not sure if the pinout and connections are the same. You can join the Telegram group (link in readme) and ask if somebody had experience with this kind of board.

@RolandoQuintana
Copy link
Author

Ah okay, I'll be sure to check it out. Thank you!!

@Candas1
Copy link
Collaborator

Candas1 commented Jan 9, 2021

This board has a additional white wire for wheel temperature sensing, and maybe other differences. I think someone was investigating it in the group, maybe they can share their findings.

@RolandoQuintana
Copy link
Author

Hi @Candas1
Thank you for your comment and for asking on the group. I was actually able to solve it in issue #126 in Niklas Fauth's forum...here's the link incase someone else is looking for it lucysrausch/hoverboard-firmware-hack#162

Turns out some GPIO pins needed to be changed ^^.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants