到这里,我相信绝大多数大一的相关专业学生都可以完成这样一台扫描仪了。
让我们全局看一下这个小项目。
机械方面
可以参考三维扫描仪[8]——如何设计一台云台式扫描仪(机械结构)
我们需要一个支架,支起Kinect和云台,同时我们也需要一套齿轮组,获得精确的角度变化。
开发环境方面
可以参考:
三维扫描仪[6]——常用软件及开发环境
三维扫描仪[7]——认识Processing和Arduino开发环境
其中
Meshlab
Arduino
Processing
和其他的中间件是必须的
项目代码方面
可以参考:
三维扫描仪[9]——如何设计一台云台式扫描仪(初步软件设计)
三维扫描仪[10]——如何设计一台云台式扫描仪(代码详解)
这里也附上全套代码
Arduino
步进电机代码
int xdir = 13;
int Step = 12;
int xen = 9;
void setup() {
// put your setup code here, to run once:
pinMode(xen, OUTPUT);
pinMode(xdir, OUTPUT);
pinMode(Step, OUTPUT);
digitalWrite(xen, LOW);
digitalWrite(xdir, LOW);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(Step, LOW);
delay(10);
digitalWrite(Step, HIGH);
delay(10);
}
角度传感器代码
int potPin = A0;
int Pos = 0;
void setup() {
// put your setup code here, to run once:
pinMode(potPin, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Pos = analogRead(potPin);
delay(250);
Serial.println(Pos);
}
Processing
import processing.serial.*;
import processing.opengl.*;
import SimpleOpenNI.*;
import kinectOrbit.*;
//Init Orbit an

本文详细介绍了一款基于Kinect的云台式三维扫描仪制作过程。从机械结构设计到软件开发环境搭建,再到具体代码实现,适合大一相关专业学生参考学习。项目涉及Arduino、Processing等开发工具的应用。
最低0.47元/天 解锁文章
17

被折叠的 条评论
为什么被折叠?



