Stepper Motor with three endstop switches

I have 3 humidity soil sensors, 3 endstop switches, an L298N, an DRV8825, an A4988 and an Nema 17 (Yep, I've tried a lot of things). Basicly i want to read the soil sensors and whenever one of the plants needs water the stepper will move until the endstop switch of that plant is pressed and then the water pump is activated, returning to plant 1 after that. It seemed like an easy job but the truth is that I've tried like 4 librarys and I couldnt manage to make the project work. Can somebody help me?

Touch here for the full post on the Arduino Apprentices tumblr

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s