Mesa 7i76E laser diode control (TTL)

More
29 Mar 2021 10:30 #204009 by robertspark
as per the title, I am using a 7i76E in multiple configurations to control a plasma, mill and router. between 3 and 5 axis are in use (depending upon config)

I have a laser diode module I'd like to integrate.

it runs off a 12v supply and uses a pwm TTL (5v) supply to control the beam intensity.

I am ok at being able to signal convert from a 24v output to a 5v output but I was wondering how I would create the pwm signal.

I have read this post, but I was wondering if I needed a custom bit file or could any spare output be a pwm output?

forum.linuxcnc.org/plasma-laser/37068-la...pi-ppmm-pwm?start=10

do I need to do anything special to use it or would m67 by its self be sufficient?

do I need to do anything to specify the pwm carrier wave frequency?

thanks for your time

rob

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

More
29 Mar 2021 14:43 #204043 by PCW
You can use a spare step/dir output for a 5V PWM signal
by using the 7i76e_7i76x1pD.bit firmware. This has the advantage
of having a buffered 5V drive output.

You can also use 7i76e_7i76x1_5abobD.bit which has a
PWMgen on pin 1 of expansion connector P1. In this case I
would suggest using an external buffer/inverter (say a 74ACT04)
so you get a buffered 5V signal and protect the 7I76E from
damage from external EMI or misconnects. (also the inversion
is probably desired so the idle state is low at power on)
The following user(s) said Thank You: robertspark

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

More
29 Mar 2021 16:46 #204068 by robertspark

.

You can also use 7i76e_7i76x1_5abobD.bit which has a
PWMgen on pin 1 of expansion connector P1. In this case I
would suggest using an external buffer/inverter (say a 74ACT04)
so you get a buffered 5V signal and protect the 7I76E from
damage from external EMI or misconnects. (also the inversion
is probably desired so the idle state is low at power on)


thanks very much, going with this option with a buffer/ inverter.

much appreciated for the time and guidance

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

More
29 Mar 2021 18:55 #204094 by PCW
A couple additional hints:

If the Laser diode controller has a active high PWM,
invert the 7I76Es PWM output in hal since you want to
end up with no net inversion (but a 0 level at startup)

Also if you connect to P1 you can steal 5V for the buffer
if you jumper it to supply cable power
The following user(s) said Thank You: robertspark

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

More
14 Mar 2022 23:09 #237257 by Archidea
What changes in hal would be required to confirgure 5axis BOB as a buffered PWM signal on pin 1? I managed to flash 7i76e_7i76x1_5abobD.bit and --readhmid shows
IO Connections for P1:
Pin 1 ; I/O 17 ; PWM ;Chan 0 ; Pin Dir (Out)
I have changed num_pwmgens=1

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

More
14 Mar 2022 23:51 #237265 by PCW
You would need to set the PWM frequency and scaling in hal
and connect the PWM value and enable to whatever LinuxCNC
pins you are using to set these, something like:

# 100% full scale
setp hm2_7i76e.0.pwmgen.00.scale100
# 20 KHz?
setp hm2_7i76e.0.pwmgen.pwm_frequency 20000

net laser_pwm_on => hm2_7i76e..0.pwmgen.00.enable
net laser_pwm_value => hm2_7i76e..0.pwmgen.00.value

The two laser_xxx signals must be connected to appropriate LinuxCNC
pins in the hal file

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

More
15 Mar 2022 07:31 - 15 Mar 2022 13:52 #237295 by Archidea
Thank you for information.

I don't quite understand how linuxcnc will know to output the signal on pin 1 of header P1.

I understand that the below is the pin to be used (1st PIN on P1).
hm2_7i76e.0.gpio.017

net laser_pwm_value => hm2_7i76e..0.pwmgen.00.value => hm2_7i76e.0.gpio.017.out
net [activate_command] => laser_pwm_on

 
Last edit: 15 Mar 2022 13:52 by Archidea.

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

More
16 Mar 2022 22:32 #237507 by Archidea
Is there a way to invert PWM without an external inverter (74ACT04)?
I use 7i76e + 5 axis bob as buffer and the signal is high at power on.
I can invert it with setp hm2_7i76e.0.gpio.009.invert_output true but only after linuxcnc has started.

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

More
16 Mar 2022 23:12 - 16 Mar 2022 23:12 #237510 by PCW
No, but if you use a stepgen output instead for PWM , you have an inverted signal available.
You could also cheat and put a stiff pulldown resistor on P1 (say 470 Ohm)
Last edit: 16 Mar 2022 23:12 by PCW.

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

Time to create page: 0.090 seconds
Powered by Kunena Forum