Breaking the problem into manageable steps:

Here is a step-by-step, top-down analysis of the problem and one possible solution.

     1.       How to make it run forward:


The LEGO Group

2.   How to make it reverse direction after the touch sensor has been pressed:

Tech Guide

 

The LEGO Group

  3.       How to make it turn:

 

 

 

 

 

 

Moving in the opposite direction for 3 seconds and then turning off motor A

 

 


The LEGO Group

    4.       How to make it turn for 1 second and then move forward again:

Tech Guide

 

 

 

 

 

 

 

 

 

The LEGO Group

 

 

 

 Close Window