CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-08-2005, 12:24 PM
JavaDog's Avatar  
Join Date: Mar 2004
Location: USA
Posts: 847
JavaDog is on a distinguished road
Quad-Motor Control - Long Distance

Ok, once again I come to the smart people for electronics help. This isn't related to my CNC machine, rather it is for my Underwater ROV.

I received my motors and I am now working on a way to control them. I would love to use my 4-way analog arcade joysticks (they use cherry switches) for control - or even toggle switches. A software based control would be awesome, but I think that is out of my range right now. Just to make it more difficult, I am limited to 8 conductors on my tether. Three of those are used for the camera/video.

I found some interesting off-the-shelf kits that I think will work for some things. For instance, one motor will be used to vertical control - and for that I was thinking of using this kit. Looks like it will be perfect for the one vertical thruster.

Now, for the other four (or two if that is all I can manage) motors, I had looked at this kit, which seemed ideal (the two wire/10 output control would be excellent) but I don't think it has the power to drive the motors I am using? Correct me if I am wrong? Also, not sure if this kit can drive two (or more) outputs at the same time?

I also found these schematics that another ROV builder had come up with. They look great! They even look like they would work excellent with my motors too and they use cheap old PC joysticks. However, they use PIC chips - which I have no idea how to use? He has the ASM code for the PIC chips, and the chips themselves (actually the whole package) are very afforable - but how do you get the code from a pc to the PIC?? I think this might be the most promising route...

Any new ideas or thoughts would be much appreciated! Thanks guys, I know you will be able to come up with something!
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Check Out My Build-Log: http://www.cnczone.com/forums/showthread.php?t=6452
Reply With Quote

  #2   Ban this user!
Old 08-08-2005, 01:23 PM
Evodyne's Avatar  
Join Date: Dec 2004
Location: USA
Posts: 518
Evodyne is on a distinguished road

Easier than the PICs are the BASIC stamps. Look at the Parallax site. These are programmed in (I'll bet you can't guess) BASIC. Your program on the PC and download to the chip via a serial cable. Actually the chip sits in a motherboard for this-you can pop it out, pop in another one, program it, etc.

The chip configurable I/O pins and can do an A/D converion of sorts. This is how the joystick would be interfaced.

The chips can talk to each other as well! They can communicate via a serial connection (3 wires-transmit, recieve, and ground). To go any distance though you might need a special driver circuit, i.e. line drivers or current loops, etc.

So, for your setup, one joystick/topside chip could send commands to a bottomside chip that would run the motors. Given the number of I/O, it could do more(pan/tilt/zoom/lights on-off).

I've got an older development kit (one motherboard and chip, cable, documentation, etc) I'll donate to your project. The software is free off of the parallax web site. You'd need one more chip and a handfull of other stuff we can figure out to make it talk over a distance. All I ask is that you pay shipping. How's that sound? Email me if you're interested.

Your ROV soulmate,

Lance/Evodyne
Reply With Quote

  #3   Ban this user!
Old 08-08-2005, 01:27 PM
JavaDog's Avatar  
Join Date: Mar 2004
Location: USA
Posts: 847
JavaDog is on a distinguished road

Lance,
I actually have a BASIC Stamp development kit floating around. I got it a while ago, and never played with it. It never even occured to me that I could use them for this project. Heck, I even know how to write BASIC code to boot.

So, is Parallax's website the best source of info for working with these guys?

Would I have to add something like their MotorMind boards, or can I control the DC motors directly like that schematic I posted did with the PIC chips?
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Check Out My Build-Log: http://www.cnczone.com/forums/showthread.php?t=6452
Reply With Quote

  #4   Ban this user!
Old 08-08-2005, 02:03 PM
Evodyne's Avatar  
Join Date: Dec 2004
Location: USA
Posts: 518
Evodyne is on a distinguished road

Originally Posted by JavaDog
Lance,
I actually have a BASIC Stamp development kit floating around. I got it a while ago, and never played with it. It never even occured to me that I could use them for this project. Heck, I even know how to write BASIC code to boot.
Wow! Now you sound like me. Doy!

