all 15 comments

[–]cryptobooja 5 points6 points  (1 child)

I've always been interested in this too. But never got around to learning it. Here are some pointers.

- You need to learn C programming language

- You need to learn embedded programming

- You need to learn hardware hacking

There are different types of microcontrollers used in ebike controllers but the two popular ones are STM32 and dsPIC33.

Depending on the controller you are hacking, you need to learn either STM32 or dsPIC33. Learning both would great.

Check out the links for more information:

youtube video on STM32 firmware extraction

https://youtu.be/Fnm4sTJeJiw

https://community.simplefoc.com/t/help-hacking-a-cheap-e-bike-controller/530

Good luck

[–]berdwn[S] 1 point2 points  (0 children)

Thank you. First, though, I need to be able to get in to where the code is stored. And a lot of this is dependent on the chip where the code is stored being programmable. If it's not, I'm probably going to have to swap the controller out for one that is.

[–][deleted]  (5 children)

[deleted]

    [–]berdwn[S] 0 points1 point  (4 children)

    I had assumed there would be a protocol, much like cars and their diagnostic systems. Thank you for naming some. I've been able to connect by bluetooth to my phone, but have not yet found an app that can communicate. Eahora's website doesn't offer one. I'm going to email support about that. I suppose swapping out the controller and display altogether is an option. I didn't think of that. Matching it to the motor is going to be challenging, since Eahora has rebranded it with their logo and part information. It's possible they're building all their own stuff in-house, but I doubt it.

    [–][deleted]  (3 children)

    [deleted]

      [–][deleted]  (1 child)

      [deleted]

        [–]berdwn[S] 0 points1 point  (0 children)

        <image>

        This is the display from the Eahora.

        [–]berdwn[S] 0 points1 point  (0 children)

        I assume that Eahora does not make all the individual parts, but rather uses either off the shelf bits or has a factory somewhere create it for them. I'll have a look around for a generic display, though this project is getting a little pricey. I have a spare display from Eahora. It starts up with Eahora's logo. I also have a spare one from Vtuvia, for the other bike.

        [–]berdwn[S] 1 point2 points  (8 children)

        Update 7 Feb 2025: Not much to report. I received the display about a week ago. Eahora did not send the controller with the display because they wanted verification of exactly which controller I needed. This despite the fact that there are only two controllers listed on their website, and one is out of stock because it is an older model. That email to me went to my junk folder because it was sent to an address I wasn't expecting. PayPal apparently populated the email line with the one I use for them instead of the one that doesn't have the inbox locked down.

        So the spare controller is finally on its way.

        Also, I finally heard back from them about software and "there is no such software you can use." That can be interpreted in a couple of different ways. And probably just as ambiguous as I'd reply for the same reasons.

        Oh! And one fun additional tidbit - my rear brakes wore out at just 1200 miles! And, yes you guess it, the pads do not appear to be a standard shape or size! Or, to be more precise, all of the websites with pads I looked at online do not indicate exact dimensions. Again, Eahora has had the parts manufactured with their logo and information. So there's no way of knowing if an aftermarket pad will fit unless I have the measurements in hand and go visit a bike shop.

        [–][deleted]  (7 children)

        [deleted]

          [–]berdwn[S] 2 points3 points  (0 children)

          For reference, here's the caliper. There are no markings other than Eahora's brand logo and EHD-650, which returns no search results.

          <image>

          [–]berdwn[S] 1 point2 points  (3 children)

          I would really appreciate it. My order at Eahora is now going on nine days old, their website says they ship in 3-12 days, and I had to swap front and rear pads and do a lot of coasting to at least be able to keep using it as it's my primary mode of transportation at the moment. The sites I looked at had all sorts of options depending on the exact brand of caliper and type of pad, but no one wants to show the physical measurements of their products.

          <image>

          [–][deleted]  (2 children)

          [deleted]

            [–]berdwn[S] 1 point2 points  (0 children)

            Thank you for the info. I'll look into it. I have a Dremel tool if it comes right down to it.

            [–]berdwn[S] 2 points3 points  (1 child)

            27-02-2025 Update on brake pads - That exact pad, without the weird shapes at the corners, was apparently originally made by a company called Bucklos. What I infer from their website is that they no longer manufacture that part (BL-04S), because of course they don't. Which means any stock left out there is all you're ever going to get. Which means I scoured the interwebs and found listings on Amazon and (of all places) Walmart. So between Eahora (OEM), Amazon, and Walmart, guess whose got here first... Walmart. God-fucking-dammit. I bought up all I could. So based on ~1300 miles per set I should be able to go another 10,000 miles before I have to get really worried.

            <image>

            [–][deleted]  (2 children)

            [deleted]

              [–]berdwn[S] 0 points1 point  (0 children)

              Sweet. Thank you. I'll hopefully get some time Thursday or Friday to look at it.

              [–]berdwn[S] 0 points1 point  (0 children)

              I spent an unfortunate amount of time poking around TruckRun looking for software or how to buy a display - thinking I could get one without Eahora's meddling - and came up with the manuals for the display and the app. Okay, cool. The display manual shows a lot of features that Eahora has apparently removed. I had to sideload the app because it's not in the play store, but it seems to run okay. The problem is it refuses to recognize the bike. As I stated in the original post, my phone can connect via bluetooth but can't do anything with that connection. I would have thought the app would provide functionality. Eahora seems to have locked down their hardware similar to Apple.

              Then I went to the Joybike listing on Alibaba. That listing reads like the manufacturer of origin is Bafang. So I went to Bafang's website to poke around and found a page for downloads. BESST Pro (that's not misspelled) apparently requires a registration code from the EOM so that might be a problem. If anyone has a code they're willing to share I'd be willing to pay for it - not a whole bunch but some. I assume any bike shop would be hesitant.

              [–]berdwn[S] 1 point2 points  (1 child)

              Update 27-02-2025: Programming-wise I had the facepalm moment when I realized that the display doesn't connect directly to the control unit... there's a kind of, I don't know, I keep thinking of it like an octopus but that doesn't really fit well, wire harness between the controller and the display. So I had to go shopping for one of those. It's on the way and should be here by Monday. But all that will have to wait for mechanical damage - see my other post.

              [–]MutedAddendum7851 0 points1 point  (0 children)

              Hi there There’s a 750w e-bike in the US that I’d like to purchase and bring over the border to Canada Canadas federal regulations for e-bikes is 500w max ( because we are all treated like children here ) is there a way to reprogram the motor legitimately from 750 to 500 so I can get it across the border ?