RE: [Machinekit] BBB and charge pump

2021-04-13 Thread John Dammeyer
That's what I'm trying to get going now. Actually first the PWM for spindle speed and then I'll create the second PWM for charge pump. Having a lot of trouble with the PWM for the spindle. I've added what I think are the correct motion.spindle- ... but all I can get on the AXIS screen are

RE: [Machinekit] BBB and charge pump

2021-04-13 Thread John Dammeyer
Making progress. Scope shows PWM and DIR on correct pin. Buttons work. + button however increases speed reported value above 3000 RPM when examined with HAL meter even though PWM reached 100% at 3000 RPM. (50 RPS) Still missing something. #(JCD) Add PWM Spindle control #

RE: [Machinekit] BBB and charge pump

2021-04-13 Thread John Dammeyer
Just an update. I have a 501.9 Hz square wave now coming out DB25-17. The simple answer was that I needed to change to addf charge_pump.0 servo-thread The .0 was the issue. The next issue, and I'm not sure how to get around this is the servo thread is too slow and doing something

Re: [Machinekit] BBB and charge pump

2021-04-13 Thread justin White
Just a shot here cuz I don't use a BB, or MK much, or charge pumps and I haven't written a hal file in a year lol.. Anyway if I know the purpose of a watchdog timer and the issue you have is trying to generate reliable pulses from a hal software component running on a servo thread? Why not

Re: [Machinekit] BBB and charge pump

2021-04-13 Thread Charles Steinkuehler
If you just need a charge pump signal, use the PWM function on the PRU (alternately, you could use a stepgen instance, but that's more code overhead). On 4/13/2021 11:56 AM, John Dammeyer wrote: Just an update. I have a 501.9 Hz square wave now coming out DB25-17. The simple answer was