hi every body
i use a 20M2 for control and drive a little cnc mill in a board of my own conception
the picaxe have
one task for survey 6 end of run switches (for 3 axis) plus a lot of general usage switches(total = 32), on other part, picaxe have to drive 32 leds for indications to operator , and a potentiometer to control motors 's speed
the second task , is very short and just generate a frequency output which follows the potentiometer's value
what i need is to get , like the pwm familly commands (which vary the duty,not frequency by (h)pwmduty),a program loop pulse generator wich works in background, as it will not be interrupted by tasks switching
i will take all ideas
here the program (sorry: french comments)
View attachment FRAISEUSE led , switches ,encodeur20M2 V02 ed09.bas
i use a 20M2 for control and drive a little cnc mill in a board of my own conception
the picaxe have
one task for survey 6 end of run switches (for 3 axis) plus a lot of general usage switches(total = 32), on other part, picaxe have to drive 32 leds for indications to operator , and a potentiometer to control motors 's speed
the second task , is very short and just generate a frequency output which follows the potentiometer's value
what i need is to get , like the pwm familly commands (which vary the duty,not frequency by (h)pwmduty),a program loop pulse generator wich works in background, as it will not be interrupted by tasks switching
i will take all ideas
here the program (sorry: french comments)
View attachment FRAISEUSE led , switches ,encodeur20M2 V02 ed09.bas