Mesa 7i76E laser diode control (TTL)
- robertspark
- Offline
- Platinum Member
Less
More
- Posts: 915
- Thank you received: 216
29 Mar 2021 10:30 #204009
by robertspark
Mesa 7i76E laser diode control (TTL) was created 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
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.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17967
- Thank you received: 4826
29 Mar 2021 14:43 #204043
by PCW
Replied by PCW on topic Mesa 7i76E laser diode control (TTL)
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)
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.
- robertspark
- Offline
- Platinum Member
Less
More
- Posts: 915
- Thank you received: 216
29 Mar 2021 16:46 #204068
by robertspark
thanks very much, going with this option with a buffer/ inverter.
much appreciated for the time and guidance
Replied by robertspark on topic Mesa 7i76E laser diode control (TTL)
.
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.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17967
- Thank you received: 4826
29 Mar 2021 18:55 #204094
by PCW
Replied by PCW on topic Mesa 7i76E laser diode control (TTL)
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
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.
- Archidea
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
14 Mar 2022 23:09 #237257
by Archidea
Replied by Archidea on topic Mesa 7i76E laser diode control (TTL)
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
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.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17967
- Thank you received: 4826
14 Mar 2022 23:51 #237265
by PCW
Replied by PCW on topic Mesa 7i76E laser diode control (TTL)
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
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.
- Archidea
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
15 Mar 2022 07:31 - 15 Mar 2022 13:52 #237295
by Archidea
Replied by Archidea on topic Mesa 7i76E laser diode control (TTL)
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
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.
- Archidea
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
16 Mar 2022 22:32 #237507
by Archidea
Replied by Archidea on topic Mesa 7i76E laser diode control (TTL)
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.
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.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17967
- Thank you received: 4826
16 Mar 2022 23:12 - 16 Mar 2022 23:12 #237510
by PCW
Replied by PCW on topic Mesa 7i76E laser diode control (TTL)
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)
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.069 seconds