Skip to content

HollowMan6/Play-with-Arduino

Repository files navigation

利用Arduino做一些有趣的事情

last-commit

Followers watchers stars forks

Open Source Love GPL Licence Repo-Size

材料(Material)

Arduino UNO:

Image

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

Image

电位器(Potentiometer)

Image

面包板(Breadboard)

Image

数码管(Nixie tube) 5611BH

Image

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

Image

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

and servo motor, resistance, LED.

(English Version is down below)

制作呼吸灯

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

这是我的源代码

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

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

这是效果视频


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

用电位器控制电机角度

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

Image

这是我的源代码

这是效果视频

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

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

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

Image

这是我的源代码

这是效果视频

用四位数码管模拟时间

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

这是我的源代码

这是效果图:

Image

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:

Image

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.

Image

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:

Image

About

My experience of using Arduino to do some interesting things.(利用Arduino做一些有趣的事情)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

 
 
 

Contributors

Languages