Driving a charge pump with a Mesa 5i25 stepgen

More
4 years 8 months ago #234261 by dbotos
I'll try that this evening and report back.

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #234296 by dbotos
With the stepgen.04.velocity-cmd line in the HAL file set to 0.25, I'm not getting anything between pin 16 (charge pump) and pin 18 (GND) at my breakout board.

I looked at the x-enable signal in HAL scope and that was flat-lined.

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #234297 by PCW
flat lined high or low?

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #234299 by PCW
Ack! I didn't look carefully at the hal file you posted

It has nothing setting x-enable at all (nor are any of the other stepgen axis enabled)

I would start with a pncconf created hal/ini file set,
there seems to be a lot missing from yours

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago - 4 years 8 months ago #234304 by dbotos
The HAL file was based on one generated by pncconf (see attached for pnconf one).  I deleted out all the PID-related stuff because my system has no position feedback and the home / limit switch stuff because it doesn't have those either.  I also got rid of the "closed loop stepper signals" section for each joint, which looks like it was probably a mistake to do looking back at it now (I just saw closed loop and thought it didn't apply to my system).  Those sections look like:

# ---closedloop stepper signals---

net x-pos-cmd    <= joint.0.motor-pos-cmd
net x-vel-cmd    <= joint.0.vel-cmd
net x-output     <= [HMOT](CARD0).stepgen.00.velocity-cmd
net x-pos-fb     <= [HMOT](CARD0).stepgen.00.position-fb
net x-pos-fb     => joint.0.motor-pos-fb
net x-enable     <= joint.0.amp-enable-out
net x-enable     => [HMOT](CARD0).stepgen.00.enable

Also got rid of HALUI, coolant, probe, and toolchange sections toward the end.

But, the charge pump section still has the line

net x-enable => [HMOT](CARD0).stepgen.04.enable

So I'm not sure why that's not outputting.
Last edit: 4 years 8 months ago by dbotos.

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #234307 by PCW
Are you saying the that complete pncconf created file does not drive the chargepump? It should (though at 2500 Hz)

Your original hal file will not because x-enable is unconnected (not driven by any pin so always has the value of 0)

I would start with a pncconf created file and only change the chargepump frequency (it looks like pncconf calculates it wrong)

Please Log in or Create an account to join the conversation.

Moderators: PCW, jmelson
Time to create page: 0.387 seconds
Powered by Kunena Forum