The code in this project enables an Arduino board (Arduino UNO - new boards have not been tested yet) to autonomously solve two problems:
- Line tracking
- Labyrinth scape
The arduino board is equipped with four sensors: CNY70 for line tracking and GP2D05 for obstacle detection. Each one has its own library, CNY70 and GP2D05. Both libraries inherit from an abstract sensor class defining the minimum capabilities of a sensor, i.e. pin connection and activation trigger.
The servo library is an extension from the standard Servo, that enhances servo rotation capabilities.
The protothreads(Pt) library allow for pseudo concurrent execution by yielding function calls. Pt were created by Adam Dunkels, under the open source BSD-style license.
See code
See code
All code can be found in spanish, no translation to english is expected to come in the short term unless requested. Code was developed in 2014 and hasn't been updated since then.