FluidNC icon indicating copy to clipboard operation
FluidNC copied to clipboard

Feature: Solenoid as a spindle

Open brakthehun opened this issue 2 years ago • 4 comments

Machine Context

I would like to have a row of pens that are controlled each by solenoids and using tool select (M6) to select different colors.

It would also be cool to use a solenoid as an engraving oscillator.

Feature Description

solenoid: output_pin: gpio.26 pwm_hz: 5000 enable_pin: NO_PIN disable_with_s0: false s0_with_disable: true tool_num: 0 off_percent: 0.000 pull_percent: 100.000 hold_percent: 20.000 pull_ms: 75 direction_invert: false

Other Approaches

I currently use an auxilary Arduino UNO that reads the M7 and M8 to select between 4 different pens. It reads the m3 output to drop and pickup pens

How I Can Help

I can Amazon a 4ch Mosfet and 4 12v solenoids to you guys.

brakthehun avatar Sep 15 '22 04:09 brakthehun

Can you useoutputs? user ouputs?

http://wiki.fluidnc.com/en/config/user_outputs

You could implement the pull and hold with gcode delays G4...

bdring avatar Sep 16 '22 10:09 bdring

Not quite. It's that percentage hold that I like after the initial stroke. (hold_percent).

brakthehun avatar Sep 20 '22 21:09 brakthehun

This gcode has a pull and hold

M67 E0 Q100.00 ; pull level 100%
G4 P0.1 ; wait 0.1 sec
M67 E0 Q50.00 ; hold level 50%

bdring avatar Sep 20 '22 21:09 bdring

It does,, But I don't know if I can make any of my Gcode creators can output that. I would also like to be drawing within 10ms so I don't make spots / puddles on what ever I'm drawing on.

brakthehun avatar Sep 20 '22 21:09 brakthehun