>
> What do you think of this ?
>
>  
I think that you should stop changing everything to try to make up for 
hardware issues.

the output of offset needs to stay linked to MAX_OUTPUT as I had it. It 
needs to match the max output or it's defeating the purpose.

you were better off where you started here:


> PWM_PERIOD = 20000000
> isolator Zero to minimum
>
> at full reverse (-55 on "motion.spindle-speed-out-rps") the 
> "offset.pwmgen.out" pin is at 0, and your PWM is at ~0%,  or~1.1v    
> output -10.2v
> at 0 speed (0 on "motion.spindle-speed-out-rps") the "offset.pwmgen.out" 
> pin is at 55, and your PWM is at ~50% or~13.8v   output +0.65v
> at full forward(55 on "motion.spindle-speed-out-rps") the 
> "offset.pwmgen.out" pin is at 110, and your PWM is at ~100% or~23.9v  
>  output 9.7v
>

Because the KB drive works with 0-10v or 0-15v, it does not scale beyond 
this. @ 8v you can't get your motor at full speed. You can adjust the 
deadband pot of the KB drive so it does not care about the 0.65v plus you 
need to have that relay working to disable it when the spindle is supposed 
to be stopped. Again don't try to make up for hardware issues by messing up 
the config.

I suggest you put everything back to that and stop messing with it until 
you get your motor and encoder hooked up. If your not happy with it you 
should probably abandon the brushed DC motor thing, there's a reason nobody 
uses brushed DC motors in new designs anymore, they are antiquated and a 
pain in the ass.



On Wednesday, January 1, 2020 at 9:36:18 PM UTC-5, Aurelien wrote:
>
> with 
> PWM_PERIOD = 20000000
> PWM_OUTPUT_SCALE = 150
> OFFSET_OUTPUT = 66
> isolator Zero set as arbitrary position
> isolator Span set close to max
>
> at full reverse (-55 on "motion.spindle-speed-out-rps") the 
> "offset.pwmgen.out" pin is at 1, and your PWM is at ~0%,  or~3.77v    
> output -7.58v
> at 0 speed (0 on "motion.spindle-speed-out-rps") the "offset.pwmgen.out" 
> pin is at 66, and your PWM is at ~50% or~12.81v   output 0/-0.04v
> at full forward(55 on "motion.spindle-speed-out-rps") the 
> "offset.pwmgen.out" pin is at 121, and your PWM is at ~100% or~21.3  
>  output 7.33v
>
> What do you think of this ?
>
> asked test :
> #net DAC-ctrl-out => hpg.pwmgen.00.out.00.value
> setp hpg.pwmgen.00.out.00.value 0
>
> Do-0 = 1.27v
>
>
>
>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/7b6067c1-7e51-40dd-a607-ffabeab8a8ce%40googlegroups.com.

Reply via email to