Code not looping properly

You can not use resistors to reduce the voltage for power hungry devices like motors. It only works for signals (data), not power.

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project :wink: See About the IDE 1.x category.

Thanks for using code tags in your first post.