I need help controlling a stepper with RC and limit swiches

new here sorry for all the noob but I seem to be at a loss. here is what I'm trying to do.

I would like to control a stepper motor off one RC receiver channel on a 2 position switch. position I would like it to move to an end stop and stop then when the switch is flipped to position 2 I would want the stepper to reverse direction and come back and hit an end stop.

I am very new to this I did get my RC TX and RX working and switching the led one pin 13 with a uno to day that was a big success of the day

I cant seem to find an easy way of doing this I cant seem to find any thing here that would do this but I think I'm probably not experienced enough to find what I'm looking for any help would really help me thank you

I also need to know what products I should buy I am thinking the easy driver from spark fun I have an uno but if there is a smaller lighter way of getting this result I would love to hear it

If you can receive the data from the RC system and cause an LED to turn on and off then the stepper code should be straightforward.

Use the RC data to cause a variable (perhaps call it stepDirection) to have the value 'R' or 'L'.

Then your stepper function would be something like this pseudo code

void stepperMove() {
  if stepDirection  == 'R' && rightLimit == HIGH // assumes LOW when pressed
    single step to the right
    check right limit switch

 // and similar for the other direction.
}

...R
Stepper Motor Basics

great I thought that would be something like that but then comes the noob in me would I hook the limit swich to the analog portssay 1 and 2 then supply current from 3.3v tab on the uno i dont know how to make swiches work ?

The limit switches should connect to the digital I/O pins. If you use pinMode(pin, INPUT_PULLUP); (which is recommended) then the switch should connect the pin to GND when it is pressed. Then digitalRead(pin); will return HIGH when not pressed and LOW when pressed.

You can use the analog pins as digital I/O pins.

You have not said what type of switches you plan to use. Regular microswitches are commonly used and that is what I have assumed, but you could also use a slotted-optical-switch.

...R

I will be using a plain old micro-switch

I just went ad got a uno starter kit and the adafruit motor party for some learning so that might help you help me knowing what I got

I do plan on using a single stepper driver off the uno but this is what they had at microcenter