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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Program Microcontrollers from Your Headphone jack

107 点作者 gfwilliams超过 10 年前

9 条评论

andrewrice超过 10 年前
This reminds me of the days of transferring data using the 2.5mm jack on the TI-83.
评论 #8627963 未加载
评论 #8627206 未加载
codehero超过 10 年前
There are two troubling lines in his code (from <a href="https://github.com/espruino/EspruinoOrion/blob/gh-pages/serial_to_audio.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;espruino&#x2F;EspruinoOrion&#x2F;blob&#x2F;gh-pages&#x2F;seri...</a>)<p><pre><code> var header = sampleRate; &#x2F;&#x2F; 1 sec to charge&#x2F;discharge the cap var bufferSize = samplesPerByte*data.length&#x2F;*samples*&#x2F; + header*2; </code></pre> This implies 2 seconds of overhead per message sent from smartphone to microcontroller, 1 for the light to turn and 1 second of clearing time before the next transmission. This explains why the lights toggle so slowly.<p>To top it off, he uses 2 stop bits. The signalling rate may be 9600 baud but do not expect to be transmitting 9600 DATA bits a second! I think such claims need to be backed up with a demonstration full loopback capability <i>without</i> either side dropping a byte, with no pauses between serial bits.
评论 #8628972 未加载
robomartin超过 10 年前
This is neat, of course. And it also goes back to old Commodore 64 (and before) days of using audio for data in&#x2F;out, including mass storage on audio tape.<p>I&#x27;ve always been bothered by Apple and the other tablet maker&#x27;s choice not to include an openly usable simple serial port on their devices (or the ability to use a USB&lt;-&gt;serial adapter). I understand the Apple &quot;control everything&quot; mentality. Their sandbox, their rules. Still, I can only imagine how neat it would be if all of these devices had a simple two wire serial port available without limitations. As a result of this we have to go backwards in technology by some 30+ years for simple little projects.
评论 #8626772 未加载
评论 #8626299 未加载
评论 #8627996 未加载
评论 #8629002 未加载
Schweigi超过 10 年前
Direct link to their new Kickstarter campaign for the Espruino Pico: <a href="https://www.kickstarter.com/projects/gfw/espruino-pico-javascript-on-a-usb-stick" rel="nofollow">https:&#x2F;&#x2F;www.kickstarter.com&#x2F;projects&#x2F;gfw&#x2F;espruino-pico-javas...</a> (4 days left)
yitchelle超过 10 年前
This remind me of the days of debugging an 8bit micro with only one spare IO left. I had to write a big-banged UART with a half-duplex serial protocol over it. Thank goodness that I was debugging anything approaching real time.
spiritplumber超过 10 年前
<a href="http://robots-everywhere.com/re_wiki/index.php?n=Main.AudioSerial" rel="nofollow">http:&#x2F;&#x2F;robots-everywhere.com&#x2F;re_wiki&#x2F;index.php?n=Main.AudioS...</a> If anyone wants the android serial output app (I did this in 2010, one way only though, fwiw) it&#x27;s here. Their circuit is simpler, though - this was designed to work with a Parallax Prop or an Arduino. However, my app will work with this.
评论 #8628986 未加载
IvyMike超过 10 年前
Is it Hayes compatible? ;)
rglover超过 10 年前
Just remembered I&#x27;ve had an Espruino controller in my drawer for like...a year. Whoops.
_lce0超过 10 年前
wow this brings a new set of possibilities to the table!<p><a href="http://www.slideshare.net/Sudar/transfering-data-using-audio-signal-in-android" rel="nofollow">http:&#x2F;&#x2F;www.slideshare.net&#x2F;Sudar&#x2F;transfering-data-using-audio...</a>
评论 #8627258 未加载