substitution
science_geek
Posts: 247
can you substitute a relay for an h-bridge to drive a motor on the boe bot or can do you absolutely have to use an h-bridge, i dont need speed control
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I was also looking for an H-bridge substitute and I was thinking that a MOSFET, relay·and the stamp's PWM command would give me direction and speed control.
You might·want to change the name of the thread to give more info ex Relay vs. H-bridge.· (Just a suggestion.)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Faust
Post Edited (D Faust) : 6/4/2007 9:08:14 PM GMT
The BASIC Stamp PWM command will not be suitable to drive an H-Bridge or even a MOSFET for speed control, especially if you plan on doing anything else in your loop.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
·
Whether or not you use mechanical relays, solid state relays, or an H-Bridge configuration depends on how you want your application to perform.
Something to consider though... a transistorized H-Bridge will experience a 1.2V voltage drop.· A solid state relay can also experience a voltage
drop.· With MOSFET versions it is important to keep the RDS (Resistance between the Drain and Source) as low as possible to deliver as much
power to the motor as possible.· This is none other than "smart" energy efficient design practice.
·
Example 1:
If you have a voltage supply of 12V and·your motor requires 5 Amps and you are using a transistorized H-Bridge, the amount of power that your
H-Bridge will need to dissipate in the form of heat would be 6 Watts (P = I * V)
·
Example 2:
If you have a voltage supply of 12V and your motor requires 5 Amps and you are using a MOSFET H-Bridge with an RDS of .055 Ohms, then the
amount of power that your H-Bridge will need to dissipate in the form of heat would be·1.375 Watts (P = I^2 * R)
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 6/5/2007 4:02:56 PM GMT
I do long for speed control, but that's another $ another day!. good luck.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Faust
To keep·the RDs "ON" as low as possible so your MOSFETS run cool.
"Wouldn't you have to use a co-processor to keep the MOSFETs to the desired voltage."
It would be the same for any other speed control driving a MOSFET.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
If your looking for the best motor controller solution it's not relays. they do work but the duty cycle of a really isn't nearly as long as a solid state solution. Yes I'm using them but it was a temporary solution with parts that I had on hand. you'll be much happier in the long run if you get a motor controller with speed control.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
The NEC EN2-1N1S relay is a H-bridge type of relay.. fairly simple to use since it only requires one relay per motor... it consists of two relays internally (one per each side of the H-Bridge) but you can connect both coils and operate them with a single signal.. this way... a logic 0 means Forward.. and logic 1 means reverse, quite simple.... you can control direction with only one signal ,· of course, you will still need the means to control speed,·· this relay was designed for automotive applications, so it is sealed and rugged, and quite compact... here is the datasheet link:
http://www.worldproducts.com/pdfs/en2.pdf
And here the Mouser link if you are interested in buying a couple:
http://www.mouser.com/search/refine.aspx?Ntt=551-EN2-1N1S
I myself got a couple but have not used them yet, I will you know the results as soon as I try these relays... I hope this helps!!!.. happy roboting!!
Post Edited (Joe "Bot" Red) : 6/5/2007 4:42:43 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Faust
SPDT Relays have both N.O. and N.C. terminals on them.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Faust
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
It looks like an SPDT·SSR based on the data.· I was suprised when you said that and when I found this.· Found this by searching for "SPDT solid state relay". Thanks for being misleading!!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Faust
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Faust
The PWM signal from the Stamp is not particularly ideal for motor control, it is designed as a way to provide an analog output with simple external RC filtering and is not the same as a fixed frequency duty cycle based PWM signal. Ideally the motor needs a PWM signal with a fixed frequency duty cycle that is capable of adjusting the pulse width to a specific value. The PWMPAL provides such a signal and can be found here...
http://www.parallax.com/detail.asp?product_id=28020
In answer to your question... "is there a way for the stamp to set a voltage (with PWM command?)" ... yes, but that isn't exactly what you need to drive a motor with a MOSFET transistor. The PWM supplied to the MOSFET
should have a fixed frequency typically 3 kHz to 20 kHz. This means that you have a pulse that arrives at the MOSFET on regular intervals that will completely turn it 'On' when present and completely 'Off' when not present.
To adjust the motor Speed, you simply vary the PWM ratio of how long the pulse is On verses how long the pulse is Off. For instance if you have a 12Volt supply and your PWM ratio is 50% then the "Averaged" voltage that you will see will be approximately 6V ... with a 25% Duty cycle ; 3V ... Keep in mind however that most if not all motors do not have a linear response to voltage. Meaning, that you should not expect twice the speed out of a motor simply because you double the voltage.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Faust
"Voltage limit on the PWMPAL is 5V right, but that could be used to "transist" whatever voltage the MOSFET could handle, right?" - Yes
There are also a few other motor control options you might consider exploring...
http://www.parallax.com/html_pages/products/motorcontrol/motor_control.asp
Also, here are a few Nuts and Volts articles that cover motor control that might be of interest...
http://www.parallax.com/dl/docs/cols/nv/vol1/code/nv23.zip
http://www.parallax.com/dl/docs/cols/nv/vol2/code/nv58.zip
http://www.parallax.com/dl/docs/cols/nv/vol4/col/100.pdf···· ········· PWMPAL specific
http://www.parallax.com/dl/docs/cols/nv/vol5/col/nv106.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Faust
http://www.vsholding.com/datasheets/7139_SPDT_with_true_NC.pdf
So.. it does not seem to be a practical alternative for fellow robotic enthusiasts... :-(
I found one on vsholding.com a few days ago and it is in one of my previous posts.
(http://www.vsholding.com/datasheets/7124_EDR83914_SPDT.pdf)
I did not check the price though, so thanks for the info.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Faust
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Faust