You’ve taught the Pixy2 which color signatures to recognize, and assigned each color to a number. In this tutorial, we will load the Pixy2TerminalDisplay.svg BlocklyProp code into the Propeller Activity Board and see each object's position and size using the Terminal. The BlocklyProp program will receive and parse that data from the Pixy2, and then decide what to do with it.
This program has many functions to manage the serial data parsing from the Pixy2. These functions are shown in “collapsed” view (right-click a function if you want to expand it). You will not need to use most of these function blocks; it is convenient to keep their view collapsed.
After loading code into the Propeller Activity Board, BlocklyProp Solo will open its Terminal and display information about colored objects that you have trained the Pixy2 to detect.
Congratulations! Your BlocklyProp program is now ready to be modified and used on the ActivityBot 360 to track objects!
If you find BlocklyProp’s Terminal too slow to refresh, you can use Parallax Serial Terminal (PST) instead, which only runs on Windows operating systems. PST’s display may be paused or cleared and also supports multiple font sizes. To use PST:
A Tiny Tutorial video on using PST instead of BlocklyProp Terminal [3] is also available.
Links
[1] https://learn.parallax.com/sites/default/files/content/AB-Blockly/Projects/Pixy2/Pixy2TerminalDisplay.svg
[2] https://solo.parallax.com
[3] https://www.youtube.com/watch?v=AM0FpjLF4dQ