TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

DIY control pedal on Linux

78 点作者 Rogach超过 9 年前

15 条评论

sebisebi超过 9 年前
IT is actually possible to build a very simple pedal yourself. You can tape two tinfoil "electrodes" on cardboard and fold it so that they touch when it's completely folded. Then also put some sponge between the folded cardboard so that it releases reliably. If you connect a mono audio cable to the electrodes you have a working pedal. This worked in a pinch for an electronic drum set and it is also much quieter than a real pedal.
tedwilliamsis超过 9 年前
I did something similar once, entirely in hardware, by soldering a normally-open foot pedal switch to the keyboard&#x27;s controller chip.<p>In most keyboards, a keypress is registered during the connection of two conductive pads on two separate membranes, each of which contain a trace back to a controller chip. You can take a keyboard apart, look at where the Ctrl key is, then visually follow the traces back to their respective pins on the chip. Soldering a switch to those two pins will register with the keyboard <i>exactly</i> as if that key were pressed.
gherkin0超过 9 年前
That&#x27;s a neat, different way to do it. Nowadays I think most people would go straight to building something with Arduino (e.g. <a href="http:&#x2F;&#x2F;apcmag.com&#x2F;arduino-project-usb-foot-operated-mouse-switch.htm&#x2F;" rel="nofollow">http:&#x2F;&#x2F;apcmag.com&#x2F;arduino-project-usb-foot-operated-mouse-sw...</a>), but that&#x27;s not always necessary.
评论 #10186175 未加载
donquichotte超过 9 年前
Cool, low budget hack requiring almost no additional hardware! The author states that &quot;the signal is too strong for our input and goes off-scale, making it almost impossible to reliably detect pedal press&#x2F;release events&quot;. Since the two waveforms are visually quite distinct, it is probably possible to correlate the incoming signal with reference on and off waveforms to detect a state change reliably without using hand-crafted heuristics.
评论 #10185853 未加载
ChuckMcM超过 9 年前
On the one hand I cringe at using the audio input for effectively a DC signal, but on the other hand it is probably sitting there unused on a lot of machines so it isn&#x27;t like you&#x27;re losing a capability. As with many folks I&#x27;d probably use a small uC and have it emulate a keyboard (maximal re-use of known interfaces) but hats off to the creative use of pulseaudio.
simgidacav超过 9 年前
The troll of the day:<p>&gt; How about using ViM?<p>Thanks for sharing, this post made my day.
评论 #10186752 未加载
grymoire1超过 9 年前
I needed a programmable USB foot pedal for my Linux system, as I wanted a hands free way to give a presentation, so I bought one from <a href="https:&#x2F;&#x2F;www.delcomproducts.com&#x2F;webpage.asp?id=32" rel="nofollow">https:&#x2F;&#x2F;www.delcomproducts.com&#x2F;webpage.asp?id=32</a> for $40.
dest超过 9 年前
this project is great! after a quick research, it seems that esd might be a bit outdated now [1] and that more recent sound API could be used. it seems however to do the job just fine.<p>[1] <a href="http:&#x2F;&#x2F;www.linuxquestions.org&#x2F;questions&#x2F;programming-9&#x2F;esound-client-programming-57017-print&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.linuxquestions.org&#x2F;questions&#x2F;programming-9&#x2F;esound...</a>
评论 #10184965 未加载
TheCams超过 9 年前
Is anyone using a pedal in addition of a keyboard on a daily basis? Do you really think this could be a significant help when typing code?
评论 #10185711 未加载
评论 #10187357 未加载
评论 #10187605 未加载
评论 #10185667 未加载
评论 #10185879 未加载
CephalopodMD超过 9 年前
Now this, my friends, this is a hack.
pavel_lishin超过 9 年前
Obligatory complaint about Blogspot breaking back-button functionality; cmd-[left arrow] does nothing, cmd-[right arrow] takes me to the next article.<p>Who thought this was a good idea?
评论 #10186660 未加载
almightysmudge超过 9 年前
Pedantic, but that&#x27;s not a TRS connection.
评论 #10186192 未加载
pkaye超过 9 年前
I see an iKKEGOL USB foot control switch on Amazon for $13.99. Can&#x27;t you hook that up to any software?
评论 #10185953 未加载
评论 #10185838 未加载
zwieback超过 9 年前
Would a voltage divider help the overvoltage problem?
评论 #10188329 未加载
platz超过 9 年前
I remap LALT to CTRL so i can hit it with my thumb