PID Arduino Light Tracker [英] PID Arduino Light Tracker

查看:123
本文介绍了PID Arduino Light Tracker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以添加PID控制来控制此算法?如果是这样,怎么样?希望合并,但无法弄明白







Can PID control be added to control this algorithm? If so, how? Looking to incorporate but can''t figure it out



#include <Servo.h>
Servo myservo;
int pos = 0;  
int inputPhotoLeft = 1; 
int inputPhotoRight = 0;
int Left = 0; 
int Right = 0; 
{
myservo.attach(9); 
}
void loop()
{

Left = analogRead(inputPhotoLeft);
Right = analogRead(inputPhotoRight);

推荐答案

当然答案是肯定的。

一个简单的谷歌搜索pid arduino会给你这个pid库以及许多其他pid arduino引用。

http://playground.arduino.cc/Code/PIDLibrary [ ^ ]



为什么不试试这个并回到特定问题。
The answer is yes of course it can.
One simple Google search "pid arduino" would have given you this pid library second in the list along with many other pid arduino references.
http://playground.arduino.cc/Code/PIDLibrary[^]

Why don''t you try this and get back with a specific question.


这篇关于PID Arduino Light Tracker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