THC with a pc keyboard

More
25 Oct 2021 20:58 #224297 by wasausky
Hi everyone. I am adapting plasmaC for oxyfuel.

We know that it has no height control parameters so the thc will be operated manually by the user.

Is there a way with the keyboard to activate the pins of raising and lowering that plasmaC has or do you have to do a routine in python similar to Test?

Thank you for your answers

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

More
25 Oct 2021 21:31 #224300 by phillc54
Replied by phillc54 on topic THC with a pc keyboard
A this stage there is not. It would be possible to run in mode 2 and use external buttons connected to the plasmac.move-up and plasmac.move down hal pins. 
We could maybe add an oxyfuel setting in the ini file which could enable some features required for oxyfuel. I don't know much (anything  ) about oxyfuel.

 

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

More
25 Oct 2021 22:10 - 25 Oct 2021 22:21 #224305 by wasausky
Replied by wasausky on topic THC with a pc keyboard
making a python program like this:

from pynput import keyboard as kb

def pulsa(tecla):
  print('Se ha pulsado la tecla ' + str(tecla))

def suelta(tecla):
  print('Se ha soltado la tecla ' + str(tecla))
  if tecla == kb.KeyCode.from_char('q'):
    return False

escuchador = kb.Listener(pulsa, suelta)
escuchador.start()

while escuchador.is_alive():
  pass

and call file in hal with loadusr I get what I wanted, only to each routine per key I would add activate the input hal of raising or lowering the torch.

now my question is if this program would consume many resources of the pc waiting for an event since it is simple.
Last edit: 25 Oct 2021 22:21 by wasausky.

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

More
26 Oct 2021 01:10 #224315 by phillc54
Replied by phillc54 on topic THC with a pc keyboard
I have not used the keyboard module so I am not sure of the resources usued, you may be able to check it using htop.
 

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

More
26 Oct 2021 09:26 #224362 by rodw
Replied by rodw on topic THC with a pc keyboard
You can get capacitive THC sensors for oxy that have a ring around the torch near the material.
If you had one of those, plasmac might be more viable. Maybe using another spindle...

But I know less than Phill (less than nothing)

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

Moderators: phillc54
Time to create page: 0.076 seconds
Powered by Kunena Forum