I am using AX12-A servos for a robotic arm project, and the code I use to run them was working, but then suddenly is not. I am using a DynamixelShield on an Arduino Mega, connected to an Nvidia Jetson Nano that is controlling the servos via rosserial. When debugging the issue, I did not use ROS in an effort to eliminate as many variables as possible. I tried a few example sketches, such as scan_dynamixel and position_mode. WHen I used scan_dynamixel, the serial monitor kept returning the message “0 dynamixels found!” I know that the servos are getting power since their LEDs blink when being plugged in and they have holding torque, and I also tested the pins with a multimeter. The power pins are receiving 11.3 V and the Data pin is receiving 4.6 V (not sure if that’s correct or not for the data pin, but that’s where it is). The position_mode sketch did not work either, even when I tried on a brand new servo (default ID of 1, baud rate of 1000000 and protocol 1.0 all preset). I added the following if statement to the setup function in the sketch:
the result of that change in the serial monitor was “NOT PINGED!”, so I’ve concluded that for whatever reason the board is unable to connect to the servos now, and I am not sure why. The same sketch was working a few days ago and I’m unsure what other variables to test. Any ideas/advice?