Comments (3)
We really welcome people trying new chips!!
The due uses a 32bit SAM3X8E chip which has a analogWriteFrequency()
method.
The SA3X8E is a type of SAM3XA chip so perhaps targetting #define _SAM3XA_
for chip detection is appropriate.
I can't test (I have no DUE) but I'd try copy/rename the file teensy_mcu.cpp
(link below) to samxa_mcu.cpp
and then changing the #define
to #if defined(_SAM3XA_)
logic in new file and in generic_mcu.cpp
https://github.com/simplefoc/Arduino-FOC/blob/master/src/drivers/hardware_specific/teensy_mcu.cpp
Putting it another way I suspect that our hardware specific logic for teensy would work for due - but probably worth breaking them out as they may diverge.
from arduino-foc.
Hey guys,
This is a great issue, but we will need some help here I think.
I do not own a due and we will need some volunteers to provide us with some examples of working codes samples. Otherwise it will take some time until we resolve it and it is a shame a bit :D
from arduino-foc.
Arduino DUE is supported from this moment. The support is currently in the dev branch and it will pass in the next release. It supports all drivers and all the features except 6PWM mode. If I will have enough time I'll try to squeeze that as well into the next release. Here is the link for current version of the library in dev:
https://github.com/simplefoc/Arduino-FOC/tree/dev
The support enables combining the pwm and timer pins at the same time and for now we support only the pwm pins supported with the Arduino implementation. Let us know if you are interested in having fuller support!
from arduino-foc.
Related Issues (20)
- 20bit magnetic encoder support
- [BUG] ESP32 current sensing readings not synced with PWM - Not reproducible HOT 2
- [BUG] Error in doc: initFOC() cannot be used in open loop mode HOT 1
- driverAlign() ignores gain sign, always "MOT: Success: 3" HOT 4
- [BUG] PlatformIO adding SimpleFOC requires to specify SPI and WIRE lib_deps to prevent compile errors HOT 5
- Support for the new ESP32 LEDC library API HOT 4
- Is this FOC suppot high speed BLDC(5000rpm)?[FEATURE] HOT 2
- MagneticSensorI2C uses incorrect bit mask calculation HOT 4
- [BUG] Passing a new target to move() is sometimes ignored HOT 5
- [FEATURE] Support for arduino-esp32 v3.0.1 HOT 1
- [FEATURE] Current sensing for stepper motors - FOC current control HOT 1
- [BUG] Trap 150 potential miscalculation
- [BUG] sin/cos integer overflow on 16-bit CPUs HOT 3
- [FEATURE] Possibility to run FOC from interrupt HOT 3
- [FEATURE] Hall sensor without interrupt HOT 5
- [FEATURE] Always run current sense and persist current values
- [BUG] Copy/paste error in stm32g4 current sense HOT 1
- Standalone library usage without Arduino HOT 9
- [BUG] Cannot compile with esp32-c3 HOT 3
- [BUG]Noise Issue in open loop velocity Sample with ESP32S3 and DRV8311H HOT 5
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 arduino-foc.