4 ms·
I wonder how much error is introduced by the use of the headphone jack to drive the printer - you've gotta deal with line noise from the computer's sound card,
by kevingadd 13y ago
I wonder how much error is introduced by the use of the headphone jack to drive the printer - you've gotta deal with line noise from the computer's sound card, mixing latency/glitches from the OS, and the device sampling rate, along with any noise introduced on the audio cable.
Does a 3D printer like this not actually require high-precision data to work correctly?
- SwellJoe 13y agoAudio output of modern computers is high precision. 16 bit resolution is pretty damned precise...even once converted to analog. I'm certain the mechanical parts being driven by it is a much, much, larger source of errors than any decent computer output would be. That said, there is measurable and audible differences between a stock audio output and a high end (or even prosumer) audio output. A nice 24 bit audio box could, possibly, be a useful upgrade in the future...when the mechanics finally catch up. But, I suspect it'll be years before the mechanical side of this design is precise enough to even show the errors in a 16 bit output. If ever...
- kevingadd 13y agoI'm not referring to 16 bit precision per sample, more to 44khz and the potential for multi-millisecond audio glitches on most modern PC configurations. Glitch-free audio is pretty tough, still.
- jlgreco 13y agoPerhaps, with slightly more hardware, you could rig it up to kill the power to the laser if the sound level dropped to zero (which is typically how computer audio hiccups manifest). Printing would stop for a moment, but you wouldn't have the laser curing anything it shouldn't.
- oakwhiz 13y agoThis doesn't really work, though, because to the 3D printer, 0 volts is a valid signal in the domain of the input. Never use a value in the domain of your input as a null value. Additionally, it is difficult to define what the sound level of a continuous signal really is, since it is usually computed using an averaging, integrating, or low-pass filter (not sure which.) Just like an old-fashioned VU meter, it takes a moment for the needle to fall down to 0. By the time this happens, the glitch is over. Also, consider that not all audio glitches are of the type that cause zeroes to be emitted. Some audio glitches are known as buffer underruns, where the ring buffer holding audio is not filled up in time, and eventually runs out, causing the same few milliseconds of audio to play over and over again until more audio makes it into the buffer.
- jlgreco 13y agoI'm thinking you would throw in a cheap microcontroller and basically use it as a modem to control the printer. If the carrier signal is lost, then it stops printing. This would retain most of the benefits of using the audio jack, including being able to re-compute prints and play them back with something like an mp3 player instead of a proper computer.
- oakwhiz 13y agoThis does make it a bit more complex though, because the microcontroller, though simple, still needs a board and some kind of power supply, and a reasonably accurate DAC for controlling the galvanometers. The microcontroller would have to spend the time in between DAC timer interrupts to perform the "modem" function. Not too bad since for this project the DAC only needs a frequency of 8kHz or less, but still mildly challenging. You could just use an RS-232 or USB interface instead of trying to create a modem since that would be easier and perhaps more reliable.
- ajuc 13y agoI wonder what mp3 compression would do to your objects :)
- geon 13y ago> the 3D printer, 0 volts is a valid signal in the domain of the input. Only if you consider a centered rod of minimum thickness "valid".
- anigbrowl 13y agoThat's not true at all and hasn't been for a long time. Maybe if you're mixing more than 8 tracks on a low-power CPU, but even a chromebook can do that sort of thing. Even my phone (several years old) can do that. Playing back stereo audio (which all that's required here) is something that can be done from a device that fits on your keyring. What you're arguing hasn't been true since the 90s. Certainly, it would be bad if this thing relied on every last available bit of audio bandwidth all the way up to 22.05 Khz, but there's no particular reason to do that.
- kevingadd 13y agoI'm not talking about 'can you play back audio', I'm talking about 'can you play back audio with zero glitches'. This becomes a problem of scheduling precision, whether or not scheduling will 'stall' if a driver hangs while processing an IRQ, whether or not the graphics driver has a potential to hang due to a rendering operation, etc, etc. These are all a reality on modern desktops even if they're fairly rare (I don't think I see audio glitches on my desktop more than maybe once a month). The people I talk to who do professional audio recording and mixing insist that it is still a difficult problem; it was back when I did mixing (early to mid 2000s, not 'the 90s'). The prevalence of custom APIs for glitch-free low-latency audio playback like JACK and ASIO suggests to me that you still can't rely on just feeding samples to the OS and having them come out of the sound card at the appropriate rate 100% of the time. FWIW, Windows introduced an entirely new audio stack in Vista that was tuned specifically to address these problems. Their first iteration managed to cripple ethernet bandwidth because of the scheduling requirements imposed for glitch-free audio.
- DerpDerpDerp 13y agoPeople making hardware focused on audio typically use real-time operating system versions, because of the schedule requirements imposed by the audio sampling.
- SwellJoe 13y agoI'm an audio nerd; I went to school for it, and I'm back to working professionally in the field (after a 15 year hiatus where I did it as a hobby). Serious audio problems do still exist on Linux systems, and it is a source of huge annoyance for me that my system still causes my (very expensive) studio monitors to pop when switching between some sound sources in some situations. But, these are mostly to do with the sound server and switching sources rather than with glitches in actual audio. I still can't use Linux as my primary OS for audiovisual work because there are still issues with getting many channels of low latency, high resolution, audio playing and recording reliably. But, the issues you describe as they apply to this task are mostly a long solved problem, at least for very simple tasks, like reliably playing 16 bit, 44.1 kHz, stereo audio. Honestly, there's never been a time that I can remember when I couldn't reliably play a stereo 16 bit, 44.1k, file back on a Linux system...going back to 1995, or so, when I first started using Linux. The problems come when you demand a little more of the system. Once again, errors of the level that exist today (which are completely inaudible to even trained ears in most cases), in terms of latency, jitter, dropouts, etc. are so tiny and insignificant that they would be impossible for the current hardware to replicate. The hardware is so much slower than the input signal that noise from the audio signal will be lost in the much larger noise of the hardware. You can see the hardware noise in the printed objects. It's vastly larger than anything the computer output is going to screw up, and it'll be many generations before that stops being true (and, by then, maybe Linux will finally have its act together on audio). Windows, BTW, finally does have its act together on audio, and has for five+ years. I can reliably play a couple dozen 96k 24 bit tracks while recording more on slightly high end laptop. Obviously Mac is also solid on this front.
- maxerickson 13y agoLooking at the videos, a few milliseconds would correspond to ~1 drip, maybe 2. It isn't going to introduce a real significant flaw in anything.
- MBCook 13y agoThat could be enough to cause X-Y positional problems though.
- maxerickson 13y agoIt depends on how fast the resin cures. I have the idea that it sends (and repeats) the same layer for a bit longer than milliseconds, so I don't see it mattering.
- marshray 13y agoIt may not require low-latency dynamic audio at all. It could be that you could transfer many ms of signal to the hardware in advance to ease your timing requirements.
- anigbrowl 13y agoLine noise is a bit of an issue, but that's usually quite high frequency which means it can either be filtered or that the errors will be correspondingly small. Latency and glitches are not likely to be an issue at all, even the crappiest computer nowadays can handle multitrack audio and delays of a few milliseconds that would interfere with music performance are not going to have any impact here. Likewise sampling rate shouldn't be a problem, anything above 8Khz or so should be adequate for purpose here and most cheap uCs could handle that. Cable noise is generally negligible over short runs. A bigger problem would be ground hum from poorly isolated transformers/power supplies, but that is on a fixed frequency and can be eliminated with a HPF. Certainly the output is a little crude but it will be 'good enough' for many purposes. Note also that the audio input allows playback from an mp3 player or other sources, suggesting the audio can be wholly precomputed. Imagine how useful that could be in places like Africa so that you could print thing without necessarily needing a high-power device like a laptop.
- kevingadd 13y agoThanks for the points on how trivial it would be to handle line noise and playback glitches. Makes sense to me; I just don't know my hardware and analog circuits well enough to know how cheap it is to filter that stuff out.
- anigbrowl 13y agoNo problem. Sorry if my other comment wasn't informative.
- tripzilch 13y ago> Note also that the audio input allows playback from an mp3 player or other sources, suggesting the audio can be wholly precomputed. Imagine how useful that could be in places like Africa so that you could print thing without necessarily needing a high-power device like a laptop. This is an awesome idea. You could broadcast objects over FM radio! Just like they used to do for software when early home computers used cassette tapes for storage.
- oakwhiz 13y agoThe resin takes a certain amount of light exposure to fully cure. I doubt that noise or buffer glitches would seriously cause a noticeable effect on the print. More likely, soundcards with improper equalization, and galvanometer impedance and group delay would be the cause of shape distortion.
- ajasmin 13y agoI've seen sound cards with all kind of glitches such as outputting one of the channels with an inverted phase. I'd be also concerned with whatever audio filters the card may have. Sound cards are just not meant to control precision equipment like that. Including a low cost USB adapter (even an audio one) that is tested and calibrated to work with the printer could prevent a lot of headaches in setting this up.
- stephengillie 13y agoI was wondering why they didn't use USB or something similar. How will they interface with, e.g. laptops or phones that don't have a microphone jack? If they're committed to using audio to drive the device, what about a usb audio device, similar to a usb headset with microphone? On the other side of the concept of using audio as their output system, what would a cube sound like if played through speakers instead of through their printer? And how would a Mozart symphony look when printed?
- gooderlooking 13y agoThe kickstarter video mentions using audio io to reduce cost. Using USB would require a microcontroller and the usb interface. The microphone jack is used for scanning, so as long as your device has 16 bit audio out, I'm assuming you could print just fine. And yes, I am going to get one just so I can see how Pink Floyd compares to Daft Punk when printed.
- Myrth 13y agoI would imagine any music would print as a random porous rectangular blob
- sliverstorm 13y agoThat's all a telephone line modem ever was, a specialized soundcard...