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 04-08-2008, 07:38 AM
 
Join Date: Jul 2006
Location: USA
Age: 60
Posts: 14
tirebiter is on a distinguished road
Need controller for small DC brush motor

I am looking for a way to control a small 12 volt DC motor (1amp.) driving a model railroad
HO scale rotary dumper. This will rotate a train car for dumping a load of ore than
return to an upright position. The control must start at approximately 8 volts and
when a timed event occurs the voltage goes to 12 volts DC. Another timed event stops
the motion waits 1 second reverses the current and goes to a timed event and drops
to 8 volts DC and continues until tripping a limit switch. At this point the current
is reversed and the sequence is ready to be repeated. I would like to be able to
control both voltage settings and both timed events with trim pots. I do not need
any more than 2 amps capacity. I plan on offering this product for sale to the
public as soon as as I complete and test the dumper.

Can you help me?

You can see the dumper on Atlas HO model railroad forum.

Thanks in advance,
Steve Paul
Reply With Quote

  #2   Ban this user!
Old 04-08-2008, 08:35 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,205
epineh is on a distinguished road
Buy me a Beer?

Hi Steve, to get a better answer a few more details may help, but I will have a go...

I am interested in setting up a small train set for my young son so I have been quietly looking at model train set controllers lately while trying to keep going with current projects

First a couple of questions :

What does the controller consist of ? Will this be part of a DCC system ?

The power side is fairly simple, I would use something like this :

http://www.acroname.com/robotics/parts/R6-754410.html

This H Bridge chip (or one like it) would provide the means to spin the motor as required in both directions. You could also build you own discrete power stage using mosfet's or even transistors. Space constraints will be the major factor.

As for the control of this I would use a micro, something like a small PIC, I think the PICAXE controllers are good for this kind of thing, they use a simple basic instruction set. The other option would be to make your own discrete timing circuit's but IMHO the micro would be simpler to implement.

If this has to tie in with a DCC system then you will have to add whatever bus protocol the model train sets use, a micro would also help here. From what I have read they use some kind of serial comms superimposed over the 12V supply.

Good Luck !

Russell.
Reply With Quote

  #3   Ban this user!
Old 04-08-2008, 08:52 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,205
epineh is on a distinguished road
Buy me a Beer?

I just found your post on the train forum, nice work !

For some reason (maybe as it is late here) I thought you were mounting one of these per truck...now I have a better idea of what you are doing. I still think a micro would provide what you need. It is really a simple finite state process control, if this happens do this, then this, then wait for the process to start over.

What are the different voltages for ? I would think you would want to turn at a constant speed until upside down, hold then return at a constant speed.

Russell.
Reply With Quote

  #4   Ban this user!
Old 04-08-2008, 09:14 AM
 
Join Date: Jul 2006
Location: USA
Age: 60
Posts: 14
tirebiter is on a distinguished road
Smile

Thanks Russell,
Although I will be running my diorama with DCC, the dumper contol will be as simple as possible, being activated by a momentary switch (push or toggle). The full size dumper starts its rotation in a slow speed move until the hold down bars clamp the car to the track at about a 20 degree angle. At this point the dumper inreases speed until it reaches the dumping position at which it stops and hessitates for a second. The motion is reversed and continues until returning to the start possition. The 3 timed events and 2 voltage events need to be tuneable (pots). I made a video and sound recording of a power plant rotary dumper and would like to have a sound file that could be sinked to the cycle of the dumper. I was a coal miner underground repairman for many years and though I had to do electrical work, my main focus was mechanical.

I am looking for someone that can design this and I can allocate $$ or machine work in trade. I also have a CO2 lasar engraving machine.

Thanks,
Steve
Reply With Quote

  #5   Ban this user!
Old 04-08-2008, 11:32 PM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

Hi Steve,

I agree with Russel that a micro would do exactly what you want. I would use the LMD18200 H-bridge with 3A max current. Voltage control using PWM so you can vary the speed of the motor. I could make you a functional 'controller' (PCB design, micro codes, etc) but I'm half way across the world from you :-(

