Introduction: Wireframe X-Wing Clock
这种雕塑受到Mohit Bhoite的作品的影响。他已经制作了几种非常有趣的电气件,他在他的两种情况下展示网站andInstagram.。我肯定建议检查他的工作。我看到他的领带战斗机设计,并认为尝试制作X-Wing版本是很有趣。
Supplies:
材料:
Electrical:
- Arduino Nano (ATMega328P)
- SSD1306 OLED 128x64显示屏
- DS3231 RTC模块
- Diffused Red LED's
- 清除红色LED
- 220 ohm Resistors
- 扬声器
- 晶体管
- USB电缆
- 面板安装滑动开关
- 镀银线(20AWG)
MISC:
- 核桃木
- 丹麦石油
- 毛毡
- 热胶
- Small Screws
工具:
- 烙铁和焊料
- 焊灯泡
- 热胶Gun
- 工具刀
- 钢丝钳
- 钳
- Drill
- 钻头
- 带锯
- 桑德和砂纸
- USB电缆
- 帮手
- 螺丝刀
- 粘性胶水
第1步:准备电线和零件
For the wire to be usable, it first had to be straightened. I found that a drill and pair of pliers worked wonders. Before I soldered anything, I cut the pieces to size and formed them into the desired shapes. For each of the parts, I have included a DXF file and the Fusion360 file which was used as a reference for assembly. Make sure to print the DXF file out at a 1:1 scale. The amount of each part is indicated in the name of the file (ex. 4x means you need four of that piece). To get a nice sharp bend, hold the wire with a pair of pliers and bend it right at the point it is being held.
我决定用几个步骤组装身体。它们是核心,鼻子/发动机和翅膀。虽然没有必要,这是我在弄清楚时最容易找到的装配顺序。
第2步:核心组装
First step in the core assembly is soldering the main piece of the body closed. This is the piece with the most amount of bends in it. Next, solder the pieces that also belong on the side. Each side piece includes one side, two side2, and one side3. Using the stencil DXF provided, solder then together as shown in the picture above.
To attach the two side pieces to each other, I soldered the body pieces at each of the vertices of the side panels. The body pieces are the one that there are seven of. I started by doing the two on the back first, to make it stable, and then worked my way up to the front.
组装形状后,将电线添加到arduino纳米的接地销中并将其连接到框架的中间。整个框架用作电路的接地平面。它应该以框架为中心,靠近船的后部。将Arduino焊接到框架后,我准备添加屏幕。所需的唯一步骤是将一根电线添加到地销。然后,这片导线焊接到框架上,使屏幕安装在成角度的面上。用于SDA引脚的电线转到Arduino上的A4,SCL连接到A5,5V转到5V。要将DS3231模块添加到Arduino是屏幕的类似过程。将接地线焊接到框架上,然后以相同的角度弯曲倾斜边缘。数据和电源线连接到连接到Arduino上的相同引脚的屏幕的线路。
The speaker is connected slightly differently than the DS3231 and OLED screen. First step is to solder the transistor to one side of the speaker. I put my speaker on the bottom of the ship, near the front. The side of the speaker that doesn't have a transitor attached is connected to the frame, grounding it. The middle pin of the transistor is connected to pin 10 on the Arduino. The last remaining pin of the transistor is connected to the same 5V line as the DS3231 and OLED screen.
Step 3: Making the Nose and Engines
在我放鼻子之前,我将引擎LED放在上面,但它并不重要,他们的顺序是重要的。对于各个发动机LED,我将220欧姆电阻添加到LED的阴极和该电阻的另一端到框架背面的角落(这些电阻不是必需的,我实际上将它们添加为事后的事后)。发动机由两个引脚控制而不是四个,因为扬声器使用三个定时器中的两个,仅留一个用于PWM。我对角地连接阳极(右上角到左下角,反之亦然),然后分别到两个模拟写入引脚。我用于发动机的两个引脚是引脚5和6。
将鼻子连接到主体上,我将两个较大的鼻部件连接到身体的前部。在此期间,我试图将它们作为尽可能对称的角度附加。在它们粗略地依附于足够好的后,使用较小的切断鼻部部分以更好地将它们分开,并完成身体的形状。
第4步:制作翅膀
在将翅膀附加到框架之前,我将两条机翼焊接在一起,如第一图像所示。然后我将LED的阴极焊接到机翼的末端。我发现最简单的是将它们附加到大会上是一次这样做。当附着翅膀时,我将它们放在大约10度的角度。附接翼,然后将第二根线连接到LED的阳极,然后连接到附接到Arduino的销4的电阻器。机翼末端的所有LED都通过电阻连接到Arduino的相同引脚。
第5步:制作和安装基础
使用我的带锯,我切断了核桃板的碎片,测量约2“x 2.”我使用的核桃大约是3/4“厚。虽然你可以比这更厚,但我不建议稍微稀释。然后我绕过角落并使用皮带砂光机和一些手动打磨来清理边缘。我使用钻机挖出了一块木头的底部。这也可以用凿子来完成。里面不必是完美的,因为它永远不会看到。我在后面钻出一个洞USB电缆和开关的矩形孔。对于我钻出的矩形孔,然后使用珠宝商看到和文件将其带到正确的形状。
将X-翼安装到基座上,将电线添加到连接到VIN引脚的底部,框架(框架接地),引脚2和引脚7.使用1mm钻头I为它们钻孔孔顶部的木片。我将开关连接到引脚2和7. I连接开关的每一侧到5V和GND。然后,线框的地和5V线连接到USB电缆的5V和接地线。为了确保USB电缆固定在底座中,我绑在其中的结。
彼此焊接连接器后,用热胶填充底座。这有助于隔离所有电线并将其固定到位。确保胶水形成平坦的表面,与底座的底部齐平。胶水冷却后,我用粘性胶水粘在一块毛毡上。胶水干燥后,使用公用事业刀片修剪毛毡到尺寸。
第6步:设置DS3231的时间
设置DS3231的时间我使用了DS3231库和串行监视器的示例草图。就好像您正在编程Arduino,将其插入您的PC并上传包含的草图。打开串行监视器并输入命令setdate yyyy-mm-dd hh:mm:ss
yyyy corresponds to the year, mm corresponds to the month, dd corresponds to the day, hh corresponds to the hour (in 24H time), mm corresponds to the minutes, and ss corresponds to the seconds.
设置时间时,请确保将电池插入到DS3231模块中,以便在拔出电源时保持时间。
第7步:编程Arduino
要编程Arduino,请使用Mini USB电缆将其插入PC。提取RAR文件并在Arduino中打开它。确保所有文件都在标题为x-翼时钟的文件夹中。还有比INO所需的其他文件,它们必须与INO相同。检查一切后,将代码上传到Arduino。
第8步:操作
在这个时钟的设计中,我已经包括两个开关。一个交换机启用/禁用扬声器,另一个交换机用于表示夏令时的时间。
扬声器用于声音效果,即我觉得添加了额外的效果。第一个声音是发动机噪音,并且每十到六十分钟随机播放。其他效果与“激光器”一起,是激光噪声。它在零分钟,十五分钟,三十分钟和四十五分钟播放。当它播放时,“激光”脉冲具有声音。

