DC Motor Reversal Arduino and Relay and IR

Hi

 

Hi

With the project  'IR-Controlled-DC-Motor -using-Arduino'    (cannot get the link to paste )    it turns the motor on and off with movement.

How do I modify sketch to  reverse the direction of the motor and keep running ?  Using IR detector movement still.

 

Thankyou

Charles Harris

[original story: Circuit Digest]

Circuit Digest 27 Feb 21:57