Originally Posted by JavaDog
So, is Parallax's website the best source of info for working with these guys?
You'd have to browse it and see for yourself-I really haven't played with my kit in quite a while, so I'm not really sure. In general though there are lots of good resources.

Originally Posted by JavaDog
Would I have to add something like their MotorMind boards, or can I control the DC motors directly like that schematic I posted did with the PIC chips?
Do you know what motor drivers those are? I'm guessing they are direction and PWM (pulse width modulation) types. Electrically, yes, you could use these. The problem is that the Stamps are S-L-O-W and probably couldn't handle the PWM signal generation. Motor Minds or similar might be the best bet, as they free the Stamp from needing to worry about any of this.

I did see somewhere where a guy had used stamps in an ROV and had a lot of success. I don't have a link-sorry, but you might google Stamp and ROV and see what pops up.
Reply With Quote

  #5   Ban this user!
Old 08-08-2005, 03:50 PM
JavaDog's Avatar  
Join Date: Mar 2004
Location: USA
Posts: 847
JavaDog is on a distinguished road

Hmm...so I would still need to buy one of the motormind boards to get the basic stamp to do what I want - in addition to a second basic stamp. Those motormind boards are like $40-$50...more than I can spare. I like the idea of the basic stamp (I am going to dig out my kit and play with it regardless)...but maybe not for this case.

It seems like the PIC route, although more difficult (programming wise), is the cheaper alternative? Plus, I have those schematics and code to work from.

I already answered my "how do you program a PIC" question. Seems you can make a serial programming cable for just-about free.

Any other thoughts/ideas?
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Check Out My Build-Log: http://www.cnczone.com/forums/showthread.php?t=6452
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-08-2005, 07:22 PM
Evodyne's Avatar  
Join Date: Dec 2004
Location: USA
Posts: 518
Evodyne is on a distinguished road

J.D,

Vibrator motors? Ten amps? Hmmm. There are so many things I'd like to say, but I'd better not. Hmmm again. Ten amp vibrator motors-he he he.

O.K. Back to reality. Take a look at this site. Might be interesting for you.

I looked at your motor specs. When stalled you can pull 9-10 amps per motor. Think weeds in the props! The L298 chips (the motor drivers) are good for four amps total. :frown: At four amps they will get hot pretty quick. I've attached the .pdf with the specs for the chips. Plus these are just "dumb" H-bridges, you get nothing in the way of overheat shutdown protection, etc. There are better choices.

You might get a trolling motor blade and hook it to a shaft and hook that to your motor. Put an ammeter in series (on the ten amp range), stick the prop in a pool, and drive the puppy with a car or cycle battery. Get a feeling for your current draw-you might be suprised.

Remember that the motor current is going to have to travel up and down your umbilical. Actually the sum of the current for the four motors all together. What gage wire are you using-and how long? You'll want to avoid losses in the cable.

Evodyne
Attached Files
File Type: pdf l298.pdf‎ (187.8 KB, 41 views)
Reply With Quote

  #7   Ban this user!
Old 08-08-2005, 08:47 PM
JavaDog's Avatar  
Join Date: Mar 2004
Location: USA
Posts: 847
JavaDog is on a distinguished road

Originally Posted by Evodyne
J.D,
Vibrator motors? Ten amps? Hmmm. There are so many things I'd like to say, but I'd better not. Hmmm again. Ten amp vibrator motors-he he he.
Ha!

Originally Posted by Evodyne
I looked at your motor specs. When stalled you can pull 9-10 amps per motor. Think weeds in the props! The L298 chips (the motor drivers) are good for four amps total. :frown: At four amps they will get hot pretty quick. I've attached the .pdf with the specs for the chips. Plus these are just "dumb" H-bridges, you get nothing in the way of overheat shutdown protection, etc. There are better choices.
Crap, didn't think of that. If I can make it so that the props shouldn't get fouled - that will help a bit. But still, I get what you are saying here.

Originally Posted by Evodyne
You might get a trolling motor blade and hook it to a shaft and hook that to your motor. Put an ammeter in series (on the ten amp range), stick the prop in a pool, and drive the puppy with a car or cycle battery. Get a feeling for your current draw-you might be suprised.
I will do that and find out where we are...

