Previous in Forum: Chewing Gum   Next in Forum: Limo Jet
Close
Close
Close
6 comments
Rate Comments: Nested
Anonymous Poster

How do I use a joystick to contol two step motors?

04/10/2006 4:10 PM

Dennis writes:
I have a joystick from All Electronics, how do use it to control a light arrangement that needs to go vert. and horiz.?

Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Anonymous Poster
#1

You ask a lot!

04/11/2006 8:29 AM

I assume this is an analog joystick, which is essentially two 100K Ohm pots orthogonally mounted. If so, then I further assume that you want proportional speed control for each motor. So when the joystick is pushed in one direction or another the motor steps as a faster rate.

The most eloquent way is to use microcontrollers so you can map either a proportional or a non-linear progression for the joystick position versus motor speed. Microchip has a number of products that are designed for motor control. There are off the shelf counterparts that drive stepper motors, too. You could cobble together something that way, too.

I don't have the time to teach you motor control theory and software programming, so I defer you to the Internet. Search on stepper motors and understand how they function and the different types. Then search on proportional, Integral, derivative control algorithms and focus on the proportional end of that.

The Microchip website has a number of Ap Notes that may help with the physical hardware and the software end of the project.

My guess is that you will probably decide that it is much too complex before you get through the stepper motor theory, but I have no idea of your domain knowledge nor your determination. Based on your question it sounds like you not well versed on the subject. If you are well heeled you might consider contracting your idea with someone or some company that specializes in these things. If you are not and have a lot of time and curiosity, by all means DIY. It is a great learning experience, but you need to apply a lot of research to get there.

Reply
Anonymous Poster
#2
In reply to #1

Re:You ask a lot!

04/11/2006 9:39 AM

HI, Of course the best way is to do it yourself and also remember to take it one step at a time since your a new comer to motor control. You would need to do some research in motors, PWM (pulse width modulation) and as a beginner I would recomend using 555 timers or 556 and an array of mosfets before trying to challenge Microchips MPUs. The MPUs are the best way but you will spend more of your time in trying to control the MPU than the motor. I've programmed MPUs for years and trust me it's challenging at first. Try this site: www.epanorama.net They have a lot of information on motor control. Use your on filter and determine which method you would want to use. GOOD LUCK Hope this helps.

Reply
Power-User

Join Date: Jun 2005
Posts: 104
#3
In reply to #2

Re:You ask a lot!

04/11/2006 10:49 AM

If you hooked up a 555 as a clock to a flip-flop circle-state array, used the joystick resistors as part of the timing circuit, couple mosfets to do the dirty work, and voila: You got yourself a stepper motor controlled by a joystick.

Reply
Anonymous Poster
#4
In reply to #3

Re:You ask a lot!

04/13/2006 1:17 AM

That was the answer I was looking for, I have been using a series of 555's, but the problem I have been having is CW rotation is great but CCW is slower, I have no reason to think it is the motor assembly and I do not have it hooked up to anything yet. Thats the reason for the inquiry. Incidently I am a Wireless nut, I repair and program two way radio's and maintain 911 communication systems in Tacoma area, Washington. Thanks Dennis

Reply
Anonymous Poster
#5
In reply to #1

Re:You ask a lot!

04/13/2006 1:21 AM

You really need to be not so negitive in your comments. Thank you for your input I will consider the information. jmetsdad

Reply
Participant

Join Date: Mar 2008
Posts: 4
#6
In reply to #1

Re: You ask a lot!

03/25/2008 5:39 PM

what are you on here to teach sometimes in life the simplest is the most difficult things

Reply
Reply to Forum Thread 6 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (4); halcyon_m (1); hricks (1)

Previous in Forum: Chewing Gum   Next in Forum: Limo Jet

Advertisement