Analog joystick controlling stepper motor

AI Thread Summary
An analog joystick is proposed to control a stepper motor and a relay for a secondary circuit, with movement direction influencing motor speed and relay activation. The 68hc12 microcontroller is suggested due to familiarity, but alternatives like the Z8 Encore flash microcontroller are recommended for simplicity and cost-effectiveness. The discussion emphasizes the need for an A/D converter to read joystick positions, with suggestions for using a single channel and implementing a dead band to prevent erratic relay operation. Feedback mechanisms for the stepper motor are noted as potentially unnecessary if only speed and direction are prioritized. Overall, the focus is on finding an efficient and affordable solution for the joystick-controlled system.
frogdogbb
Messages
45
Reaction score
0
Hi all,
I want to use an analog joystick to control a stepper motor and also power a relay which powers a second circuit. When the joystick is pressed side to side I want the stepper motor to turn at a rate dependant upon the position of the joystick. If the joystick is pressed forward or backward I want to close a relay. I want both to be on in the intermediate positions like forward and left ...etc. I am trying to figure out the cheapest and best solution for this. I thought about using a 68hc12 microcontroller with the A/D converter only because I have experience with these. But I am open to easier cheaper solutions. I would like to use C programming. Any ideas on how to get my idea off the ground would be much appreciated. Thanks
 
Engineering news on Phys.org
Sounds like you have a good start.

I'd use one of the joystick buttons to activate the relay, simpler than a 2nd AD.
I don't remember off the top if the 68hc12 has built in AD, but if it doesn't I'd change to a Up that does.
Also you would need a Stepper Controller, the Up won't be able to drive that directly.
And you might need some sort of position feedback from the stepper, unless all you care about is rotation speed and direction.
 
the 68hc12 has an A/D in it. I really need the relay to operate off the joystick so I figured I could just use two channels of the A/D, one for each direction. I don't need a position sensor it is not neccesary.
 
You could probably still get away with one channel AD.
If the joystick centered(null) position is <stop> define the dead band to disengage the relay.
Joystick mechanical centering is kinda sloppy, so you need this dead band anyway to keep the thing from hunting.
 
frogdogbb said:
Hi all,
...I am trying to figure out the cheapest and best solution for this. I thought about using a 68hc12 microcontroller with the A/D converter only because I have experience with these. But I am open to easier cheaper solutions. I would like to use C programming. Any ideas on how to get my idea off the ground would be much appreciated. Thanks


try Z8 encore flash microcontroller, it is programmable in C
8 bit architecture, flashed base RAM..
for more info visit:

www.zilog.com[/URL]
 
Last edited by a moderator:
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top