《Arduino 手册(思路与案例)》栏目介绍:
在电子制作与智能控制的应用领域,本栏目涵盖了丰富的内容,包括但不限于以下主题:Arduino BLDC、Arduino CNC、Arduino E-Ink、Arduino ESP32 SPP、Arduino FreeRTOS、Arduino FOC、Arduino GRBL、Arduino HTTP、Arduino HUB75、Arduino IoT Cloud、Arduino JSON、Arduino LCD、Arduino OLED、Arduino LVGL、Arduino PID、Arduino TFT,以及Arduino智能家居、智慧交通、月球基地、智慧校园和智慧农业等多个方面与领域。不仅探讨了这些技术的基础知识和应用领域,还提供了众多具体的参考案例,帮助读者更好地理解和运用Arduino平台进行创新项目。目前,本栏目已有近4000篇相关博客,旨在为广大电子爱好者和开发者提供全面的学习资源与实践指导。通过这些丰富的案例和思路,读者可以获取灵感,推动自己的创作与开发进程。
https://blog.csdn.net/weixin_41659040/category_12422453.html
基于 NEMA 17 步进电机的旋转平台,用于捕捉精美的旋转视频。
我看到一个 28BYJ-48 5V 迷你步进电机旋转平台并想制作它,但我没有 28BYJ-48,所以我制作了我自己的旋转平台版本。
但为什么要制作旋转平台!?
目标是制作一个旋转平台,可以用来拍摄这样的东西——
这个版本不是一个合适的封闭器,并且几乎没有我将在 V2 中解决的问题。
首先,我根据我在 Thingiverse 上找到的这些齿轮设计了基本车身,
https://www.thingiverse.com/thing:43090
感谢 UTSOURCE.net 为这个项目提供电子元件!
你可以检查一下 UTSOURCE.net,他们处理各种电子元件,例如 Attiny84、我在这个项目中使用的步进电机驱动器等等。
这些是需要的 3D 打印部件 - (对于 V1)
基础
大齿轮
小齿轮
大齿轮销
针
纸架 x2
我在 Fusion360 中设计了这些部件,并用 3% 的填充物 40D 打印它们以提供额外的强度,因为我使用的是 PLA、ABS 或 PET G 是一个合适的替代品。
组装非常简单,我只是像定制乐高积木一样将所有东西放在一起。
这是 V2,它有一个更好的外壳,带有安装孔,用于使用这些 L 支架将其安装到木制底座上 -
此外,我还制作了这些纸架支架,可以容纳任何 A4 尺寸的纸张,然后成为背景,您可以添加不同颜色的纸张以获得适合您的视频的不同背景。
最终设置将如下所示 -
电子和布线-
目前,我使用 Arduino NANO 作为主控制器以及 4988 步进电机驱动器来运行该系统。
(在版本 2 中,我将使用 Attiny84 来运行此设置)
这块板是我几周前制作的(PCB 由 JLCPCB 提供)
A4988步进电机驱动器将顺利完成工作
根据这个方案连接所有东西——
接线后
上传这个测试代码,你基本上就完成了——
更新后的电路-
我已将带有 A4988 驱动器的自定义 Attiny84 分线连接到带有一些母头的 perf 板上。
它又小又小,所以我把它放在 V2 外壳里并进行了测试。
项目代码
// defines pins numbers
const int stepPin = 3;
const int dirPin = 4;
void setup() {
// Sets the two pins as Outputs
pinMode(stepPin,OUTPUT);
pinMode(dirPin,OUTPUT);
}
void loop() {
digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction
// Makes 300 pulses for making one full cycle rotation
for(int x = 0; x < 10000; x++) {
digitalWrite(stepPin,HIGH);
delayMicroseconds(500);
digitalWrite(stepPin,LOW);
delayMicroseconds(500);
}
delay(1000); // One second delay
digitalWrite(dirPin,LOW); //Changes the rotations direction
// Makes 300 pulses for making two full cycle rotation
for(int x = 0; x < 10000; x++) {
digitalWrite(stepPin,HIGH);
delayMicroseconds(500);
digitalWrite(stepPin,LOW);
delayMicroseconds(500);
}
delay(1000);
}
【Arduino 动手做】基于NEMA17的Arduino旋转平台
项目链接:https://www.hackster.io/Arnov_Sharma_makes/arduino-rotating-platform-based-on-nema17-caef58
项目作者:阿诺夫·夏尔马
项目视频:https://www.youtube.com/watch?v=qscjJHGitIU
项目代码:https://www.hackster.io/code_files/457956/download
3D 文件:https://www.thingiverse.com/thing:43090
https://hacksterio.s3.amazonaws.com/uploads/attachments/1146493/base_gyw09JHie2.stl