Show Posts
Pages: 1 ... 22 23 [24] 25 26 27
346  Using Arduino / Motors, Mechanics, and Power / Re: Potentiometer Controlled Motor with Feedback on: November 27, 2012, 08:55:23 pm
well i think i just spoonfeed you all the answer... haha anyway please show me your progress if you ever did the project...
347  Community / Gigs and Collaborations / Re: Programming Help on: November 27, 2012, 05:42:03 pm
pm me what your requirement and we could make something work ok
348  Community / Gigs and Collaborations / Re: Programming Help on: November 27, 2012, 07:56:42 am
urm i maybe could help you. i live in malaysia.
349  Community / Gigs and Collaborations / Re: Wanted: Build desktop device that moves a camera at a precise speed [$$ for you] on: November 27, 2012, 07:45:19 am
sorry i a had send you a pm b4, so i would like to make an offer for you now, the cheapest i could think of now is to use pvc as the main building material, with me doing for you i would give you the complete set of technical drawing, from the mechanical , electrical, electronic and the software program for you to post on your blog, if you need to i will also include some picture of me building it, and during the construction phase i would regularly send you update on the project phase. are there any requirement for the project to be super cheap or you don't mind as long as it is according to your spec?

ouh yeah for my qualification, I am a mechatronic graduate in one of a well know school in Malaysia, work for 2 years in the Automation industries , my specialty is on mechanical and programming  and now continuing my sturdy in Industrial Automation.
350  Using Arduino / Motors, Mechanics, and Power / Re: Potentiometer Controlled Motor with Feedback on: November 27, 2012, 04:08:35 am
well what you could do is to use what AWOL suggest, by using the map function. by mapping the speed to the differences between the 2 pot.

Quote
if (A>B)
{
  int Difference= A-B;
  int Speed= map(Difference,0,1023,0,MAX);
  analogWrite(Speedpin,Speed);
}
if (A<B)
{
  int Difference= B-A;
  int Speed= map(Difference,0,1023,0,MAX);
  analogWrite(Speedpin,Speed);
}


351  Using Arduino / Motors, Mechanics, and Power / Re: What kind of power do i use for this arrangement? on: November 26, 2012, 05:24:03 am
Quote
Arduino = 12V (40mA)
Repellers = 6V + 6V= 12V (200mA +200mA = 400mA).

do you know that arduino can be powered from as low as 7vdc to a max of 12vdc. since its going to be a mobile setup, why waste your precious power giving the arduino 12VDC.

the repeller part when you say 6 v +6V it means your hooking it up in series. but then when you did the current calculation, it means that your hooking it up in parallel. so which one is actually your setup?
352  Using Arduino / Motors, Mechanics, and Power / Re: Arduino Motor Shield Stepper Motor control with Joystick on: November 26, 2012, 02:48:37 am
noisyvoid thanks for varying the code. Urm for TheBlommie sorry if i didnt not help you much...
353  Using Arduino / Motors, Mechanics, and Power / Re: Arduino Motor Shield Stepper Motor control with Joystick on: November 25, 2012, 07:02:15 am
Ok i get your code now..

urm lets see ok,
Code:
int Pot1 = 0;
change that to
Code:
int Pot1 = A0;

this should do it
354  Using Arduino / Motors, Mechanics, and Power / Re: Coin segregation using motors - need help on: November 25, 2012, 05:01:57 am
Im with the two guys above me, servo. design one seem like a more feasible way to do it
355  Using Arduino / Motors, Mechanics, and Power / Re: Arduino Motor Shield Stepper Motor control with Joystick on: November 25, 2012, 04:59:42 am
Btw i would also like to suggest to you that, you pun 2 home sensor, this could be a simple limit switch or the type that use light sensor to detect your carriage on both end of the travel. this would help if let say your carriage at it end but you keep giving it the signal to go forward. although for a stepper this will not cause lots of trouble since if the motor will stall if it cant move the carriage but it might or could shorten the life of the motor... so putting the sensor will save it n give the motor a much longer life and reliability 
356  Using Arduino / Motors, Mechanics, and Power / Re: Arduino Motor Shield Stepper Motor control with Joystick on: November 25, 2012, 04:49:39 am
well ok i had the chance to study the code, From what i can say is that the code have some part that need to be change for instant
Code:
const int spr = 200; // motor steps per revolution
this part is the part which dictate how much step the stepper would take to complete a  rotation.
i would recommend to you to put the total number of step it take for your set up form its start position on the far left to the far right or vice versa. How ever this is not something that is really must needed and you could actually make it variable.... maybe by making use of the other axis of your joystick?

