I have my MPCNC up and running! (mostly).
Now I want to be able to control a servo with the M280 G-code command: https://reprap.org/wiki/G-code#M280:_Set_servo_position
I found this thread: Foam Cutter, how to control ESC
in which the guy said that you have to uncomment the #define NUM_SERVOS
line in Configuration.h of the firmware. Before doing this, sending the M280 command in Repetier Host (RH) gave back an “unknown command”. After making the change to that file, and reflashing the firmware, it doesn’t give the unknown command echo!
However, it doesn’t work, either. I have one of these dinky sg90 servos:
plugged into the first servo position. To be explicit, it’s the first column on the left here, in the box labeled “servos”: https://www.reprap.org/mediawiki/images/c/ca/Arduinomega1-4connectors.png
(so the D11, 5V, GND column.)
I tried a couple of these servos just in case one didn’t work, same for all.
At this point I have two guesses: 1) Not enough power, I’ve heard the 5V there is from the Arduino, and has a low current limit, or 2) in that thread above, the guy mentions some other pins, something with pins in the pins_RAMBO.h file.
For 1), I guess it’s possible, but these are really dinky servos, and under no load right now (just trying to move them).
For 2), I don’t know what he means. And why would I have to do that when there are already a row of pins for servos on the board??
Any advice is appreciated, thanks!