ABSTRACT:We provide a set of projects to put in practice artificial intelligence techniques using LEGO Mindstorms in an undergraduate computer degree, covering reactive and deliberative agents, rule-based systems, graph search algorithms, and planning methods. The projects have been applied for teaching in a third-year undergraduate subject of a computer engineering degree at the University of Granada (Spain). After the contextualization and development of the projects, we discuss the results, advantages, and drawbacks of our experience. ß