Analogue input
I have the need to monitor analogue signals coming from gas flow meters in CNCLinux and have searched on how to do this but in vain. Is there a HAL component that can do this? I was hoping to use the microphone input as an ADC and the headphone outputs as DAC because I only need two signals.
Has anyone done this? My parallel port is completely full and I have a mini-ITX system so not a lot of expansion space.
Thanks
davidmp
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I was hoping to use the microphone input as an ADC and the headphone outputs as DAC
I had a quick look at this a while ago, but couldn't figure out how to do it in a generic way.
There is a driver for the motherboard speaker (hal_speaker) but that is not what you need.
There might be some clues here:
wiki.osdev.org/Sound
Please Log in or Create an account to join the conversation.
I have the need to monitor analogue signals coming from gas flow meters in CNCLinux and have searched on how to do this but in vain.
I think you can do this with a USB device and hal_input, if you don't need realtime.
One possible option for the USB hardware is a pokeys: www.poscope.com/pokeys56u
I can think of a way to do it with only the parport (and PWM to voltage conversion) but 2 channels of inputs + 2 outputs would be a minimum of 5 parport pins.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
There might be some clues here:
wiki.osdev.org/Sound
This looks more relevant:
tldp.org/LDP/lpg/node84.html
And seems to indicate that ioctl() is the way to get low-level access
Please Log in or Create an account to join the conversation.
I think sound cards are AC coupled, so won't work for slowly-changing inputs.andypugh wrote:
There might be some clues here:
wiki.osdev.org/Sound
This looks more relevant:
tldp.org/LDP/lpg/node84.html
And seems to indicate that ioctl() is the way to get low-level access
ioctl() only permits a privileged program to gain access to I/O registers.
The wav interface to the sound card moves blocks of raw samples in and
out, not a single sample a a time.
Jon
Please Log in or Create an account to join the conversation.
- skunkworks
- Offline
- Moderator
- Posts: 361
- Thank you received: 150
I followed these examples..
emergent.unpythonic.net/01198594294
works very well so far
electronicsam.com/images/KandT/testing/S...on%20HM2-Servo-1.png
sam
Please Log in or Create an account to join the conversation.
It seems 0 -.05 volts would be safe but others have used up to aprox 5 volts (but an AC current not DC)
They recommend a voltage divider to keep voltage to a reasonable number.
If you had an old sound card hanging around might be interesting project ....
www.micahcarrick.com/pc-sound-card-oscilloscope-linux.html
www.yann.com/en/diy-turn-your-gnulinux-c...cope-29/09/2010.html
Please Log in or Create an account to join the conversation.
Does anybody have any ideas for a small DAQ that can be read through the RS232 or Ethernet ports and display values on AXIS?
Thanks
Please Log in or Create an account to join the conversation.