Rotation 2: Arduino - wrafab/taor GitHub Wiki

In the second rotation we dove into Arduino. For the first class, I completed three different projects in the ARDX kit:

Blink

Piezo Element

Servo

I also changed the code for the Blink project, where I set the duration of on/off status to random numbers from 0 to 2000.

Blink Random Time

The code is here.

On the second class, we started our adventure through the Redboard kit, and I followed through the exercises on the guidance booklet.

Redboard 1A

Redboard 1B

Redboard 1C

Redboard 1D

Redboard 3A

Redboard 3B

Redboard 3C

Redboard 4A

Redboard 4B

Redboard 4C

Redboard 5A

Redboard 5B

Redboard 5C

However, in the final project the autonomous robot has a distance sensor pointed at the back of the vehicle, which is not very effective in improving the quality of driving. Thus, I reversed the forward direction of the vehicle and the distance sensor is now pointing at the front of the vehicle. I also shortened the delay time for backing up so that the robot will not back off too much when it approaches an obstacle.

Revised 5C

Now the vehicle can proceed as normal. The new code is here.