This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:v1:run_the_pantilt_demo [2018/01/12 22:44] jfrench [Running the demo from PixyMon] - added video |
wiki:v1:run_the_pantilt_demo [2018/05/27 23:56] pixycam |
||
---|---|---|---|
Line 40: | Line 40: | ||
From PixyMon, you can also play with the pan/tilt demo parameters: | From PixyMon, you can also play with the pan/tilt demo parameters: | ||
- | {{wiki:img:7a74360d7cd3c98073709bdccb5ce87896fa2f24.jpg?400}} | + | {{wiki:img:7a74360d7cd3c98073709bdccb5ce87896fa2f24.jpg}} |
For example, try changing the Pan P gain (pan axis proportional gain) from 500 to 50, then hit **Apply**. Or increase the gains and see what happens. Many times, increasing the gains results in some erratic behavior, but don't worry -- you won't damage anything. If you want to go back to the default values select **Action➜Restore default parameters**. There is more information [[wiki:v1:Pantilt_Demo_Pane|here]]. | For example, try changing the Pan P gain (pan axis proportional gain) from 500 to 50, then hit **Apply**. Or increase the gains and see what happens. Many times, increasing the gains results in some erratic behavior, but don't worry -- you won't damage anything. If you want to go back to the default values select **Action➜Restore default parameters**. There is more information [[wiki:v1:Pantilt_Demo_Pane|here]]. | ||
Line 51: | Line 51: | ||
**This requires that you run the "default" Pixy program -- not the pan/tilt demo program.** The default program is the program Pixy runs upon power-up by default without pressing any buttons. You can also run the default program by selecting it in the **Actions** menu in PixyMon. | **This requires that you run the "default" Pixy program -- not the pan/tilt demo program.** The default program is the program Pixy runs upon power-up by default without pressing any buttons. You can also run the default program by selecting it in the **Actions** menu in PixyMon. | ||
- | OK, start by getting the latest Arduino-Pixy code, described [[wiki:v1:Hooking_up_Pixy_to_a_Microcontroller_like_an_Arduino|here]]. Load the pantilt demo by selecting it in **File➜Examples➜Pixy➜pantilt** in the Arduino IDE. Upload it, and as long as Pixy is running the default program, you should start seeing the pan/tilt move to track any object that matches signature 1. (Note, you'll need to [[wiki:v1:Teach_Pixy_an_object_2|teach Pixy an object]] if you haven't done so already.) | + | OK, start by getting the [[https://pixycam.com/downloads-pixy1/|latest Arduino-Pixy code]], and install as described [[wiki:v1:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29|here]]. Load the pantilt demo by selecting it in **File➜Examples➜Pixy➜pantilt** in the Arduino IDE. Upload it, and as long as Pixy is running the default program, you should start seeing the pan/tilt move to track any object that matches signature 1. (Note, you'll need to [[wiki:v1:Teach_Pixy_an_object_2|teach Pixy an object]] if you haven't done so already.) |
You can also play with the Arduino code, such as changing the proportional and derivative gains. | You can also play with the Arduino code, such as changing the proportional and derivative gains. |