- Ensure the “Arduino Nano 33 IoT” is properly connected to your computer.
- Check that the model is configured for External mode, as required for Monitor & Tune operations.
- Use a small non-zero constant input to confirm the motor block responds, as a zero value indicates no movement.
- Isolate the Motor Block: Create a minimal model with only the “M3 DC motor” block to rule out other model complexities.
M3 DC motor does not work
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everyone,
I am working with Arduino Engineering Kit Rev 2 (Self-balancing motorcycle), with Arduino Nano IoT33 board. The problem i am facing is that on Simulink when i assign constant value 0 block as input to M3 DC motor block (that theoretically with this value should work) simulation (Monitor & Tune) stops at time T=0.000 s without any error. It seems like there is a sort of continuos loop and I can't go further or stop simulation or even close matlab. Only thing i can do is to kill it by task manager. I kept up-to-date every driver or tool from matlab or Arduino IDE and followed all the instructions available on matlab website in order to build the simulink model.
Matlab & Simulink 2023b release.
0 comentarios
Respuestas (1)
UDAYA PEDDIRAJU
el 24 de En. de 2024
Hello Francesco,
To address the freezing of your Simulink model at T=0.000s when assigning a constant value of 0 to the “M3 DC motor” block, consider the following steps:
Implement these steps to diagnose and potentially resolve the simulation halt.
You can refer to the following documentation to know the expected behaviour during Simulation of “M3 M4 DC Motors”: https://in.mathworks.com/help/supportpkg/arduino/ref/m3m4dcmotors.html#:~:text=Block%20Produces%20Zeros%20or%20Does%20Nothing%20in%20Simulation.
0 comentarios
Ver también
Categorías
Más información sobre Modeling en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!