You want to hook this 2-potentimeter-Joystick up to what?
Directly to 2 motors (one X and one Y-axis)?
If you could elaborate and explain your project a bit, we could probably better help you...
If you want to use ONE axis of the joystick to drive a motor from 0-100% thats not too big of a problem... a simple passive PWM it even a BJT would suffice.
Direction is an added complication which would need a H-Bridge configuration and switch over @ 50% of the Joystick... I dont know out of the top of my head a simple solution to that in discrete logic, but i have thought about it for like 10 secs only
So may i ask you to describe a bit more what you want to achieve with this thing?
Is it like a potentiometer and
- 0-50% on the potentiometer is 100% to 0% backward on the motor
- 51-100% on the potentiometer is 0% to 100% forward on the motor
If you would then multiply the circuit for a second motor and hook up to the other potentiometer of the joystick, it could in theory do your X & Y...
Without a microprocessor (Would be just a few lines of code, but i respect your drive to go discreete here) it could be something like the last schematic in this thread: https://electronics.stackexchange.com/q ... -rotations
Or 2x www.electrokit.com/uploads/productfile/12312/M027.pdf and just wire-out your joystick-potentiometers to this... Ah... Direction control is done with a switch...
Maybe something like a MAX14870 but you would need a discreet logic to convert the 0..100% from the Potentiometer to +100%...0...+100% in PWM and a switchover in the direction-Input...
Really, i truly believe, a small micro code would be 1000x simpler and easyer to debug and would simplify the electronics massively as well...:
Tinkerer by heart, archer by choice and electronics engineer by trade.
- Posts: 1356
- Joined: Sun Aug 16, 2020 5:32 am
- Location: Australia
A simple motor speed controller can be yours online for as little as 3 bucks - no clue though how much current YOUR motor might need.
Means for ONE direction you could match what the joystick provides to the potentiometer on the motor driver.
If you need forward and reverse with adjustable speed you will need some coding like in the post above or a dedicated H-bridge driver for the motor.
But before we can go into any meaningful things I guess we need an answer first:
What sort of potentiometers are used in the joystick ????
Am asking as there is two types.
First the classic type, which is either a standard potentiometer in a fancy package OR a TWO WAY potentiometer.
Then the never, self centring types, which are usually also TWO WAY.
Of course there is also the heavy duty arcade and industrial type of joysticks.
Here you often have mechanics doing the forces and centring while FOUR potentiometers are used but they are rather costly and hard to find these days...
Do you get a LINEAR resistance change from one side of the axis to the other?
Or does the resistance go from max to zero, then to max again when reaching the other side ?
To tinker and create means to be alive.
Bringing the long lost back means history comes alive again.
Users browsing this forum: No registered users and 5 guests