Originally Posted by Evodyne
Remember that the motor current is going to have to travel up and down your umbilical. Actually the sum of the current for the four motors all together. What gage wire are you using-and how long? You'll want to avoid losses in the cable.

Evodyne
Um, RJ11 cable? I know, I know - I will need new cable. I need to keep the cable around 8mm-10mm dia, and flexible. Any thoughts on gauge?
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Check Out My Build-Log: http://www.cnczone.com/forums/showthread.php?t=6452
Reply With Quote

  #8   Ban this user!
Old 08-09-2005, 06:11 AM
Evodyne's Avatar  
Join Date: Dec 2004
Location: USA
Posts: 518
Evodyne is on a distinguished road

J.D,

Look here for a wire gage vs. current chart. #12 to #14 is "house wire" gage and can handle about 40 Amps. If you bet on never running all four at 100% you might decide to go smaller yet. You can always use tie-wraps to bundle power and data cables together into one unit. I've seen somewhere where a guy placed little floaties so many feet down the length of the cable to keep it neutrally bouyant too. One more thing (and I don't know the answer): not all insulations are equal-some will "waterlog" (bad). Maybe the whole thing (data and power wiring) all needs to go in a protective sheath???

Lance
Reply With Quote

  #9   Ban this user!
Old 08-09-2005, 07:17 AM
JavaDog's Avatar  
Join Date: Mar 2004
Location: USA
Posts: 847
JavaDog is on a distinguished road

Originally Posted by Evodyne
J.D,

Look here for a wire gage vs. current chart. #12 to #14 is "house wire" gage and can handle about 40 Amps. If you bet on never running all four at 100% you might decide to go smaller yet. You can always use tie-wraps to bundle power and data cables together into one unit. I've seen somewhere where a guy placed little floaties so many feet down the length of the cable to keep it neutrally bouyant too. One more thing (and I don't know the answer): not all insulations are equal-some will "waterlog" (bad). Maybe the whole thing (data and power wiring) all needs to go in a protective sheath???

Lance
Well, at most there will be three motors running at once. That would be the one vertical thruster (which will always be on) and both rear motors. I think for simplicity I will start out with three thrusters.

Problem with a lot of those larger gauges is that they are not even close to flexible. I really wonde what companies like VideoRay and SeaBotix do for their tether. They run MUCH higher voltage/amperage than I am, and have a tiny 8mm tether - and I think it is only a 4 conductor. Sadly, can't just call and ask them - for some reason they don't like to give out info like that.
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Check Out My Build-Log: http://www.cnczone.com/forums/showthread.php?t=6452
Reply With Quote

  #10   Ban this user!
Old 08-09-2005, 07:48 AM
 
Join Date: Jun 2005
Location: USA
Age: 34
Posts: 918
Runner4404spd is on a distinguished road

you want to buy wire thats called robotic cable. its very finely stranded and very flexible. we use that in industrial assembly machinery. its not super cheap but its the best stuff out there for freedom of motion.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-09-2005, 09:40 AM
JavaDog's Avatar  
Join Date: Mar 2004
Location: USA
Posts: 847
JavaDog is on a distinguished road

Originally Posted by Runner4404spd
you want to buy wire thats called robotic cable. its very finely stranded and very flexible. we use that in industrial assembly machinery. its not super cheap but its the best stuff out there for freedom of motion.
Thanks. Any idea on where to source it? I'll check google, but I thought you might have known someone with better prices...

I found this from Alpha - is this what you are talking about? I didn't even know stuff like this existed!

EDIT: Holy crap! It is over $3.50 a foot!!
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Check Out My Build-Log: http://www.cnczone.com/forums/showthread.php?t=6452
Reply With Quote

  #12  
Old 08-09-2005, 10:09 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

Another thing to remember is wire current carrying capacity is based on conduit or raceway installations, if a conductor is water cooled or used in a completely different environment, amperage rating changes, the voltage drop will still exist, however.
The larger the amount of strands, the more flexibility but the cost goes up.
Another source is welding cable, but I don't know what gauge they make that down to.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -5. The time now is 10:31 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361