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

About the pedal can't be used #5

Open
LONG-9527 opened this issue Mar 9, 2023 · 19 comments
Open

About the pedal can't be used #5

LONG-9527 opened this issue Mar 9, 2023 · 19 comments
Labels
bug Something isn't working

Comments

@LONG-9527
Copy link

Unable to calibrate the pedal, the tire rotates automatically after turning on. Continue to Didi, my English level is too low, I do not know if you can understand

@LONG-9527 LONG-9527 added the bug Something isn't working label Mar 9, 2023
@larsmm
Copy link
Owner

larsmm commented Mar 13, 2023

Use a translator. For example: https://www.deepl.com/de/translator

It is not possible that wheels are spinning after poweron. First it checks if both potis are on 0 position. If potis are non 0, it waits for them to get 0. Then it enables the motors and makes di-di sound.

On first poweron you have to calibrate the potis: So press and hold power-button for ~10 sec, until it beeps. Then move both potis and wait for another beep. It now should have saved min and max positions for both potis in eeprom.

@LONG-9527
Copy link
Author

@larsmm How can I contact you?

@larsmm
Copy link
Owner

larsmm commented Mar 14, 2023

Make a video and show the problem.

@LONG-9527
Copy link
Author

2e62276e9a5154f00f87b017604326d4.mp4

@LONG-9527
Copy link
Author

a830355b630841e8a7225648b86f9065.mp4

@LONG-9527
Copy link
Author

@larsmm

@LONG-9527
Copy link
Author

@larsmm I don't know why, but my car is ready. This question has been bothering me for a long time

@LONG-9527
Copy link
Author

@larsmmI have a good suggestion. I'll give you my BIN file to try, and you give me your bin file to try (the 36 lithium battery I use).

@LONG-9527
Copy link
Author

@larsmm
firmware.zip

@larsmm
Copy link
Owner

larsmm commented Mar 31, 2023

In version 1.100301.220327 of toolchain-gccarmnoneeabi package the adcs switched positions. In version 1.90301.200702 it is working like expected. There must be a serious problem in the code.

It is fixed in my newest commit. Please test again.

@LONG-9527
Copy link
Author

@larsmm #define ADC_MARGIN still not working I've tweaked everything between 30 and 200 and my head is exploding

@LONG-9527
Copy link
Author

Can you calibrate it automatically @larsmm

@LONG-9527
Copy link
Author

你用什么社交软件 @larsmm

@LONG-9527
Copy link
Author

What social media do you use @larsmm

@larsmm
Copy link
Owner

larsmm commented Apr 4, 2023

I did an update. Please try again. Please show debug output after calibrating. Use ADC_Margin 100 for now. Does it make a difference to end the calibration by short pressing power button?

@LONG-9527
Copy link
Author

@larsmm It still doesn't work.

@LONG-9527
Copy link
Author

EFeru
/
hoverboard-firmware-hack-FOC
This three-speed one is fine

@larsmm
Copy link
Owner

larsmm commented Apr 11, 2023

Please post the serial debug output:
https://github.com/EFeru/hoverboard-firmware-hack-FOC/wiki/Debug-Serial

You will get lines like:
in1:345 in2:1337 cmdR:0 cmdL:0 BatADC:0 BatV:0 TempADC:0 Temp:0

in1 and in2 are the raw adc values of your pedals. Post values for not pressed and fully pressed for both pedals please. How much noise is there on min and max positions? If my firmware powers off too fast, use emanuels firmware.

@LONG-9527
Copy link
Author

There's a brake problem in third gear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants