项目作者: HollowMan6

项目描述 :
My experience of using Arduino to do some interesting things.(利用Arduino做一些有趣的事情)
高级语言: C++
项目地址: git://github.com/HollowMan6/Play-with-Arduino.git
创建时间: 2019-10-19T16:56:11Z
项目社区:https://github.com/HollowMan6/Play-with-Arduino

开源协议:GNU General Public License v3.0

关键词:
"arduino"

下载


利用Arduino做一些有趣的事情

last-commit

Followers
watchers
stars
forks

Open Source Love
GPL Licence
Repo-Size

材料(Material)

Arduino UNO:

公对公杜邦线(Public to public DuPont lines):

电位器(Potentiometer)

面包板(Breadboard)

数码管(Nixie tube) 5611BH

四位数码管(Four digit nixie tube) 3461AS-1

以及伺服电机,电阻和LED。

and servo motor, resistance, LED.

(English Version is down below)

制作呼吸灯

参考这里的教程,我另外将LED灯数目增加,以营造出不一样的效果。

这是我的源代码

其中,绿色灯为LED1,接9号口;红色为LED2,接10号口;黄色为LED3,接11号口;红外线灯为LED4,接6号口;

请注意,一定要使用带波浪线的输出接口,否则无法营造出呼吸灯的效果。

这是效果视频


这个视频中你可以看出,虽然我们人肉眼看不见红外线,但是相机却能拍出红外线,是不是很神奇呢!😀

用电位器控制电机角度

准备一个伺服电机和一个电位器,按如图所示接法连入电路:

这是我的源代码

这是效果视频

用电位器调节数码管显示数字

准备一个数码管和一个电位器,按如图所示接法连入电路:

注意: 因为我这里的数码管是共阳极的,与传统共阴极数码管有区别

这是我的源代码

这是效果视频

用四位数码管模拟时间

参考这里的教程,我完成了电路的组装。

这是我的源代码

这是效果图:

My experience of using Arduino to do some interesting things

Make breathing LED

Refer to the tutorial here, I increased the number of LED lights to create different effects.

Here is my Source Code

Among them, green light is LED1, connected to port 9; red light is LED2, connected to port 10; yellow light is LED3, connected to port 11; infrared light is LED4, connected to port 6;

Please note that you must only use port with wavy line, otherwise the effect of breathing LED cannot be created.

Here is my showing video


In this video, you can see that although we can’t see infrared radiation, but the camera can shoot infrared radiation, isn’t it amazing? 😀

Controlling motor angle with potentiometer

Prepare a servo motor and a potentiometer, and connect the circuit as shown in the figure:

Here is my Source Code

Here is my showing video

Adjust the digital display with potentiometer

Prepare a nixie tube and a potentiometer, and connect the circuit as shown in the figure:

Note: the nixie tube here is common anode, which is different from the traditional common cathode nixie tube.

Here is my Source Code

Here is my showing video

Simulate time with four digit nixie tube

Refer to the tutorial here, I complete the connection of the circuit.

Here is my Source Code

Here is my showing picture: