Minnesota!
Offline
Sr. Member
Karma: 0
Posts: 353
I'm on YouTube! Search AKSoapy29
|
 |
« on: January 18, 2011, 06:09:20 pm » |
Hi. This is my first time experimenting with transisters, so I thought this project was pretty fun. Basically I'm controlling a dc motor (The speed,) through a transister and a pwm pin. I made a page on my website the shows you how to do it. https://sites.google.com/site/arduinosoapy29/motor-speed-controller You can also run relays to! 
|
|
|
|
|
Logged
|
|
|
|
|
Phoenix, Arizona USA
Offline
Faraday Member
Karma: 27
Posts: 5082
Where's the beer?
|
 |
« Reply #1 on: January 18, 2011, 11:31:25 pm » |
Yeah - its always fun to see your first motor control program work (back in my day, I used an Amiga's parallel port and 68000 assembler). Something else to try is to use that 2n2222 to control a 2n3055, then use that to control a much larger motor or device (with an appropriate heatsink, of course).
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15314
Measurement changes behavior
|
 |
« Reply #2 on: January 18, 2011, 11:35:01 pm » |
Nice start. You should however reconsider your choice of words 'high power' when utilizing a 2N2222A transitor. ;D
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Phoenix, Arizona USA
Offline
Faraday Member
Karma: 27
Posts: 5082
Where's the beer?
|
 |
« Reply #3 on: January 18, 2011, 11:56:00 pm » |
Nice start. You should however reconsider your choice of words 'high power' when utilizing a 2N2222A transitor. I wonder if you can still find a TO-18 package 2N2222? If so, you could thermal glue a TO-18 heatsink on it, perhaps force cool it, and "overclock" that sucker...! ;D
|
|
|
|
|
Logged
|
|
|
|
|
Minnesota!
Offline
Sr. Member
Karma: 0
Posts: 353
I'm on YouTube! Search AKSoapy29
|
 |
« Reply #4 on: January 19, 2011, 04:24:23 pm » |
Maybe. But how do I get the motor to run backwards?
|
|
|
|
|
Logged
|
|
|
|
|
Tacoma, WA
Offline
Full Member
Karma: 3
Posts: 179
Arduino rocks
|
 |
« Reply #5 on: January 20, 2011, 12:46:39 pm » |
Ahh, I've been doing the same kinds of experiments myself lately. To go backwards as well as forwards, you need to build an "H-Bridge". I've built 3 or 4 different designs of H-bridges in the past week. I recommend this one: http://www.bobblick.com/techref/projects/hbridge/hbridge.htmlI've got a couple of those built now. I'd recommend building it on a breadboard first, because I know I sure had a lot of trouble keeping my Bases, Collectors, and Emitters straight on perfboard until I had the circuit built on a breadboard and could just clone it onto perfboard. That H-Bridge uses maybe $5 worth of parts, and is good to something like 8amps. Point the backs of the darlington's outward, so you can put heatsinks on them if they start to produce heat, that will allow you to get a couple more amps out of them.  Good luck.
|
|
|
|
|
Logged
|
Brian from Tacoma, WA Arduino evangelist - since Dec, 2010.
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 3
Arduino rocks
|
 |
« Reply #6 on: January 20, 2011, 12:59:29 pm » |
Yes, like UnaClocker said, there are several designs for H bridges, even with electromechanical relays.
But I believe there's a simpler "H bridge" with transistors, have you tried this one UnaClocker: (on my next post)
There's no much science behind it, and it only takes 2 transistors. If you're playing with motors up to 2Amps, I would recommend both the TIP122 NPN and the TIP127 PNP.
Regards,
Ulysses L.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 3
Arduino rocks
|
 |
« Reply #7 on: January 20, 2011, 01:01:04 pm » |
Here's the "H bridge" with only 2 transistors: 
|
|
|
|
|
Logged
|
|
|
|
|
Tacoma, WA
Offline
Full Member
Karma: 3
Posts: 179
Arduino rocks
|
 |
« Reply #8 on: January 20, 2011, 01:08:18 pm » |
|
|
|
|
|
Logged
|
Brian from Tacoma, WA Arduino evangelist - since Dec, 2010.
|
|
|
|
Phoenix, Arizona USA
Offline
Faraday Member
Karma: 27
Posts: 5082
Where's the beer?
|
 |
« Reply #9 on: January 20, 2011, 03:08:29 pm » |
Here's the "H bridge" with only 2 transistors: That's not an "h-bridge" - its more like a "half h-bridge" (half-bridge?) like I was describing (note the dual-ended power-supply). Its advantage is in the fewer number of parts required. Its disadvantage is in the need for a dual-ended power supply, which can lead to issues of its own - especially if doing a battery powered design. This was a problem with the Milton Bradley Big Trak - since most of the time, the motors were being driven in the forward direction, you would end up with one half of the battery bank having a lower voltage than the other half, leading to issues of the other half trying to back-charge the lower half, causing you to have to change the batteries constantly in that toy! ;D
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15314
Measurement changes behavior
|
 |
« Reply #10 on: January 20, 2011, 04:41:26 pm » |
Well it's performing the same function as a H-bridge, variable speed and bidirectional rotation of the DC motor. It's simper with fewer output transistors because it relies on utilizing a bipolar DC power supply. Also not really able to interface with an Arduino using PWM and direction control output pins without some additonal external interface circuitry.
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Ontario
Offline
God Member
Karma: 15
Posts: 717
|
 |
« Reply #11 on: January 21, 2011, 10:58:01 am » |
performing the same function as a H-bridge No, it's not. An H-bridge does not require a split supply. This is a half bridge and does good stuff for sure, but an H-bridge is a very specific circuit topology that is different to what you have.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15314
Measurement changes behavior
|
 |
« Reply #12 on: January 21, 2011, 01:49:17 pm » |
No, it's not. An H-bridge does not require a split supply. This is a half bridge and does good stuff for sure, but an H-bridge is a very specific circuit topology that is different to what you have. I think you misread what I wrote. I didn't say it was an H-drive circuit (Reply #7), nor can it replace an H-drive circuit. I said because this posted circuit uses a bipolar DC supply it can perform the same motor functions as a H-drive (using just two transistors), in that it can vary the speed and rotation just like an H-drive can. It's certainly dissimilar with an H-drive in that it isn't designed to be PWM modulated, nor any other digital interface to a microcontroller. It's a cute little analog circuit but not something that is very applicable to a Arduino project. Those output transistors are going to dissapate a lot of heat working as linear amps at reduced speeds, rather then using a switching mode that H-drive circuits use. Lefty
|
|
|
|
« Last Edit: January 21, 2011, 02:20:18 pm by retrolefty »
|
Logged
|
|
|
|
|
Georgia, US
Offline
Sr. Member
Karma: 4
Posts: 372
Arduino makes my head hurt :(
|
 |
« Reply #13 on: January 21, 2011, 02:12:36 pm » |
I too read his High Power as either mains or 480 voltage..
|
|
|
|
|
Logged
|
|
|
|
|
Phoenix, Arizona USA
Offline
Faraday Member
Karma: 27
Posts: 5082
Where's the beer?
|
 |
« Reply #14 on: January 21, 2011, 03:53:22 pm » |
It's certainly dissimilar with an H-drive in that it isn't designed to be PWM modulated, nor any other digital interface to a microcontroller. Well, that particular circuit can't, but it could be modified so it would - like I noted, a very similar circuit was used in the Milton Bradley Big Trak...
|
|
|
|
|
Logged
|
|
|
|
|
|