BTW, how fast you want this?
Can you get someone to assemble the board and program a PIC microcontroller?

Regards,
Basir
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-09-2008, 04:59 AM
 
Join Date: Jul 2006
Location: USA
Age: 60
Posts: 14
tirebiter is on a distinguished road

Hi Basir,
Thanks for the info. Your blogs are very informative. I have the ability to assemble a breadboard setup but am not use to working with microprocessors. The programming looks familiar since I studied several languages when I was retrained after the coal mine closed. I will check your website much more in depth in the next couple days. Is there a book or website that you could recommend for me to study up on this subject? I would like to have a functional setup within 2 months. If you can do this let me know how much this would cost. I could assemble the board myself and pay you for the programming help. I still have components to machine to complete this project so I am still several months away from completion.
Thanks,
Steve
Reply With Quote

  #7   Ban this user!
Old 04-09-2008, 05:53 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,205
epineh is on a distinguished road
Buy me a Beer?

I would love to help Steve, but unfortunately at the moment I am swimming in a sea of unfinished projects, it would take me 2 months to get a start on a design.

Basir would do a better job of the program anyway, I am more of a copy and paste kind of programmer

Cheers.

Russell.
Reply With Quote

  #8   Ban this user!
Old 04-09-2008, 08:05 PM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

Hi Steve,

Here's my plan... since I don't do such models, your feedback on my approach is critical... the programming part is easy :-)

I'll used a PIC microcontroller coupled with the LMD18200 chip thus allowing max current of 3A. Instead of voltage control, I'll use PWM to control the motor speed. The controller will have 3 pots and 1 switch.

1. Pot #1: Sets the duty cycle for the 'slow speed'.
2. Pot #2: Sets the number of seconds (T1) for the 'slow speed' mode (allowing 1 to 16s)
3. Pot #3: Sets the number of seconds (T2) for the 'fast speed' mode (allowing 1 to 16s)

When the switch is triggered, slow speed mode will be on for T1 seconds then PWM will go to 100% duty cycle (maximum speed) for T2 seconds. The controller then waits for ?? seconds then reverse the cycle.

Does the above sounds correct?

Any price target you are expecting? Digikey list the LMD18200 for USD14 each thus it will be the most expensive part of the controller.

You can pm me if you wish to take the discussion offline.

Regards,

p/s: I'll be away on assignment until next monday. I may not be monitoring this thread during the period...
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P

Last edited by abasir; 04-09-2008 at 08:21 PM.
Reply With Quote

  #9   Ban this user!
Old 04-10-2008, 04:53 AM
 
Join Date: Jul 2006
Location: USA
Age: 60
Posts: 14
tirebiter is on a distinguished road
Cool

Hi Basir,
This sounds great. I can start assembling components. Which microcontroller will you want to use? $$ are not critical. I have been looking at related websites and understand the duty cycle and speed controll. What kind of pots need to be purchased? I watched the video and the slow speed needs to be aproximately 6 seconds and the fast speed needs to be aproximately 16 seconds. The home position should be controlled with a limit switch so the tracks line up. I would like to control the high speed voltage but I could control this before it gets to the H-bridge. I ordered a Digikey catolog.

I also saw where you could control the limits by using an encoder fastened to the motor to locate postions by counting rotations. Is this a viable alternative or is it too expensive? It is very important to locate the home positon.

Thanks in advance,
Steve

Last edited by tirebiter; 04-10-2008 at 08:29 AM. Reason: More info!!
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
controller for small cnc mill + motor swap (emco f1) slow_rider Benchtop Machines 2 02-21-2008 08:19 PM
Brush Type Servo Motor Source? Lemo Servo Motors and Drives 2 06-20-2007 02:01 PM
Router motor brush problem buscht WoodWorking 3 04-14-2006 07:34 AM
Brush Servo Motor Sources? bsc52001 DIY-CNC Router Table Machines 4 05-19-2004 09:40 AM
DC brush servo controller peterklos General Electronics Discussion 3 12-05-2003 11:01 AM




All times are GMT -5. The time now is 11:08 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