Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: BANE on February 23, 2008, 09:20:03 PM

Title: manual controlled mill
Post by: BANE on February 23, 2008, 09:20:03 PM
hello, i need some help and advise on making a mill controller.  I'm using three 12vdc motors (small mill) and want to control them using a joystick I got out of a airplane controller (two potentiometers, X & Y).  Everything is going to analog and farley simple.  I want to have to motors speeds vary on how far the joy is pushed.  I'm guessing that i would have a series of transistors and diodes or H-bridge.  I can make to pots control the motors in only one direction.  I need help on how to make it where i get control both directions and proportional speeds.

check out pics ;)

bane
Title: Re: manual controlled mill
Post by: airman00 on February 23, 2008, 09:48:25 PM
well with a microcontroller you would take an ADC of the joystick pots, and generate a PWM to the H bridge based on the resistance of the pots

Like if the ADC was 122 ( of an 8 bit conversion)  thats halfway so you would give a PWM of 50%
Title: Re: manual controlled mill
Post by: BANE on February 23, 2008, 10:04:49 PM
I'm trying to build something simular to this, only use my joy instead.

http://www.hobbyengineering.com/CatEKMOT.html (http://www.hobbyengineering.com/CatEKMOT.html)

any idea what the schematics might look like?

bane
Title: Re: manual controlled mill
Post by: airman00 on February 23, 2008, 10:07:00 PM
I'm trying to build something simular to this, only use my joy instead.

http://www.hobbyengineering.com/CatEKMOT.html (http://www.hobbyengineering.com/CatEKMOT.html)

any idea what the schematics might look like?

bane

http://info.hobbyengineering.com/specs/DIY-k166.pdf (http://info.hobbyengineering.com/specs/DIY-k166.pdf)

datasheets man! Its all in there
Title: Re: manual controlled mill
Post by: BANE on February 23, 2008, 10:20:02 PM
ha, just as you posted that i just came back to say i found it! :D. only it was a different website

thanks!

bane
Title: Re: manual controlled mill
Post by: BANE on February 23, 2008, 11:07:27 PM
You know the more I look into this, it would be cheaper and easier to use my microcontroller and a H-bridge  :D

bane
Title: Re: manual controlled mill
Post by: airman00 on February 23, 2008, 11:17:33 PM
You know the more I look into this, it would be cheaper and easier to use my microcontroller and a H-bridge  :D

bane

hmmm that sounds familiar  ;)
well with a microcontroller you would take an ADC of the joystick pots, and generate a PWM to the H bridge based on the resistance of the \



and it would be cheaper
Title: Re: manual controlled mill
Post by: ed1380 on February 23, 2008, 11:43:24 PM
2 servo's man. replace the pots of the servo with the joystick and solder your motors on instead of the old ones. you still might need to use transistors/mosfets to beef up the controller board
Title: Re: manual controlled mill
Post by: airman00 on February 24, 2008, 12:08:01 AM
2 servo's man. replace the pots of the servo with the joystick and solder your motors on instead of the old ones. you still might need to use transistors/mosfets to beef up the controller board

sounds good .... in theory


the pots would have to match  and there might be other problems that will pop into my head tomorrow

good night US east coast!  ;)
Title: Re: manual controlled mill
Post by: BANE on February 24, 2008, 12:03:32 PM
So if that would work, i would have to modify the servo to handle 9.6v or does it matter since im replacing the motors?

Another thing, I would have to generate a pulse simular to what a microcontroller would do only with out it.

bane
Title: Re: manual controlled mill
Post by: airman00 on February 24, 2008, 12:10:07 PM
the circuit in the servo can only hold up to 7.2V ( really supposed to be 6V)
Title: Re: manual controlled mill
Post by: BANE on February 24, 2008, 01:09:43 PM
I know, but can you modify it?

bane
Title: Re: manual controlled mill
Post by: paulstreats on February 24, 2008, 01:15:26 PM
I would stick to using motors personally, ideally stepper motors. You would need a controller mcu to use it properly but it would mean that you can work on making it computer controlled at a later date without having to setup encoder etc..
Title: Re: manual controlled mill
Post by: BANE on February 24, 2008, 01:35:20 PM
I have three stepping motors I got from a print/scanner.  I guess its worth a shot, however, the motors that i got only have 4 pins, most of the stepping controllers that i've seen require at least 5 pins.....  any ideas?   I have a microcontroller and if I could get three stepper controllers it wouldn't be to hard to make.  Just a thought, i have the BOT BOARD II w/ BASIC ATOM 28 pin, I could even control it using a PS2 controller...  sweet!

any suggestions where to get three cheap stepping motor controllers (4 pin)?

bane
Title: Re: manual controlled mill
Post by: ed1380 on February 24, 2008, 04:07:24 PM
those are bipolar motors.

Title: Re: manual controlled mill
Post by: paulstreats on February 24, 2008, 04:28:42 PM
a lot of normal motor full-bridge ic's can control stepper motors. Also you can use darlington driver ic's or just h-bridge type set up with mosfets. Its better to build your own than buy an expensive driver
Title: Re: manual controlled mill
Post by: BANE on February 26, 2008, 06:17:24 AM
is this the type?

http://www.hobbyengineering.com/H1143.html (http://www.hobbyengineering.com/H1143.html)

if so, they seem pretty cheap to me :D

But, no idea how the schematics would look. :-\

bane
Title: Re: manual controlled mill
Post by: BANE on February 26, 2008, 06:23:22 AM
i just found this.

http://www.electronicsinschools.org/page.php?ps=2&p=11 (http://www.electronicsinschools.org/page.php?ps=2&p=11)

i still don't know how to set it up to control a bi-polar using microcontroller though.

bane
Title: Re: manual controlled mill
Post by: paulstreats on February 26, 2008, 07:08:22 AM
the uln 2003 seem ideal. I'll see if i can find a diagram for using it with a stepper motor, i saw one last week.

You will probably need one of the darlington arrays for each stepper. They are easy to use with a microcontroller
Title: Re: manual controlled mill
Post by: BANE on February 26, 2008, 05:10:17 PM
Thanks, i would appreciate it :).   He is a pic i found google, i'm guessing i'd make something similar.

(http://bono02.files.wordpress.com/2007/07/stepperx.jpg)

bane
Title: Re: manual controlled mill
Post by: Admin on March 01, 2008, 10:26:48 PM
I'd recommend using potentiometers with knobs instead of your joystick idea.

This way you can get much easier and more precise/repeatable control over the motion.

Easier to interface, too.
Title: Re: manual controlled mill
Post by: BANE on March 02, 2008, 08:09:09 PM
Well I was thinking that i would use the joy with a microcontroller to operate.  I would have the microcontroller control the H-bridges.  I don't know much on getting the microcontroller to take direct readings from a pot, but i know theres code for the PS2 joy.  Besides, i think it would be fun. :D

bane
Title: Re: manual controlled mill
Post by: airman00 on March 02, 2008, 08:13:56 PM
it would be simple analog to digital conversion for the pot
Title: Re: manual controlled mill
Post by: BANE on March 03, 2008, 05:27:39 PM
but wouldn't that mean that I would have to get some kind of convertor of some sort = $$$$.    PS2 controller = $20.00

i have to amit, i dont know to much about this but it seems more logical to me :\

bane
Title: Re: manual controlled mill
Post by: airman00 on March 03, 2008, 08:07:11 PM
microcontrollers have built in analog to digital ,no extra $$$ needed