When operating the robot, I usually upload “Teensy 4.1 sketch ver 5.1” to the Teensy 4.1 via the Arduino IDE. However, this time I mistakenly uploaded the code from the URL (attached) and performed the calibration, which caused a high-pitched abnormal noise from the J4 motor. When I touched it, it was very hot, so I turned off the power.
After waiting for some time and letting the motor cool down, I reconnected the power. Then, unlike before, the motor started making noise even when it was not operating.
I then re-uploaded “Teensy 4.1 sketch ver 5.1” to the Teensy 4.1 via the Arduino IDE using the correct procedure and performed the calibration. While the robot became operational again, a different kind of abnormal noise continues to come from the J4 motor even when it is idle.
I would appreciate any advice you could provide.
I have attached the relevant URL and the audio recording of the abnormal noise for your review
https://github.com/ycheng517/ar4_ros_driver/blob/main/annin_ar4_firmware/AR4_nano/AR4_nano.ino