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
-
@superpotato When i'm at home, i can share my code for controlling the servo...
-
Perfect, thanks for the help
-
@cosmowave can you share brush pictures too?
thanks! -
@c310 Yes of course.
Today evening.... -
@c310 Here are some pictures of my brush for nozzle cleaning.
The brush is made from the head of this "brush".
The system works pretty well. But it's not really necessary!
I have made this just for fun, and i had a servo laying around...
Here is a video.
https://www.youtube.com/watch?v=9iB9oI-SMB0The config.g part for the servo is:
; Cleaning Brush M950 S1 C"exp.heater3" ; assign GPIO port 1 to heater3 on expansion connector, servo mode M280 P1 S1 ; set (1deg) servo position on GPIO port 1
For deploying the brush:
; this macro deploys the brush for cleaning the nozzle(s) ; if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed ; are axles homed ? M291 P"axles not homed! perform homing ?" R"DeployBrush" S3 ; message when not homed G28 ; homing if move.axes[2].machinePosition < 26 ; z < 26mm ? because brush can crash with bed! M291 P"bed to high for brush! move 60mm down?" R"DeployBrush" ; message G0 Z26 ; move z to 26mm M280 P1 S90 ; set servo position to 90° M291 P"brush ready" R"DeployBrush" S1 ; message
For retracting the brush:
; this macro retract the cleaner brush ; M280 P1 S0 ; set servo position to 0° M291 P"brush retracted" R"RetractBrush" S1 ; message
-
@cosmowave Using an external power supply is a very good advice!
I think I burned a PanelDue because of a servo directly powered by the Duet 2.
-
Ah great, thanks for posting this :). I didn't get the time yesterday but will try it out over the weekened.
-
@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
-
@cosmowave said in Hobby Servo Wiring:
I have my servo wired like this:
Duet_Mankati_Schema.pdfHello, thank you for sharing your schema, which helps me also. But I have a question, which is probably because of my limited electronic knowledge: isn't it necessary to connect ground of the 5V servo PSU with the Duet PSU, so the Duet knows the signal level?
-
@joergs5 Yes, you're right. The GND has to be connected, This is not shown on my scheme, because this scheme was only a quick "remender" for my old brain!
-
@cosmowave ok, thanks for clearifying. I'm doing my best to get better with electronics, but sometimes I have my problems (eg to connect ground high with low voltage - this feels very wrong and dangerous...). I plan to use servos as brakes for hinges, the servo acting as compliant switch.
-
-
-
-
-