Hi, after a while I thaugt I will do some tests with the latest version of the DCmotor Repo. I use a ATMEGA 2560
Some findings:
The example script of the dc-open-loop does not compile. Refs to library and the motor class is wrong
#include "SimpleFOCDCMotor.h"
// DCDriver object - this is the only thing needed for open-loop control.
// There are different types to choose from, please select the correct one
// that matches your motor driver hardware.
DCDriverSpeedDir driver = DCDriverSpeedDir(2, 3);
I tested with a rotary encoder into the dc-position and dc-velocity example scripts. It does compile. After entering a value the motor start spinning until it reaches the max voltage. In the monitoring output the 2 column on the right remains zero. I tested the encoders with another scripts and they are working fine. Also the callibration is skipped. Debug output:
Hi, after a while I thaugt I will do some tests with the latest version of the DCmotor Repo. I use a ATMEGA 2560 Some findings:
The example script of the dc-open-loop does not compile. Refs to library and the motor class is wrong
I tested with a rotary encoder into the dc-position and dc-velocity example scripts. It does compile. After entering a value the motor start spinning until it reaches the max voltage. In the monitoring output the 2 column on the right remains zero. I tested the encoders with another scripts and they are working fine. Also the callibration is skipped. Debug output:
(no calibration)
Monitoring output (target 5,0)
motor.loopFOC();
missing in the example scripts? I see it with the BLDC examplesIf you have any questions please let me know Regards