Digital signal interface to computer

In summary: I would recommend looking into a USB-DAQ board. They are fairly cheap and easy to use with a ton of examples and support.
  • #1
mike1127
12
0
I'm setting out on a project, and I need some basic direction. I am a programmer by trade; my father is a mechanical engineer who is pretty good at electrical circuit design as well---together we want to control a pipe organ by computer.

The organ is already operated by electrical solenoids, and my father has created circuits to drive the solenoids. This is essentially a large shift-register. To set the state of the pipes, one must clock a serial data line with the correct data, then latch the registers.

The other half of the interface is reading the state of the keyboard. This is also a shift register, providing a serial input to the computer.

I am hoping there is some kind of signal processing board that we can drop into a Windows computer and use to read/write these shift-registers. Hopefully a simple software driver is provided.

There is one bonus to this project: if we can get this far, we can also get the computer to read and write midi files, making the world's vast collection of midi music available to be played on our pipe organ, and also making the computer into a "recorder" of someone playing live.

I am aware that we could implement this with dedicated controller chips, or use gate-array logic, or something like that---but neither of us has any expertise in this area.

A significant question is data throughput---we must be able to read and write signals sufficiently fast. But we have a lot of room to play with, especially to get started, so mainly I want to understand if there is any existing system that fits our needs. Later we can talk about speed.

A related issue to throughput is buffering. If we run this under Windows, and not as a dedicated controller, we have to handle OS interruptions etc.
 
Engineering news on Phys.org
  • #2
Buy a USB-DAQ from e.g. www.ni.com (but there are much cheaper alternatives if you google a bit), they all have digital IO lines (usually at least 8 of them) that should be able to do the job as long as you only need TTL-level logic.
 
  • #3
I would just use a regular micro with a FTDI chip to connect to the PC via USB. If neither of you have a big background in micros then I recommend you check out the Arduino open source platform. www.arduino.cc

Fairly cheap and easy to use with a ton of examples and support.
 
  • #4
Thanks for the suggestions! I will look into them.
 
  • #5
Check out http://www.sparkfun.com
They have many development boards and kits that use various micro-controllers. You'll want something that has a buncha digital I/O lines connected to a USB port so you can talk between your grown-up computer and the solenoids and switches on your instrument.
 
  • #6
Hmmm, sounds pretty good. You've definitely identified some issues with the OS as well as the support issues. With that I'd be tempted to simply say use a digital I/O card from a company like national instruments or esis.
The problem would then pop up downstream as the project sired out due to timing issues, keyboard support, etc.
Instead, I suggest you look into a midi interface. That will allow you to plug in standard keyboards, use existing music libraries, and interface with the PC using off the shelf support.
The scary part is that you have to support the midi interface back at the organ. You're not the first to do this, so there are examples. I went out for about 2 minutes and found this reference:
http://www.tosa-qld.org/VTPO/docs/Midification_of_an_Organ.pdf

Best of Luck,

Mike
 
  • #7
There are timing issues in trying to control the organ from the PC directly, like OS interruptions. However, there is a little fact about the psychology of playback which makes it possible to have a latency in response.

Software samplers (music sampling synthesizers than run on a computer, not dedicated hardware) are prevalent these days, and they operate by sending the output signal to a standard soundcard. The input comes from a midi keyboard. The output signal must be buffered, and so there is a latency.

If you actually sit down at the keyboard and play one of these things, you discover that the latency is not bothersome. The important thing is that the output sounds must mirror your durations, intervals, and rhythms exactly, only that they are slightly delayed. I think latencies as much as 50 ms are not bothersome.

So if we can get a type of digital i/o card that samples its inputs and buffers them, and buffers the outputs, we might be able to make it work.
 

Related to Digital signal interface to computer

What is a digital signal interface to computer?

A digital signal interface to computer is a method of transferring digital signals between electronic devices. It allows for the conversion of analog signals, such as sound or video, into digital data that can be processed and interpreted by a computer.

What types of digital signal interfaces are commonly used?

Some common types of digital signal interfaces used to connect devices to a computer include USB, HDMI, and Ethernet. Each interface is designed for specific purposes and has different capabilities and speeds.

How does a digital signal interface to computer work?

A digital signal interface to computer works by converting analog signals into digital data using a process called analog-to-digital conversion. This data is then transmitted through the interface to the computer, where it can be processed and interpreted.

What are the advantages of using a digital signal interface?

One of the main advantages of using a digital signal interface is the high quality of data transfer. Digital signals are less susceptible to interference and noise, which can result in clearer and more accurate data. Additionally, digital signal interfaces often have faster data transfer speeds compared to analog interfaces.

Are there any limitations to using a digital signal interface?

While there are many advantages to using a digital signal interface, there are also some limitations. One limitation is the distance over which the signal can be transmitted, as digital signals can weaken over long distances. Additionally, some devices may not be compatible with certain digital signal interfaces, limiting their use in certain situations.

Similar threads

  • Electrical Engineering
Replies
27
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
2K
Replies
14
Views
2K
  • Astronomy and Astrophysics
Replies
3
Views
1K
  • Programming and Computer Science
Replies
10
Views
3K
  • Sticky
  • Programming and Computer Science
Replies
13
Views
4K
Replies
2
Views
2K
  • Electrical Engineering
Replies
10
Views
2K
  • Electrical Engineering
Replies
2
Views
6K
Replies
2
Views
1K
Back
Top