• Hello ES! We could use some help to get us past the finish line on building the new knowledgebase for the forum.
    Can you donate? Please see our fundraising page. Thank you!

VESC for Bafang M560

Status
Not open for further replies.
I know the new speed sensor from RC motor works with Luna controller (and should work with this board) with single magnet on the spoke if it is far from other moving metal magnetic objects.

The new speed sensor will not read the speed correct with the current Luna firmware if you place the new speed sensor in the new place near the rear brake and will use the new metal ring with openings instead of single magnet for the speed sensor (the speed will be too fast). It looks like the new RS speed sensor sends the same signals as old speed sensor, it just sends multiple signals per one revolution of the wheel instead of one signal per wheel revolution and if someone can change the VESC/Luna firmware speed detecting algorithm the new board should work with it properly.
 
Last edited:
Hm, the encoder is placed quite isolated on the original PCB. There is much space to the neighboured parts. I guess this is to avoid interferences. Maybe you should do it in this way also....
You mean mechanical interference with the motor shaft cover? It should be fine as long as there are no tall part around the encoder. This yellow circle is the diameter of the motor shaft cover, as long as the parts whiting this circle are shorter than the encoder it shout not interfere with the cover

1761547638078.png

And you mean original PCB is Bafang or Luna? Here is the Luna encoder and it works fine.


1761547181548.png
 
Last edited:
The VESC Labs M560 motor controller is almost complete! We are getting closer guys!

[ moderator note: this is not a VESC labs controller. ]

[ trademark infringing image removed ]

1761914195218.png

1761914420035.png
 
Last edited by a moderator:
I ended up with 6 layers board anyway so I put the USB back. It is not populated, but if for some reason you need it you can solder wires or 2mm pitch header and 2 resistors to make it works


[ trademark infringing image removed ]

1762127537537.png
 
Last edited by a moderator:
Today is the big day boys and girls! The VESC M560 controller has been complete! Here is the download link.

[ trademark infringing archive removed ]

@qwerkus you can start making the VESC Labs M560 controller and figuring out the firmware.

I did not generate Gerber files and did not order the parts yet, but this is basically it. The schematic and the PCB has been checked with design rules checker and it looks good for me. Anyone wants to test the motor controller? This should be plug and play as long as you can figure out how to implement that torque sensor code to utilize the torque value from that PB0 pin for the VESC firmware.


[ trademark infringing image removed ]
 
Last edited by a moderator:
as long as you can figure out how to implement that torque sensor code
As written in #25 already, you have to change just one line of code. For the break lever switch it needs some more modification, but not much.
I have no idea, if a simple pull request to the VESC repo with a new hwconfig subfolder for the M560 would be accepted. If we just do it in a fork, the next changes in the VESC tool will make this project incompatible, that's the experience with my Flipsky project. :(
 
I think we nailed it guys! It fits like a glove! There is nothing left to do other than start making it.

I 3D printed the PCB and checked the fitment.

1762211885537.png

1762211921076.png

1762211959399.png

1762212006938.png

1762212059159.png

1762212097761.png


1762212126058.png



1762212155834.png


1762212179289.png

1762212276644.png

1762212325343.png
 
Ordered the VESC M560 controller boards on JLCPCB.com. Here are the settings

[ trademark infringing image removed ]

1762217009101.png

1762217159550.png
 
Last edited by a moderator:
Started ordering the parts. Here is how you can order the parts using KiCAD

1) Click the "Edit Symbol Fields"
2) Select the "Ordering Checklist" view preset
3) Copy each part link from the "Link" column, paste in in the Internet browser to get to the part online shop page
4) Insert the amount of parts from the *Qty" column to the online shop part quantity and add it to the shopping cart
5) Once you added the parts to the shopping card mark that you ordered it on the "Ordered" column

Do this for all the parts have links and order the parts once you finished adding the parts to the shopping cart

1762219239614.png
 
Updated the files.

[ trademark infringing archive removed ]


Added the Gerber files so you can use to order the PCB

1762228468087.png

Implemented the thermal pad. It should be 0.5mm thick thermal pad. This one should work


The thermal pad CAD model or PDF file you can use for cutting can be found here

1762228520325.png

[ trademark infringing image removed ]

Also included the CAD files of the torque sensor jig and the PCB holding jig for 3D printing I used here


1762228591060.png

You can use it if you want to experiment with the motor and the controller without assembling the motor. For the torque sensor jig I used carbon filled PETG filament with 100% infill and it holds well. For the PCB jig you can use PLA with default settings. The holes in the PCB jig for the PCB mounting screws should be tapped with M3 tap. To mount the PCB jig to the motor case you can use 3 of M4 screws 60mm long. This one should work

 
Last edited by a moderator:
The components are here and ready to be soldered! I recommend you to sort the bags with components by the position numbers from the online shop you ordered it from. Then you can use the PDF file with the order items list the online store generated for you to search the component you need to place by the part number using the search function.

1762817585998.png

1762817646691.png
 
Last edited:
The PCBs and stencils are here guys! These new VESC Labs M560 PCBs look just amazing! It is time to get busy guys!

1762887698645.png

1762887721526.png

[ trademark infringing image removed ]

[ trademark infringing image removed ]

[ trademark infringing image removed ]

[ trademark infringing image removed ]

1762887921087.png

[ trademark infringing image removed ]
 
Last edited by a moderator:
Preparing the top face for soldering

[ trademark infringing image removed ]

1762918378473.png

[ trademark infringing image removed ]

[ trademark infringing image removed ]
 
Last edited by a moderator:
It is ready for cooking guys!

[ trademark infringing image removed ]

[ trademark infringing image removed ]

1762919935157.png
 

Attachments

  • 1762919892313.png
    1762919892313.png
    1.4 MB · Views: 61
Last edited by a moderator:
The top face has been soldered and looks sweet!

Those MOSFETs are giant, that should deliver some serious punch!

[ trademark infringing image removed ]

[ trademark infringing image removed ]
 
Last edited by a moderator:
The current sensing resistors and some big components like the inductor on the bottom side were soldered with hot air. The rest can be soldered with soldering iron.

[ trademark infringing image removed ]

1762988450711.png

[ trademark infringing image removed ]

1762988511055.png

[ trademark infringing image removed ]
 
Last edited by a moderator:
Holy cow! It loos like this guy already finished an aftermarket controller for Bafang M560!

 
Status
Not open for further replies.
Back
Top