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

Hall sensor reading range changes with headlight on/off #50

Closed
Nyami11 opened this issue Mar 4, 2024 · 2 comments
Closed

Hall sensor reading range changes with headlight on/off #50

Nyami11 opened this issue Mar 4, 2024 · 2 comments
Labels
bug Something isn't working medium this can wait shfw shfw bugs

Comments

@Nyami11
Copy link

Nyami11 commented Mar 4, 2024

Scooterhacking Tool

Firmware (SHFW)

Type of issue

Other

Severity of issue

medium (affects usability but has a workaround)

SHUT Version

rc_support_shfw_037_v8_1

SHFW Version

betapwm_Base187-v0.3.7_pre_v8_3

Scooter model

Ninebot G30

Description of the Bug

When you have the headlight on it reads a different value for the throttle and brake hall sensor. For me when I have the headlight off the throttle reads 40-41 when it's not pressed, and when fully pressed it reads 195. When I turn on the headlight it reads 41 on idle, and reads 180 when fully pressed.

20240304_131518.mp4

Steps to Reproduce

  1. Set the idle dash data to the throttle/brake value
  2. Pull/press the throttle/brake and check what value it reads
  3. Turn on the headlight and repeat step 2.
  4. You shouls see a different reading.

Expected vs. Actual Behavior

It should read the same hall sensor values with and without the headlights on

Contact Information

DC: nyami11

@Nyami11 Nyami11 added the bug Something isn't working label Mar 4, 2024
@github-actions github-actions bot added medium this can wait shfw shfw bugs labels Mar 4, 2024
@paulederbaus
Copy link
Contributor

This is a hardware issue existing in all firmwares. Can't be fixed with fw. - Issue closed.

@nopbxlr
Copy link
Member

nopbxlr commented Mar 5, 2024

Additional information: This issue arises from the 5V of the dashboard dropping with the load of the headlight. This ends up shifting down the max possible value of the hall sensor in the process. There is no clean way of fixing it from software, but the issue can be mitigated. Temporarily put "Brake value" or "Throttle value" as "Idle dash data" and turn the headlight on. Press the brake or the throttle fully according to the current selection and write down what the max value is. Use that as max values in the Hall sensor settings section. This will ensure you always get the full power/speed range from your inputs. You might have a small useless zone when the headlight is off, but nothing significant enough to be a bother.

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

No branches or pull requests

3 participants