led-led paths_LED时刻的重要性-我做到了

led-led paths

led-led paths

Last March my friend Saron and I created MarchIsForMakers.com and spent the whole month creating and learning with hardware.

去年三月,我和我的朋友萨隆(Saron)创建了MarchIsForMakers.com,并用了整整一个月的时间来进行硬件的创建和学习。

It's March again! We're going to spend the whole month of March adding to http://www.marchisformakers.com.

又是三月! 我们将花费整个3月份的时间来添加到http://www.marchisformakers.com

If you want to support our project, make sure you tell teachers, schools, family and friends about us, and tweet with the hashtag #marchisformakers.

如果您想支持我们的项目,请确保向老师,学校,家人和朋友介绍我们,并使用#marchisformakers标签进行推文。

Here's some of the highlights of this fantastic project from March of 2015. You can get ALL the content on our site, so bookmark and visit often.

这是2015年3月以来这个奇妙项目的一些亮点。您可以在我们的网站上获得所有内容,因此请经常添加书签和访问。

入门(Getting Started)

You may have heard of Raspberry Pis and Arduinos, and perhaps considered doing a little tinkering, either with the children in your life or on your own? Where do you start?

您可能听说过Raspberry Pis和Arduinos,并且可能考虑过与孩子一起生活还是自己做一些小事? 从哪里开始?

What's "Hello World" in the world of hardware? It's making an LED light up!

硬件世界中的“ Hello World”是什么? 它使LED点亮!

I optimize my workflow for lots of tiny victories.

我优化了许多小的胜利的工作流程。

There's a moment when your tinkering. Getting that first program to compile or that first light to light up. Saron and I call it the LED Moment. When you are teaching a kid (a 100 year old kid or a little kid) how to successfully control an LED they'll light up..."I DID THAT." I pushed a button or ran a program or just plug it into a battery. There's a moment when a person see they can take control of the physical word, harness electricity, combine hardware and software and TURN A FREAKING LIGHT ON. That's the moment we are going for. Let's do it.

有一会儿你在修补。 获取第一个程序进行编译或使第一个指示灯点亮。 萨隆和我称之为LED Moment。 当您教一个孩子(一个100岁的孩子或一个小孩)如何成功控制LED时,它们会点亮……“我知道了。” 我按下按钮或运行程序,或者只是将其插入电池。 有一瞬间,人们看到他们可以控制物理字词,利用电力,结合硬件和软件并打开“追梦灯”。 那是我们要的时刻。 我们开始做吧。

Arduino和一个LED (Arduino and an LED)

Check out the article on CodeNewbies about Raspberry Pis and Arduinos by Julian. Arduinos are inexpensive and open source microcontrollers that are VERY affordable. I've got 4 or 5 around the house!

参阅Julian撰写的有关Raspberry Pis和Arduinos的CodeNewbies文章。 Arduinos价格便宜且开源微控制器,价格非常便宜。 我家周围有四五个人!

You'll want an Arduino UNO to start with. They are about $20 on Amazon but they don't include a USB cable (perhaps you have one) or an optional power supply. If you're planning on tinkering you might consider getting a "Super Starter Kit" or a Starter Kit WITH the Arduino that has all sorts of fun stuff like buttons and cables and fans and resistors.

您将要开始使用Arduino UNO在亚马逊上,它们的价格约为20美元,但其中不包括USB电缆(也许您有)或可选的电源。 如果您打算修修补补,则可以考虑购买“ Super Starter Kit ”或带有Arduino入门工具包,其中包含各种有趣的东西,例如按钮,电缆,风扇和电阻器。

For our little LED project you'll just want:

对于我们的小型LED项目,您只需要:

Ask around, you may have friends with these in their junk drawers so don't spend money unnecessarily.

随便问问,您可能在垃圾抽屉中有这些朋友,所以不要不必要地花钱。

image

Don't have an Arduino or can't get one? Fear not, you can simulate one in your browser for free! Check out http://123d.circuits.io/

没有Arduino还是没有? 不用担心,您可以在浏览器中免费模拟一个! 查看http://123d.circuits.io/

Ok, if you have a physical Arduino, go download the free Arduino Software for WIndows, Mac or Linux.

好的,如果您有实体的Arduino,请下载适用于Windows,Mac或Linux的免费Arduino软件

