Nano33IoT MotorCarrier Beeping

Hello,

I recently got started with the engineering kit and wanted to start with the rover as the first one.

I assembled the little rover like in the video demonstration, following the color coding on the wires.
(video can be found here https://engineeringkit.arduino.cc/aekr2/module/engineering/project/05-webcam-controlled-rover starting at 2:40)

I got into sending power to the dc motors in order to spin the wheels.
Activating the M2 ports of the carrier indeed spins the left wheel but when I do the same to the M1 ports in order to spin the right wheel, it starts a long beep.

the code is the following:

>> a = arduino('COM##', 'Nano33IoT', 'Libraries', 'MotorCarrier');
>> carrier = motorCarrier(a);
>> dcmLeft = dcmotor(carrier,'M2');
>> dcmRight = dcmotor(carrier,'M1');
>> dcmLeft.Speed = 0.25;
>> dcmRight.Speed = -0.25;
>> start(dcmLeft)
>> stop(dcmLeft)
>> start(dcmRight)
>> stop(dcmRight)

I couldn't use the '1669805216-simulink-rover-control.slx' file as it throws me an error regarding the name. Regarding that I found a topic already made here but with no replies:

Also if I stop the left wheel before starting the right wheel, the same thing happens.
I redid the wiring following the video again to make sure and same thing happens.

Could You create schematics and post here?

Hello MrRoader.

I don't know how much you will like it

If the "diagram" I made looks too horrible, I placed a little snip from the video that makes the pins on the carrier more distinct with their names and also the color coding being the same.

Thank you for your attention

Thanks! The colours don't tell much without the datasheet.
Is that the M1 cableing You show? The running motor?
I guess the other motor is connected to the socket down in the picture. Check the symbols printed on the board for the functioning motor and compare with the troubleing motor.

No chance to read and check from the picture. Don't assume anything.
Schematics shows the names, the labels, of the places were the cable is fitted. Your picture show the positions and that's not helping us.

Regarding the file name, I removed the digits and dashes from it, and it opened. I am using version 2021b; however.

I'm having the same issue

How did you remove the digits?

Just rename the file in the file explorer.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.