how to use an arduino as a motor speed controller code example Example: how to code dc motors Watch https://www.robolink.com/programming-the-dc-motors/