fish6823 发表于 2013-7-21 22:53:04

cyq456 发表于 2013-7-17 22:37 static/image/common/back.gif
不太懂,总共有四个光敏管,是把哪个光敏管放在焦点上?

四个都放在焦点上,四个管的输出相同,当光线偏移的时候,焦点就会移动,四个管输出就会有变化,你拿个放大镜来试试就懂了.

PaulMyao 发表于 2013-7-21 23:51:32

为什么我吧你的代码复制到 arduino IDEshang直接就是这样显示的:









sketch_jul21a:1: error: 'Servo' does not name a type
sketch_jul21a:2: error: 'Servo' does not name a type
sketch_jul21a.cpp: In function 'void detection()':
sketch_jul21a:14: error: 'Yservo' was not declared in this scope
sketch_jul21a:18: error: 'Pservo' was not declared in this scope
sketch_jul21a:48: error: 'Yservo' was not declared in this scope
sketch_jul21a:49: error: 'Pservo' was not declared in this scope
sketch_jul21a.cpp: In function 'void setup()':
sketch_jul21a:55: error: 'Pservo' was not declared in this scope
sketch_jul21a:56: error: 'Yservo' was not declared in this scope

cyq456 发表于 2013-7-22 16:35:41

fish6823 发表于 2013-7-21 22:53 static/image/common/back.gif
四个都放在焦点上,四个管的输出相同,当光线偏移的时候,焦点就会移动,四个管输出就会有变化,你拿个放大镜来 ...

时间长了不会把光敏烧坏吧

fish6823 发表于 2013-7-24 11:45:37

cyq456 发表于 2013-7-22 16:35 static/image/common/back.gif
时间长了不会把光敏烧坏吧

四个光敏的面积还是挺大的,应该不会烧吧,不过还真要试试才知道.
页: 1 [2]
查看完整版本: 刚做了一个光线追踪系统,不太完美,请问大家有什么改进方法