Go Down

Topic: how to store different values of a pot to be called up latter? (Read 3511 times) previous topic - next topic

ElChiguete

Maybe you can help me out with my project? I'll send you a PM.

Soffer

ElChiguete I would be happy to assist. Since I'm new at this I can only hope to be able to help. Let's do this here so all can benefit.  :)

ElChiguete

Ok. Based on your project instead of ¨storing¨ a moving servo it would be like storing a couple of fix positions of that servo instead of the actual movement and recall them thru your switch (I want to store them in individual buttons).

Soffer

So then, if I understand correctly you need to create variables containing the values (i.e. servo positions) and than create an "if.. else if" structure corresponding to each switch that is being pressed. Each switch sends out a different value to the servo. Seems fairly easy. BTW you can check my progress on my code over here:http://arduino.cc/forum/index.php/topic,96056.0.html. This could maybe help you

Go Up