Comments (6)
Yes, it is possible!
- If you want 2 x 6-PWM control you need a model with two advanced control timers, normally TIM1 and TIM8.
- It has to be a fairly fast MCU to run 2 times the SimpleFOC loop
- if you want current sensing, you will need 6 ADC pins also
- and you need 2 sensor inputs, for ABI you would ideally use 2 more timers and our STM32HardwareEncoder or use SPI, maybe with two separate SPI buses...
I think most of the STM32G4 series would be suitable.
Here is an example design I made, with 2x 6-PWM, 2x current sensing and 2x SPI bus for sensors:
https://github.com/rosmo-robot/Rosmo_ESC
from easydiy-esc.
(but it is not possible using a BluePill or BlackPill MCU board - not enough pins; but I guess one of the big Nucleo boards could do it...)
from easydiy-esc.
Thank you @runger1101001 for your insight.
from easydiy-esc.
@runger1101001 How about using ESP32 ? Does it have enough pins to run 2 motors?
Thanks.
from easydiy-esc.
Pins are always in short supply on the ESP32! It only has relatively few to begin with compared to other MCUs, and then they are so complicated to use... some are input only, some can't be used at the same time as WiFi, and some are only "pretend" pins since they're actually connected to the flash memory and you can't use them at all...
So the answer is: it depends.
A DevKit type MCU-board: not really, I don't think so.
A ESP32 module or chip with 2x 3-PWM driver: I think it is possible.
A ESP32 module or chip with 2x 6-PWM driver and 2x current sense: not sure, but probably.
from easydiy-esc.
I think the middle option (A ESP32 module or chip with 2x 3-PWM driver: I think it is possible) seems attractive option for low cost motor controller. I wanted a low cost controller to control 2 250 watts hoverboard motors for my project using SimpleFoc.
Your https://github.com/rosmo-robot/Rosmo_ESC project looks promising if it can use ESP32 and at least 10A drivers and Mosfets.
Thanks.
from easydiy-esc.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easydiy-esc.