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

Speed Sensor #29

Open
tikki-tikki opened this issue Feb 27, 2025 · 11 comments
Open

Speed Sensor #29

tikki-tikki opened this issue Feb 27, 2025 · 11 comments

Comments

@tikki-tikki
Copy link

Hello thank you kindly for the firmware with CANBUS, it's fantastic. A lot of riders who use pedicabs, cargo bikes and trails bikes hate having a speed sensor (the magnet always misaligns), and prefer to use throttle only instead of PAS. Is there a way to deactivate the speed sensor and avoid error 21 in your config tool?

@andrey-pr
Copy link
Owner

andrey-pr commented Feb 27, 2025

Its technically possible to turn off PAS, but its illegal to have throttle lever on bike in most of countries, including Germany and other countries of EU. If its legal in your country, you can change parameter "motor trigger"

@andrey-pr
Copy link
Owner

Also, you could not turn off speed sensor, because its required for measuring of actual bike speed. Controller need to know actual bike speed to maintain 25kmh limit

@tikki-tikki
Copy link
Author

Amazing, thank you for the response. That's really interesting. We do not have such regulation for ebikes here in Canada, i feel sad for Europe! Ok thank you kindly i will have a look at the "motor trigger". I see DanielNillsons config tool was able to achieve deactivation of the speed sensor but his tool is only for UART protocol (see screenshot)

Image.

For a pedicab, knowing the speed is not needed, and a PAS system just wastes the battery, we are trying to conserve as much battery life as possible to extend the drivers range.

Thank you for your amazing contribution to the Bafang community and if you would like a donation for this work to unlock the full potential of the motor, please send me a link for payment. Stay awesome.

@andrey-pr
Copy link
Owner

andrey-pr commented Feb 27, 2025

Thank you for answer.
I never was in Canada, but I would warn you that probably there are many legal regulations on ebikes in Canada also. As far as I know, in many provinces you still have 32kmh limit and ban on throttle levers. Better check laws in your jurisdiction before driving, and consult with lawyer if necessary

@tikki-tikki
Copy link
Author

We do not have a ban on throttle levers. Wooooohooo! https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/64_2024

I see around the forums that a lot of people are looking for this functionality. Please let me know if we can pay you well for the project.

@NexGen-3D-Printing
Copy link

Lawyer? I assume your in the EU?

I say build a faster eBike so they cant catch you :)

Down with the laws, I say go a throttle, 72v battery, 90KPH+ speed limit and leave these unjustly enforcers eating your dust.....

@tikki-tikki
Copy link
Author

Lol!.....right? Like why should the government tell you how to enjoy an ebike....like really....Im sorry for being a pirate, but motor plus throttle equals fun on two wheels, no?.....who u gonna hurt?

@NexGen-3D-Printing
Copy link

100% Agree, take a look at the mental bike I'm building at the moment on my Youtube channel, it hits 150+ KPH when the speed limiter kicks in, and I was still upset :)

Sorry andrey-pr for hijacking this issue thread, keep up the good work.

@tikki-tikki
Copy link
Author

Excellent NEXGEN, belt drive and hub motor....maybe need a gum shield too, great skills! Ok well my point is really not about breaking speed limits. Working bikes get beat up. If you race in the woods or work as a courier...or have a cargo bike the little magnet moves, the speed sensor cable gets damaged, you can no longer work or race. The new generation of Bafang on CAN bus all shut down the motor with error21. The need to disable the speed sensor is really important. It's not about breaking the law, but really about keeping the motor from shutting down.

@NexGen-3D-Printing
Copy link

There is no hub motor on that setup the hub is CVT transmission (NuVinci N171) motor is the CYC Pro mid drive.

I know exactually what you mean, that silly little sensor and magnet should not be a show stopper, I dislike how they work and how it relates to torque and to speed, as the sensor's input is used to provide how much torque you get at a given speed, the throttle doesn't work like one expects, specially if you are used to a cable driven throttle body on a combustion engine.

It would be nice to have an override mode where the motor rpm is directly linked to throttle position, regardless of speed, or use GPS speed as a fallback, but I think these are locked features in the firmware, what we need is deeper firmware control of the Bafang range.

Have you looked at swapping out the controller for the older serial type? Not sure what model you have, but I ordered one in for BBSHD and a BBS02 recently, those are still available, and the M620 can also still be purchased in serial.

@tikki-tikki
Copy link
Author

Great advice, thank you NexGen. Yes, I believe the old controller is the way to go until someone is prepared to unlock this feature. It sucks that Bafang does not understand that we buy from them because we like to hack their stuff. We like boring out our bottom brackets and messing with the controllers!

Those CVT transfer hubs look awesome, my mistake. I've been meaning to save up for some of those to save the cabs derailleurs. You might need some triple butted spokes for you 150kph adventures. Totally cool. Ok well I'm off to drive my unrestricted Ferrari at high speed around the streets of Vancouver untill I get arrested.

If anybody knows the solution to this I would love to hear from you..... Might be as simple as open up the controller and cut the gray wire....but I just don't know. Pretty soon we are all in CAN bus so ......whatever. I know people are using 555 timers and "Speedboxes" to overcome the problem. A programming tool is just so much more Bafang! Stay awesome.

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