OpenSourceEBike / Bafang_M500_M600

GNU General Public License v3.0
86 stars 37 forks source link

Reorganizing Hardware section? #16

Closed Tomblarom closed 3 years ago

Tomblarom commented 3 years ago

Having a folder, called img is very generic. I have pictures of a M500 and M600 controller version and wanted to commit them, but I won't just throw it into that folder. I'd suggest adapting the structure like this:

Bafang_M500_M600/
├─ Hardware/
│  ├─ Controller/
│  │  ├─ M600 A18YJV2019911/
│  │  │  ├─ img hardware version
│  │  │  ├─ controller front - annotated
│  │  │  ├─ controller back - annotated
│  │  ├─ M600 A18F8TB089622/
│  │  │  ├─ ...
│  ├─ Drawings/
│  │  ├─ ...
│  ├─ Mechanical/
│  │  ├─ ...
├─ .../

In my opinion it's important to trace the hardware changes through the different PCB revisions! We can't assume M500 2018 = M500 2021.

PrivatePuffin commented 3 years ago

There are a few important things to note here:

I'm not against reorganising, but I'm currently looking into moving this to a github-pages based system, because github repo's become a cluster fuck if we use folders like this.

PrivatePuffin commented 3 years ago

Speaking of which... @casainho Could you please enable github pages in settings and point it towards the /docs folder? I can handle the rest relatively well.

casainho commented 3 years ago

Speaking of which... @casainho Could you please enable github pages in settings and point it towards the /docs folder? I can handle the rest relatively well.

I just gave you maintainer permissions, I hope you can now configure this option.

PrivatePuffin commented 3 years ago

Speaking of which... @casainho Could you please enable github pages in settings and point it towards the /docs folder? I can handle the rest relatively well.

I just gave you maintainer permissions, I hope you can now configure this option.

Awesome, thanks! I'll work on the docs side this month, though I also have some work for another project so it might take a few weeks :(

casainho commented 3 years ago

Has you or anyone plans to move on firmware development?

PrivatePuffin commented 3 years ago

Has you or anyone plans to move on firmware development?

If anyone could get me the firmware/memory/debug dump, I would (even without hardware) be willing to put some time into figuring out which memory address gets loaded as a firmware entrypoint. Preferably I would reuse the Bafang bootloader if we can, because it would mean users could just load opensource firmware without needing to change the bootloader.

But currently, i've no hardware at all.

Tomblarom commented 3 years ago

I'm not that experienced, to help with development, other than testing or providing hardware, like I offer you. Got M500 ready to ship, but currently unsure who shall receive it. As I said, got M500 and M600 for development purposes.

@Ornias1993 can you add them?

M500 M600 Controller Externals:

M500 M600 Controller Externals

M500:

M500 Serial:

M500 Serial

M500 Base View:

M500 Base View

M500 PCB Top:

M500 PCB Top

M500 PCB Bottom:

M500 PCB Bottom

M500 PCB Top SLR:

M500 PCB Top SLR

M500 PCB Bottom SLR:

M500 PCB Bottom SLR

M600:

M600 Controller Serial:

M600 Controller Serial

M600 Serial:

M600 Serial

M600 Base View:

M600 Base View

M600 PCB Top:

M600 PCB Top

M600 PCB Bottom:

M600 PCB Bottom

M600 PCB Top SLR:

M600 PCB Top SLR

M600 PCB Bottom SLR:

M600 PCB Bottom SLR

PrivatePuffin commented 3 years ago

@Tomblarom OMG WOW, those pictures are REALLY good! I got your email, will answer it tomorrow or the day after... 👍

PrivatePuffin commented 3 years ago

THose controller boards are really interesting! Two m600 boards and one of which has double the FETS and double shuts and the other has not...hmmm...

Or is it one m500 and one m600, because the wiring has also changed....

Tomblarom commented 3 years ago

I renamed the files to make clear, what is what. You can check again.

Thought about annotating them, but 4πr^2 (in the ES forums) did an awesome job annotating. Maybe I'll do it later on.

PrivatePuffin commented 3 years ago

@Tomblarom There are no file names the way you uploaded them. Also afaik github adds some compression. Could you send me the raw files?

casainho commented 3 years ago

@Tomblarom great work! Seems the board is 2 layers only, right? if so, with such good pictures, would be great if someone could draw the schematic even if partially. For instance, to drive the motor, there is need to control the mosfets and read the shunt current, as also battery voltage, I think. Also throttle is needed for input of commanded motor current. Also UART is needed for output motor variables.

Do you have an oscilloscope to measure some signals??

Tomblarom commented 3 years ago

I'll try to use my SLR camera and redo the images for easier tracing.

Nope.. Unfortunately got no oscilloscope.. As I said:

