<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:run_the_pantilt_demo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
wiki:v2:run_the_pantilt_demo [2018/05/18 19:28]
pixycam [Running the demo from an Arduino]
wiki:v2:run_the_pantilt_demo [2018/05/18 19:29]
pixycam [Running the demo from an Arduino]
Line 44: Line 44:
 Here, 500 is the proportional gain and 400 is the derivative gain for the pan servo. Likewise, 600 and 500 are the proportional and derivative gains for the tilt axis. Try reducing the proportional gain by half and see what happens. Many times, increasing the gains results in some erratic behavior, but don't worry -- you won't damage anything. Here, 500 is the proportional gain and 400 is the derivative gain for the pan servo. Likewise, 600 and 500 are the proportional and derivative gains for the tilt axis. Try reducing the proportional gain by half and see what happens. Many times, increasing the gains results in some erratic behavior, but don't worry -- you won't damage anything.
  
-With a little tweaking and modifying, this code can become a "​chasing"​ instead of a "​tracking"​ algorithm. That is, instead of calculating servo positions your Arduino can calculate motor speeds. So now your Pixy-Arduino robot creation can chase a ball, toy, etc. The Arduino example **ccc_zumo_chase** does exactly this.  It controls 4 axes: pan, tilt, left and right motors to chase the object it acquires.  ​+With a little tweaking and modifying, this code can become a "​chasing"​ instead of a "​tracking"​ algorithm. That is, instead of calculating servo positions your Arduino can calculate motor speeds. So now your Pixy-Arduino robot creation can chase a ball, toy, etc. The Arduino example **ccc\_zumo\_chase** does exactly this.  It controls 4 axes: pan, tilt, left and right motors to chase the object it acquires.  ​
  
wiki/v2/run_the_pantilt_demo.txt ยท Last modified: 2018/06/07 22:58 by pixycam