Second Prize in the
空间挑战
1人制作这个项目!
- UFOdriver做好了!
17讨论
问题4.months ago on第6步
问候。
我制作了项目,但有问题:
1.当设置的时间,DS3231不记得the time at all. What am I doing wrong?
2.安装X-翼时钟激光器时,它不会开启((
7个月前
It's not obvious where startPlayback() is. not Adafruit_GFX.h (no - I looked)
7个月前回复
我不确定你在问什么?
7个月前回复
我想用你的方法来制作声音。要使用您调用startplayback()的方法,我需要知道要使用哪个adafruit库,以及表的确切格式。
adafruit_gfx.h没有原型功能定义。您的源文件都没有startplackback()的定义
So - what is the secret sauce? Where is the library and associated files and description for use? If you wrote it yourself, it doesn't look like the files were included.
7个月前回复
This function is not a part of the adafruit gfx library. It is a part of the pcm library. This library can be added through the library menu in the arduino interface
8个月前
Nice. I was going to do this as a project along with my nephew. He’s a Star Wars fanatic. However I find it impossible to print them out. What programme do you use to do it
8个月前回复
谢谢将它们转换为PDF。我假设他们都在一张纸上?如果是这样,我很高兴你做到了。当我尝试转换DFX文件时,它们都越长。更长5厘米
只是等待零件到达,然后就会到达它。何时/如果我让它工作生病了
8个月前回复
它是标准的8.5“x 11”副本纸张。我不确定那是A4还是不是
祝你好运,玩得开心
8个月前回复
我可以继续将DXF转换为PDF文件。我使用SolidWorks edraw来查看文件。可以查看DXF的任何东西都应该工作。
这是一个艰难的建设,只是为了提前警告你,但如果你有一些焊接体验它是一个有趣的项目。
8个月前回复
如果你能取悦那就很棒。是的,我很好,因为我曾经以谋生为生。
8个月前回复
I've uploaded the PDF file to the step with the DXF files. It is titled X-Wing Template. Let me know if there any any other problems with it. Also if you do sucessfully make it, please press the I made it button and share. I would love to see it
8个月前回复
Inkscape是一个免费的绘图程序,也将导入DXF文件。
8个月前回复
While I've heard of Inkscape, as I've never used it and don't know how it works with scaling, I didn't want to recommend it. I felt safe recommending eDrawing because I use it quite frequently and know it works for what I used it for. Inkscape is probably a good option, as I have heard many good things about it.
8个月前
你好
这是一个很棒的项目,复制品很好,但我有噪音问题。测试PCM草图正在运行,当我将开关S1切换到VCC(D7)时,电路板没有启动,显示屏仍然是黑暗的,谁可以帮助我
8个月前回复
我很遗憾听到你对这个项目有困难。虽然这是一个困难的项目,但它是可行的。我不确定你的问题是什么。你能详细说明你的问题吗?
8个月前
它看起来很酷!
8个月前回复
Thank you for thinking so. It was a lot of fun to make