Page 4
KIPR Link Library Functions for DC Motors ____________________________________________ 22
Other Functions Commonly Used With the KIPR Link ___________________________________ 23
4.
KIPR Link Vision System ______________ 24
About Color Vision Tracking and QR Codes _____________________________________________ 24
Setting Up KIPR Link Color Tracking Channels ___________________________________________ 25
Setting Up a KIPR Link QR Scanning Channel ____________________________________________ 27
Verifying Channel Behavior __________________________________________________________ 28
KIPR Link Vision Library Functions ____________________________________________________ 28
Sample color tracking program controlling a servo motor __________________________________ 30
Set Up ________________________________________________________________________ 30
Code _________________________________________________________________________ 31
Sample color tracking program controlling motor lights ___________________________________ 32
Set Up ________________________________________________________________________ 32
Code _________________________________________________________________________ 33
Sample program for decoding a QR code _______________________________________________ 34
Code _________________________________________________________________________ 34
5. Troubleshooting ____________________ 35
6. Appendices ________________________ 38
Updating the KIPR Link Firmware _____________________________________________________ 38
Controlling an iRobot Create with the KIPR Link _________________________________________ 39
iRobot Create KIPR Link Library Functions ______________________________________________ 40
Sample Program for Controlling an iRobot Create with the KIPR Link _________________________ 43
Set Up ________________________________________________________________________ 43
Code _________________________________________________________________________ 43
Writing an iRobot Create Script ______________________________________________________ 44
Example _______________________________________________________________________ 45
Code _________________________________________________________________________ 45
Sample Program for Using KIPR Link Digital Output to Light an LED __________________________ 48
Setup _________________________________________________________________________ 48
Code _________________________________________________________________________ 48
Sample Program Using a Thread for Monitoring a Sensor __________________________________ 49
Code _________________________________________________________________________ 49