孩子们,Arduinos和四翼飞机

I have four children,都有着不同的兴趣。My second-youngest,克里斯托弗,age 13,has always liked technology.上周末他和我去看野生动物,古怪和创造性的技术(和其他东西)在Maker Fairein 徳赢中国New York.

I had told the organizers I could give a talk.But a week or so before the event,克里斯托弗告诉我,他认为我计划说的话没有它可能的有趣。徳赢彩票游戏事实上,他可以做一些更有趣和更相关的演示。

克里斯托弗是个狂热的人数学软件user for years now.And he likes hooking数学软件最近最受欢迎的两种设备是Arduino板和四翼无人机。

上周日,我和他一起走上舞台,站在只有300多人的一个看台前,carrying a quadricopter.(I wasn't trusted with the Arduino board.)

Christopher had told me that I shouldn't talk too long—and that then I should hand over to him.He'd been working on his demo the night before,那天早上早些时候。我建议他应该练习他要说的话,but he'd have none of that.Instead,up to the last minute,he spent his time cleaning up code for the demo.

我这辈子一定讲过几千次了,但整个情况让我很紧张。Arduino董事会能工作吗?四翼飞机会飞吗?What would Christopher do if it didn't?

I don't think my talk was particularly good.But then Christopher bounced onto the stage,and soon was typing raw数学软件code in front of everyone—with me now safely off on the side (where I snapped this picture):

Christopher Wolfram on stage at Maker Faire

His demo was pretty neat.他在Arduino板上安装了一个电位计。他把它设置成只需要输入一个命令数学软件to get its value:

ArduinoAnalogRead[0]

357

Then it was动态[Arduinoanalogread[0],和数学软件is dynamically displaying the value in real time as he adjusted the potentiometer.

Then he makes it into a gauge (er,这实际上是未来版本的数学软件,但Christopher热衷于内部开发构建):

动态[angulargage[arduinoanalogread[0],{0,1023 },UpdateInterval -> 0]

Gauge dynamically displaying the value

And then he says he's going to make a dynamic plot of it.And pretty soon he's typing the数学软件程序,自信地按SHIFT RETURN,它实际工作:

data = {};动态[rawdata=arduinoanalogread[0];AppendTo[data,rawdata];listlineplot[数据,填充->轴,图像大小>500],UpdateInterval -> 0]

电位计数据图

Then he's on to using an ultrasound sensor,让它根据距离产生音符。

然后他就上了四翼飞机。He'd been going back and forth with someone at our company for a few days before,试图摆脱与四头肌's API.I had seen the quadricopter fly that morning,but I k徳赢中国new Christopher had changed the code quite a bit since then.

His plan was to have a single line of数学软件code that would make the quadricopter fly a specified 3D path.He had a list of points for a square,输入代码行,and pressed Shift-Return,and… nothing happened!

我猜克里斯托弗13年来调试了很多代码。现在他开始在观众面前做。徳赢彩票游戏A missing function definition.A missing command to connect to the device.他发现了不少东西。And I was getting ready to call out that he should just give up.

But then… the sound of quadricopter blades,and up the quadricopter goes… flying its loop on the stage,and landing.

它真的起作用了!It was pretty neat,只需输入一行代码数学软件,然后让一些物理物体以我们指定的模式飞行:

ARDRONEFLYPATHGRAPHICS[表sin[u],Sin[2u],{u,0,2π,π/5 } ]

Path for the quadricopter

在另一次飞行之后,观众有问题。一个人问四翼飞机是否能对环境做出反应。这使克里斯托弗开始了更多的“旁观者节目”。And actually,it took him only a line of code to get the real-time video from the flying quadricopter,and feed it through simple数学软件image processing:

克里斯托弗·沃尔夫拉姆在台上和四翼飞机一起飞行

这一切都奏效了,给我留下了很深的印象(hereis the full video).而且,yes,Christopher was clearly right that his topics were very relevant to Maker Faire.In fact,it seemed like Arduino and quadricopters were two of the three main technical themes of the show.The third was 3D printing.

I'd actually mentioned that in my talk (at Christopher's suggestion),pointing out that沃尔夫拉姆阿尔法专业以及数学软件) can immediately makeSTL版本它生成的任何三维图形。

And I was reminded that one of my own early applications of 3D printing years before had been connected to another of my children.In 2006,my daughter Catherine (then 9 years old) was very into 3D geometry,喜欢探索3D polyhedra我们引进的数学软件6。

我们刚开始沃尔夫拉姆示范项目,作为一个样本,we added a很少应用of polyhedra that Catherine had created with my help:

多面体考拉

Catherine had 2D printouts of many different cases,and one day we decided to try making them 3D.It took a little wrangling,但没过多久,凯瑟琳和我就去了一家充满塑料粉尘的“3D打印店”。from which a little zoo of polyhedral koalas emerged:

Collection of polyhedral koalas

Every year there's more and more for me to learn from my children.我最大的孩子,now age 16,我已经成为一个相当成功、极其老练的企业家,我正努力从他身上汲取我所能吸收的商业智慧。其他三个还没有“启动”,but each has their definite interests.

For Christopher it's technology and product design.Learning 徳赢彩票游戏about every 徳赢中国new and emerging technology he can,and developing his own ideas—and often strong opinions—徳赢彩票游戏about it.(At Maker Faire,我感兴趣地注意到他对覆盆子皮… and his long discussion 徳赢彩票游戏about what it would mean to have数学软件running on it…)

Christopher has always been an energetic explainer of things.但上周末第一次见他向大批观众“解释”却很有趣。他绝对是我们联合演讲的明星。And—despite a few tense moments—it was pretty fun for me to see two progeny of very different kinds—Christopher and数学软件一起工作so nicely.

17comments.Show all »

  1. 精彩的活动,可爱的结论。

  2. Way cool.Perhaps Christopher should do a road show to middle schools.

  3. To me,克里斯托弗和他父亲在一起工作得很好:-)– Awesome demonstration on the Mathematica's front too.

    卡罗兰佐蒂
  4. 我很喜欢你的博客,but particularly this post and the conclusion of Mathematica and your son(as Chris Meyers mentioned).

    杰西埃尔南德斯
  5. 感谢您整理此摘要。I keep telling people that this one talk was easily the most important thing I saw at the Maker Faire this year.不是无人机在飞,or even the impressive Mathematica skills,but the notion that a 13-year-old could take control of the world around by understanding layers upon layers of abstractions built to make an infinitely complex world as simple as a toy.

  6. 精彩的。Thanks for sharing.

    Robert Smith
  7. Hi,that was an impressive demonstration!我想克里斯托弗使用的是沃尔夫拉姆实习生凯沙夫·萨哈里亚的阿杜宁克包?Any update on a release date?

    我是一名博士生,业余时间和阿杜尼奥玩,Mathematica and MATLAB (as you can see in my website!) and here in my lab we're considering integrating Arduino with either MATLAB or Mathematica (we have a campus license for both,they are taught in class,and Arduinos are orders of magitude cheaper than NI I/O boards) for student projects,so a package like that would be awesome!

    I know MathWorks already provides a similar package,but for quick projects I prefer the power and simplicity of Mathematica when it comes to information representation and GUI creation so if you have any info on that,I would appreciate it a lot =)

  8. 多棒的演示啊!Kudos to your son!

  9. Wonderful how you can motivate young people with technology!
    When will ArduinoAnalogRead be available for us humans?

    Erik Mahieu
  10. 史蒂芬

    Such a wonderful story,我希望我能亲自体验。When I was slightly older than Christopher,back in Calcutta,I wrote my first line of code on a computer that I built from chips,blank prototyping boards,and 7-segment LEDs.我永远不会忘记的感觉。I know Christopher felt the same way when his quadricopter took flight.今天我用的是Arduino和其他2美元的微控制器,它们比我的第一台电脑功能强大得多。It is wonderful to see that the youngest generation is once again back into building physical things,and not just play with software.我都喜欢,but there is something special 徳赢彩票游戏about the tactile pleasures of watching a physical thing take shape.

    库纳尔

  11. Great demonstration what kids can do with modern tools.At this stage I was just typing 10 Print "Test" at my ZX Spectrum computer.Wonderful times we live in!

    佐尔特阿克西希
  12. Cool!Mathematica for Raspberry Pi would be really nice.There are some supercomputers and clusters projects with RPP… it would be a 徳赢中国new kind of clusters with simple and cheap computers…

    Moreover it can be a good path for education…

  13. Pretty cool that Christopher is using Ubuntu as his main operating system.

    Sahak Petrosyan
  14. Very nice demo!I find the business of interfacing external devices always a little tricky because you have to go through the operating system.There is a description on how to interface an Arduino on the Arduino website (http://www.arduino.cc/playground/interfaceing/mathematica).However,I'm looking forward to see Christopher's code so I can learn some more!

    Kay Herbert
  15. 感谢分享,makes you proud to be a parent!

  16. I Loved his demonstration.How wonderful to see the difference you're making in the world.Pouring resources into Kahn Academy will rock.我们很高兴你能和我们这些猴子共存。;)和平。

  17. Awesome talk.(Saw the video)
    我正在建立一个社区,在这里我们将把Mathematica作为一种通用的编程语言。
    And my other hobby project is actually building a hoverpod full size (2,2m Diameter),running on Arduino and Mathematica.

Hide comments »

?斯vwin中国蒂芬·沃尔夫拉姆,LLC | Terms| RSS