Ping Pong with the AccelStepper library and two limit switches - Polling and interrupts

In this video I show you two ways of using 2 limit switches to bounce the stepper motor-moved linear carriage between some arbitrary positions. I show you how to set up everything and I show you and explain both software. Join my channel membership:    / @curiousscientist   Check this video for wiring and further instructions:    • TB6600 and Arduino - Wiring and demonstration   Source code: https://curiousscientist.tech/blog/pi... AccelStepper's website: https://www.airspayce.com/mikem/ardui... If you want to support my work, please consider buying the parts using my affiliate links: https://curiousscientist.tech/tools