Table of Contents

AdvanceLineFollowing()

Function Definition: AdvanceLineFollowing(ir_num = 2)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
ir_numintThis configuration ensures the sensors are properly aligned for advanced line-following control.2,32

Description

Initialize Line Following
To set up advanced line following once the circuits are connected to Quarky, follow these guidelines:

– During initialization, if you use two IR sensors for line following, connect them to analog pins on Quarky.
– If three IR sensors are used for line following, connect the sensors to digital pins instead.

This  function ensures the sensors are properly aligned for advanced line-following control.

Syntax :

from quarkyAdvanceLineFollowing import AdvanceLineFollowing calibrateir() 

linefollow = AdvanceLineFollowing(IR_NUM = 2)

The configurations of IR Sensors can be used for Line Following:

  1. Using two (02) IR Sensors (analog pin connections only)
  2. Using (03) IR Sensors (digital pin connections only)

Example

There are no examples documented for this article.