I'm not that experienced, to help with development, other than testing or providing hardware, like I offer you. Got M500 ready to ship, but currently unsure who shall receive it. As I said, got M500 and M600 for development purposes.

PrivatePuffin commented 3 years ago

@Tomblarom Could you give a lost of which equipment you've got availble now and in the near feature? That way we can work out what is the best attack vector, in terms of distributing things.

For example: Maybe you could send the broken one (unless you destroyed that one for the pictures, which would be a shame) to me to check if I can power it to dump the firmware and afterwards I could forward it to @casainho relatively cheaply.

casainho commented 3 years ago

Before sending the boards to anyone, would be great if you could use a multimeter to follow the connections on the board and draw a partial schematic. Do you have time and motivation to do this? If so, I can guide you on how to draw the schematic.

That pictures are great for helping following the connections and do it physically is a must for validation.

PrivatePuffin commented 3 years ago

Before sending the boards to anyone, would be great if you could use a multimeter to follow the connections on the board and draw a partial schematic. Do you have time and motivation to do this? If so, I can guide you on how to draw the schematic.

That pictures are great for helping following the connections and do it physically is a must for validation.

Agreed, tracing would be great!

Tomblarom commented 3 years ago

Do you have time and motivation to do this? If so, I can guide you on how to draw the schematic.

Unfortunately not. Fairly busy with other projects. That's the best I can do for you right now. I added pictures, I took with a SLR camera. Maybe they are better for some parts. Also added the status of these two controllers (functional vs broken).

@Ornias1993 I only got an RD6018 and basic electronics tools. I can't offer anything else, than providing this in-depth material, since fairly I'm busy...

PrivatePuffin commented 3 years ago

Do you have time and motivation to do this? If so, I can guide you on how to draw the schematic.

Unfortunately not. Fairly busy with other projects. That's the best I can do for you right now. I added pictures, I took with a SLR camera. Maybe they are better for some parts. Also added the status of these two controllers (functional vs broken).

@Ornias1993 I only got an RD6018 and basic electronics tools. I can't offer anything else, than providing this in-depth material, since fairly I'm busy...

With equipment I was refering to a list what m500 and m600 hardware you got available to distribute...

Tomblarom commented 3 years ago
Tomblarom commented 3 years ago

Who shall receive my hardware? Can you discuss this?

casainho commented 3 years ago

On next 2 weeks, If I had the hardware, I would only try to connect the flash/debug JLink to see the boards works on that - I would not be able to do more.

And I really think the next step must be do partially the schematic, as motor controller firmware can not be develop without knowing the connections from the microcontroller to the hardware. It needs someone motivated and with time to do that, using the boards, the pictures and a multimeter.

PrivatePuffin commented 3 years ago

@Tomblarom You can send it all to @casainho I think thats the most tactical approach atm.

Tomblarom commented 3 years ago

@casainho do you want me to send the Higo cables + Innomaker HW with it? I definitely need them + M600 controller (working!) back, at some point.

image

casainho commented 3 years ago

For the development, all that components will most for sure be destroyed.

Tomblarom commented 3 years ago

I think you can get the most from the broken M500, without destroying the M600. Do it if you really have to, but I'd be happy to get it back. - Can you at least answer the main question, I asked? I even posted a picture??

Tomblarom commented 3 years ago

As I got no feedback, I only provide the broken M500 and M620, since I have no guarantee to get my freely provided hardware back.

PrivatePuffin commented 3 years ago

@casainho you should’ve respondes on this.

casainho commented 3 years ago

Sorry, I am being riding for some days, away from computer.

If there are special controllers and with special firmwares that are sold for 1000 euros, then I think this project can be a BIG problem for that companies.

I understand that development tools are expensive, but there is not other way. And it is very expensive for one person only donate a complete part like a motor or a bicycle. I think the best could be probably asking donations in money, so everyone could done a small part. In fact someone did that, collected the money and bought me the TSDZ2 V2 motor controllers and a motor.

About this project, I would really need a motor and an ebike with it, so, I should stop dreaming with this as I have no space at home for more bicycles. Maybe next year? Anyway, with the controller only, I can give a look.

20210806_104242

PrivatePuffin commented 3 years ago

Lets keep this on-topic from now on. Please create new issues for new subjects (like sending hardware and such).

@Tomblarom I'll do some restructuring this week and close this ticket once done. I think that solves you issues :)

PrivatePuffin commented 3 years ago

I've hidden the whole off-topic discussion about sending hardware. As it has nothing to do with the subject of this ticket and is also mostly resolved by now :)

Tomblarom commented 3 years ago

One last off-topic: I sent out the parcel, recently. ;)

PrivatePuffin commented 3 years ago

added the pictures, added more info and reorganised the hardware section as requested.