不同的板 (Different Boards)

There are a number of different flavors of Arduino boards. Lots, in fact! Since it's an open source hardware spec anyone can make one and add their own special sauce. Here is just a few of the dozens of boards.

Arduino板有很多不同的风格。 很多,实际上! 由于它是一种开源硬件规范,因此任何人都可以制作一个并添加自己的特殊调味料。 这只是几十个板中的几个。

  • Arduino Uno - Arguably the most popular introductory model. It connects via USB and looks like a standard COM port to your computer. No wi-fi, no ethernet, although you can get an "Arduino Shield" add-on board that snaps on top to extend it to do most anything.

    Arduino Uno-可以说是最受欢迎的入门模型。 它通过USB连接,看起来像是计算机的标准COM端口。 没有wi-fi,没有以太网,尽管您可以获得一块“ Arduino Shield ”附加板,该附加板卡在顶部以将其扩展以执行大多数操作。

  • Arduino Yun - A fancy Arduino with a micro-SD slot, Wi-Fi, Ethernet, and more. It even supports an OpenWRT Linux called Linino.

    Arduino Yun-带有微型SD插槽,Wi-Fi,以太网等的精美Arduino。 它甚至支持称为Linino的OpenWRT Linux。

  • Intel's Arduino 101 Kit - This board is an Arduino from Intel that adds Bluetooth Low Energy AND a 6 axis Accelerometer.

    英特尔的Arduino的101包-该板是由英特尔的Arduino ,增加了低功耗蓝牙和一个6轴加速度计。

I have an Intel board with me today, so I need to tell the Arduino Software about it by downloading an "Arduino Core." You'll want to tell the software which board YOU are using.

我今天有一块英特尔开发板,所以我需要通过下载“ Arduino Core ”来告知Arduino软件。 您将要告诉软件您正在使用哪个板。

I go Tools | Boards | Board Manager and search for "Intel" and install it. This tells the Arduino Software what it needs to know for my board to act right.

我去工具| 板子| 董事会经理,搜索“英特尔”并安装它。 这告诉Arduino软件,我的电路板正确运行需要知道些什么。

image

Plug the board in using a USB cable and make sure that you've selected the right board and the right port in your Arduino software.

使用USB电缆插入开发板,并确保您已在Arduino软件中选择了正确的开发板和正确的端口。

I'm going to take my LED and put the short leg - that's the negative leg - into Arduino's GND, or Ground. Then I take the long or positive leg of the LED and connect it to the resistor,  then put the resistor into the Arduino's pin 13. We are going to control that pin with software we write!

我要带上我的LED并将短脚-这是负极-放到Arduino的GND或Ground中。 然后,我将LED的长或正脚接到电阻上,然后将电阻插入Arduino的引脚13中。我们将使用编写的软件控制该引脚!

BlinenLights

We are going to pulse the LED by turning pin 13 HIGH, waiting a second, then going low. Like this, within the Arduino Software:

我们将使引脚13变为高电平,等待一秒钟,然后变为低电平,为LED脉冲。 像这样,在Arduino软件中:

void setup() {
pinMode(13, OUTPUT);
}

void loop() {
digitalWrite(13, HIGH); // turn LED on (HIGH voltage)
delay(1000); // wait a second
digitalWrite(13, LOW); // turn LED off by making voltage LOW
delay(1000); // wait a second
}

Press Upload and my little Arduino Sketch is sent to my board and starts running! And here it is!

按Upload,我的小Arduino Sketch将发送到我的板上并开始运行! 在这里!

#MarchIsForMakers @intelIoT @arduinoorg #video

#MarchIsForMakers @intelIoT @arduinoorg#视频

A video posted by Scott Hanselman (@shanselman) on

斯科特·汉塞尔曼(@shanselman)在

Again, every board is different. In my case, my Intel Arduino 101 board also has that gyroscope/accelerometer built in. I'll try playing with that soon!

同样,每个董事会都是不同的。 就我而言,我的Intel Arduino 101开发板内置了该陀螺仪/加速度计。 我会尽快尝试的!

What are you going to make this Month?

这个月打算做什么?

翻译自: https://www.hanselman.com/blog/the-importance-of-the-led-moment-i-did-that

led-led paths

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值