Pages: 1 2 [3]   Go Down
Author Topic: how to store different values of a pot to be called up latter?  (Read 2969 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Full Member
***
Karma: 0
Posts: 170
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.  smiley
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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).
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 170
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: 1 2 [3]   Go Up
Jump to: