You are here

Custom hardware

6 posts / 0 new
Last post
aachner
Offline
Last seen: 4 years 3 months ago
Joined: 2019-12-19 14:41
Posts: 1
Custom hardware

Hello,

can somebody explain to me what steps one needs to take to get vesc firmware on cutstom hardware?

I am thinking of creating my own custom esc (just for my projects) and I am looking for easy to use firmware since I have no idea about software (I am ok with C Programming but I have not yet programmed microcontroller)  and how to flash them.

As far as I understand it should be possible to adjust vesc to work on a custom board based on a stm32f0 which I wanted to use for my esc. Is that right?

I found the way how to flash vesc hardware, but I am missing where custom hardware is configured (pins and hardware values).

Can anybody help me out?

CTSchorsch
Offline
Last seen: 3 months 4 weeks ago
VESC Free
Joined: 2018-07-13 09:55
Posts: 101

Hi Aachner,

i build my own ESC based on the VESC6 schematic. I need a special PCB shape - round, to fit in a underwater scooter tube - and the best option was to do it on my own.

The hardware is configured in the src-code in the hwconf/ folder. Add your own hw_xxx.y and adjust the hwconf.mk. You have to adjust the conf_general.h, mcuconf.h and maybe some other files also. Depends on the compiler errors :))) The main configuration is done in your hw_xxx.h file. I recommend the use of GIT !

While drawing your schematic, have a look at the STM32f0 manual to check if your PIN has als the functions you need (alternative function table)

Regards

Georg

Is your nickname Aachner because you are living in Aachen ? Oder your name is a.achner ? :)) If first, i can help you in real life :)

hexakopter
Offline
Last seen: 1 year 1 week ago
VESC Original
Joined: 2017-05-24 12:13
Posts: 94

As Georg said, have a look at the conf_general and the hwconf folder where you can also see some supported TI DRV83XX gate driver.

Switching over from the STM32F405 to a different MCU should be very challenging because a big rewrite of the code is needed. There are quite a few topics and questions for a long time asking about porting to a different STM32 but I haven't seen a working example yet.

TechAUmNu
Offline
Last seen: 1 day 17 hours ago
VESC Free
Joined: 2017-09-22 01:27
Posts: 575

It's not like the STM32F405 is expensive, not that much reason to switch other than form factor.

parasole
Offline
Last seen: 3 years 1 month ago
Joined: 2017-11-08 09:50
Posts: 11

Not only form factor, main question to me if F0 may run the task, especially FOC? 

vadicus
Offline
Last seen: 9 hours 57 min ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 426

Taking VESC code to a different platform makes no sense as all platforms such as Ti, Infeneon, etc. have their motor driver "starter kits" and that's the right way to start. Moving from a better/faster performing MCU to an inferior one makes even less sense. If extra low cost is the only goal, it's better to use an off the shelf chinese controller for $15. Huge time and effort saver.

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)