anyway part that really control the speed of your setup is this one
Code:
stepper.setSpeed(75);

this is the part that call for the speed of how fast the stepper rotate.
if my understanding of your project is correct, this part need to be implemented in the loop function and now the setup function cause it need to be variable. However before you impliment any of the changes that i suggest, i would recommend that you play with the value 75 that is in the code with something that is higher up until the point your motor stall. This would mean, that the value you got there is the max speed that the stepper could go. one more thing is would also suggest that you do this with the full load of your setup. this is to make sure that you get the most accurate value for your setup and not just something that is calculated or theoretical.

ok now for the pseudo code ( only the loop part but i thing you would get the idea well)

Code:
void loop()
{
  PVal=analogRead(Pot1);
  if (PVal >= 507 || PVal <= 517)
  { // fill in with the one you need to make it brake
  }
  if (PVal > 517 )
  {
    int K= map (Pval, 518,1023,0,MAX); /* max is the value that you get from your experiment with the max speed of the stepper before stalling*/
     stepper.setSpeed(K); this set the speed of the stepper motor
     stepper.step(spr); this set the direction and the number of step it would take
   }
 if (PVal < 507 )
  {
    int K= map (Pval, 0,506,0,MAX); /* max is the value that you get from your experiment with the max speed of the stepper before stalling*/
     stepper.setSpeed(K); //this set the speed of the stepper motor
     stepper.step(-spr); //this set the direction and the number of step it would take
   }
 

this should help you with your project anyway keep us posted and if you be kind enough to send us a link to a you tube showing how it work would be great .
357  Using Arduino / Motors, Mechanics, and Power / Re: Potentiometer Controlled Motor with Feedback on: November 24, 2012, 10:15:19 pm
thanks AWOL i didnt notice that
it should have been
Code:
if (Set == HIGH)
{
}

Thanks again
358  Using Arduino / Motors, Mechanics, and Power / Re: Arduino Motor Shield Stepper Motor control with Joystick on: November 24, 2012, 09:59:40 pm
well what you need to do is to divide the value of a pot into half
so i would say that 507 until 517 is a good middle value.
then take the value between 517 until 1023 and map it with the min and max of the stepper speed.
after that take between 0 to 507 value of pot n map it with the min n max of the stepper speed.
third is that determine which side of the pot make the stepper move clockwise. what i give here should give you an idea on how to do it
359  Using Arduino / Motors, Mechanics, and Power / Re: Arduino Motor Shield Stepper Motor control with Joystick on: November 24, 2012, 09:51:56 pm
the answer for your question is located here
http://arduino.cc/en/Tutorial/MotorKnob
360  Using Arduino / Project Guidance / Re: Elevator (motor + distance sensor) on: November 24, 2012, 10:46:03 am
A senior of mine once did this project for his senior years, What he did what well one is that he use a couple of strip of black and white paper located at each level and a sensor on the elevator itself to know which floor it is now. for the stopping part he uses a metal strip located at 3 point at the elevator shaft and only 2 light sensor the one that have a beam of light that must be block to make it work .the function of the metal strip, one is to tell the elevator that the level is approaching so slow down. second is the stop position and 3rd is to tell the elevator to now run full speed. but i do think that 2 is enough. just use the falling edge of the stop sensor to start speed up rite.... and the rising edge if the we are near sensor to slow down. i hope my explanation help you in your project 
Pages: 1 ... 22 23 [24] 25 26 27