回到首页 返回首页
回到顶部 回到顶部
返回上一页 返回上一页

【Arduino 动手做】基于NEMA17的Arduino旋转平台 简单

头像 驴友花雕 2025.08.01 7 0

基于 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 外壳里并进行了测试。

 

00.jpg
01.jpg
02.jpg
03.jpg
04.jpg
05.jpg
06.jpg
07.jpg
08.jpg
09.jpg
10.jpg
11.jpg
12.jpg
13.jpg
14.jpg

项目代码

 

 

代码
// 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

 

00192---.gif
00192----.gif

评论

user-avatar
icon 他的勋章
    展开更多