Arduino——创客的法宝
关注Ed Symposium,我们一起聊聊有趣的事情。

本文字数:946字
阅读时间:3分钟
你可曾想过自己创造一些有趣的东西,成为一名创客?

比如说。。。

用热狗操控狗狗

自制章鱼机器人

自制指纹解锁门禁

自制机械手臂

自制手掌姿势无线控制小车

自制相机云台

自制遥控气垫船??!!
想成为一个创客吗?
想自己开发电子产品吗?
想学习编程入门却没有基础吗?
你可以的同学,Arduino可以为你实现你的梦想。
(Aruino的爸爸看过来!我们在努力的为你做广告!,ps我们一分钱没有收)
小编曾经使用自己开发过许多Arduino产品,今天就和大家聊一聊Arduino的入门,如何DIY电子产品。
Arduino是意大利公司开发的一个开源的电子开发板平台。入门极其简单,并且一旦稍微入门,一个奇妙的创客世界就会向你敞开神秘的大门。
Arduino作为电子开发板有许多你能选择的型号,总体来说有下面4种

Arduino UNO

Arduino Micro

Arduino Pro Mini

Arduino Mega
这些不同规格型号的Arduino本质上的功能是一样的,根据实际应用的空间大小,我们可以选择不同大小,不同接口的Arduino开发板。
大家可以直接选择Arduino UNO作为你的标准开发板。Arduino UNO的功能以及足够上述任何一个DIY项目了。
下面就是一个小例子:
下面这个DIY空气温度湿度检测装置,由三个部分组成,最上面的是一个Arduino UNO开发板,左边是一个屏幕,右边蓝色的装置是探测器。把所有东西都连接好以后,上传代码,就可以完美运行啦。
Arduino UNO开发版就像人的大脑,其周边设备就是手和脚。大脑控制手脚运动,从而达到既定的目标。

Arduino可以使用的外接设备数不胜数,下面就是一些例子:



其中有土壤湿度检测器(可以检测土壤湿度)、IR接受发射器(可以遥控)、湿度温度检测仪、LED灯、WIFI模块(可以无线远程控制)、水面高度测量仪、3轴手柄、超声波收发器、倾斜感应模块、触碰模块、明火探测仪、格式各样的伺服马达等。
这些模块均可与Arduino连接在一起,经过简单的代码上传就可以快速激活使用。
说了这么多,咱们再仔细的学习一些基本知识和注意事项。
Arduino UNO开发板有6个模拟接口 和14个数字接口。不同的模块有不同的连接方法,具体的连法可以在百度轻易获取。

最后我们来一个用Arduino UNO 控制的小LED小例子来简单介绍一下开发流程。
项目目的:按下按钮以后,LED灯亮起,放开按钮以后,LED灯熄灭。
下面是项目使用到的代码。

将代码上传到Arduino UNO开发板以后,连接好开关和电线。

如果所有环节都没有出错的话,LED就会随着开关的控制点亮或者熄灭哦。
成功!
看到了吧,就是这么简单,虽然这是一个很小的小项目,但是一旦你学会了就会有无尽的可能,你想做的很多和电子产品相关的DIY都可以通过Arduino来实现。
小编今天简单的介绍了一下Arduino的能力,敬请期待下一次更详细的教学。
--end--
声明:本文章由网友投稿作为教育分享用途,如有侵权原作者可通过邮件及时和我们联系删除:freemanzk@qq.com