- Posts: 245
- Thank you received: 37
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I was thinking a simple noisemaker that passersby could recognize to go turn the machine off.Are you looking for just a simple buzzer or for it to make different sounds to mean different things when the program ends?
Also what kind of board are you using ? Parallel port , mesa, ect? You may also want to try an M64 P code to turn the
alarm on and an M65 P code to turn it off.
Please Log in or Create an account to join the conversation.
Oh, boy, this is exactly the possibility I hoped for.The M100+ codes can be any executable file, so maybe
M101
Code:#! /usr/env python import os file = "file.mp3" os.system("mpg123 " + file) Maybe? mpg123 is not part of a standard LinuxCNC install, you would need to install it, or some other sound-making app.
Sound-making apps I got. PC speaker possibly not (Dell OptiPlex 780)...
Code:There is also the possibility of triggering the pc speaker direct from HAL. There is a component "hal_speaker" https://github.com/LinuxCNC/linuxcnc/blob/2.8/src/hal/drivers/hal_speaker.c Though it seems to have no documentation so is hard to know about. So feeding a siggen into that is a way to make an (unpleasant) noise.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.