Comments: Light-Seeking Robot


Comments 4 comments

  • The code has analogWrite to pins 8 and 13. Those are not PWM pins on the RedBoard. I wanted to slow the motors down to stop them from slipping on the wood floor. This didn’t work until I moved pin 8 to pin 3 and pin 13 to pin 5. Then I could slow the motors.

    • Wow, good catch! I’m not sure how I managed to do that…the hardware shows the PWM pins using pins 8 and 13, too. I’ll go back and fix these as soon as I get a chance.

  • Is there a way to use this a a solar panel sun tracker in rotation on a pole support. And possibly azimuth as well?

    • I don’t see why not! You’d have to change a good bit of the code, though, as you’d probably want to use servos/stepper motors instead of the DC motors.

If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!