12v dc motor with joystick control for speed and direction

Electronics and electrotechnical stuff
Post Reply
Paul
Hacksaw
Posts: 1
Joined: Thu Nov 02, 2023 4:11 am
Contact:

12v dc motor with joystick control for speed and direction

Post by Paul »

Hey there. As a newbie, is there a wiring diagram or such that shows how to wire up a 2pot joystick. I want to be able to control speed and direction of a simple 12v dc motor. No arduino as I'm not a coder at all. I want it to run x and y axis.
User avatar
Orngrimm
Site Admin
Posts: 436
Joined: Wed Jul 29, 2020 8:02 am
Location: Switzerland
Contact:

Re: 12v dc motor with joystick control for speed and direction

Post by Orngrimm »

Hello there

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

Edit1:
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

Edit2:
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...

Edit 3:
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...:
Image
Builder of stuff, creator of things, inventor of many and master of none.
Tinkerer by heart, archer by choice and electronics engineer by trade.
Downunder35m
Laser-sculpter
Posts: 1356
Joined: Sun Aug 16, 2020 5:32 am
Location: Australia
Contact:

Re: 12v dc motor with joystick control for speed and direction

Post by Downunder35m »

Not sure about where we are going here but there MIGHT be an easy way out.
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...
So:
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 ?
Exploring the works of the old inventors, mixng them up with a modern touch.
To tinker and create means to be alive.
Bringing the long lost back means history comes alive again.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests