Perfect, thanks for the help
Best posts made by superpotato
Latest posts made by superpotato
-
RE: Hobby Servo Wiring
@fred-y Thanks for letting me know, might be best if I source the power supply just to be safe, really don't want to destroy the board
-
RE: Hobby Servo Wiring
Ah great, thanks for posting this :). I didn't get the time yesterday but will try it out over the weekened.
-
RE: Hobby Servo Wiring
Thanks for the reply
At the moment with the setup I do not have any 5V supply. I was hoping to power it directly through the Duet as I had a look at this section: https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins and the 9G servos I am using seem to be okay for it.
Also had a look at your servo wiring, so it seems that the wiring to control the servo is okay and the same with mine but mainly its a matter of figuring out if the 5V supply will work and if the code is correct now.
Think I will just try it out tonight
-
Hobby Servo Wiring
Hi all,
I needed some help in confirming if my wiring is correct as I have never wired a hobby servo to duet before. So for my project I need to activate 2 servos and I was thinking of wiring them up like this?
I do not require any of the fans so I am looking into getting power from there by setting the fan jumper to 5V and controlling the servo similar to BLtouch using the heater4 and heater5.
Can someone confirm if this will work?.
And in the config.g file I will make the following changes to get them to work:
M950 P0 C"exp.heater3" Q500 ; allocate GPIO port 0 to heater3 on expansion connector, 500Hz M42 P0 S0.5 ; set 50% PWM on GPIO port 0 M950 P1 C"exp.heater4" Q500 ; allocate GPIO port 1 to heater4 on expansion connector, 500Hz M42 P1 S0.5 ; set 50% PWM on GPIO port 1
And from what I understand I can control the postion of the 2 servos with the following command in the Gcode:
M280 P0 S##
M280 P1 S##This is something new for me but have tried to research as much as I can. I would appreciate any help if someone can confirm my wiring and the changes I need to make to the software.
Thank You