- Posts: 17524
- Thank you received: 0
Can this be done with a 7i96?
If this is sufficient, the 7I96 should be able to do what you need.
Please Log in to join the conversation.
Did you try the bitfile that I suggested?
It should be trivial, PWM is something that they excel at.
You could consider using a Mesa card for step generation and a parallel card for PWM, but that _really_ should not be necessary.
Please Log in to join the conversation.
i am getting pwm just fine from the mesa card.
andypugh wrote: Did you try the bitfile that I suggested?
i am using jt's setup app for the firmware and have it set as 4 step and 1 pwm. i have movement fine (xyy) and pwm works fine, although i do not know if it is actually controlling the lasers power because i can not get it to fire properly. when i run a job, it is either on or off, no in between.
what i was using was the configuration found here:
github.com/bjj/2x_laser i know it is older, but i have had alot of success with this for some years now. but now that i am using (or trying at any rate) to switch to a 7i96, i cant get my original configuration to work with my new card.
i use cambam as my cam and have a post that uses m3/4 to turn the laser on and off. m3 is ppi where S is the pulses per in and m4 is duty cycle where s is the power.
where i am stuck is with the config where the original had:
any ideas how i can consolidate these two configs?
Please Log in to join the conversation.
These are more complicated
laserfreq seems to be a version of pwmgen that varies the intensity depending on axis velocity.
This should be doable in other ways.
laserraster does not appear to be from the repository that you linked to.
You _can_ run a base thread with a Mesa card. And, you can even run a base thread and a parallel port alongside a Mesa card.
But, more typically, you would use the special fast-io read and write of the Mesa card:
Where did you get laserraster from?
Please Log in to join the conversation.
Please Log in to join the conversation.
right now i have those commented out just so it will load without errors. i was unsure if the pwmgen was necessary for the laserfreq and laserraster.andypugh wrote: Just delete these
andypugh wrote: Where did you get laserraster from?
laserraster comes from a fork of the original repo and its brilliant! you input a a b/w image with a few params and it spits out gcode for laser rastering. it is such a shame that there is such little documentation and it seems to be an abandoned project...
github.com/jv4779/2x_laser
and just to make sure that i have this right, so i would use the read_gpio from the mesa for the base-thread as a substitute for parport?
and will the mesa card still be able to handle the output?PCW wrote: I dont think you can really use a base thread with Ethernet cards, the per packet overhead is too high.
Please Log in to join the conversation.
The servo-thread part of laserraster should still work, but I would suggest removing the pulse generation code and adding a PWM duty cycle output pin in it's place to connect to the Mesa pwmgen.
Please Log in to join the conversation.
Please Log in to join the conversation.
i considered that, but i have 5 outputs, and i am using 4 for stepgen and 1 pwm and i need all 5. the laser is set up as a gantry so its xyy(magic)z for steps and a pwm for laser power.andypugh wrote: The servo-thread part of laserraster should still work, but I would suggest removing the pulse generation code and adding a PWM duty cycle output pin in it's place to connect to the Mesa pwmgen.
i agree. so since i was in it for a new tube, I bit the bullet and now have a DSP on the way. as much as i am not a fan of that approach, it seem that i have no choice. i would have gone back to parport, but i went through so much grief and money trying to find a pcie parport that works with linux and because of the limitations of step generation, i wasnt even nearly approaching the machine's potentialandypugh wrote: I think it seems like using base thread and mesa GPIO is a non-starter.
so now that means that i am sitting on a spare mesa card and we can't have that, now can we?
Please Log in to join the conversation.
mcurtis wrote: Not sure if you noticed, or if it will help, but there's a 5i25 branch to the repos your using.
that would possibly work, but a 5i25 is a pci card and the 7i96 is an ethernet card, and that seems to be the bottleneck here
Please Log in to join the conversation.
