Hello,

i need help adding PWM spindle control (for a DC motor) to my CRAMPS board. 
Currently i have 5 axis (X, Y, Z, Extruder 0(A), Extruder 1(C)) and have 
Fans on "LED/FAN outputs". I tried customizing the HAL file but everytime 
it creates an error "pin XXXXX does not exist". I dont know which pin i can 
use for PWM. The PWM DC Motor controller i may want to use works with 15KHZ 
and goes from 0-100%, is that frequency possible? Also do i need a Spindle 
enable signal? Also i want to be able to manually run the spindle at random 
speed and have a slider to adjust spindle speed (if possible)

this spindle configuration is from this google group but for a welder:

#using M3/M5 for welder on/off
net spindle-enable motion.spindle-on => bb_gpio.p9.out-15

#pwm for torch intensity scaled 0-100%
setp hpg.pwmgen.00.out.02.pin       927
setp hpg.pwmgen.00.out.02.enable    1
setp hpg.pwmgen.00.out.02.value     0.0
net spindle-speed-cmd motion.spindle-speed-out => hpg.pwmgen.00.out.02.value
setp hpg.pwmgen.00.out.02.scale 100


and this one is from the Pocket NC:

loadrt scale names=spindleScale

addf spindleScale servo-thread

### Spindle ###
net spindleEnable <= motion.spindle-on
net spindleEnable => bb_gpio.p9.out-24
net spindleDirection <= motion.spindle-forward
net spindleDirection => bb_gpio.p9.out-11

thanks, (honestly i dont really know what i have to do, its just too 
complicated for me)

stevie

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Attachment: CRAMPS.hal
Description: Binary data

Reply via email to