Pages: [1]   Go Down
Author Topic: Digital Switch?  (Read 589 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone,

I have been recently working on a project and I need some help. I am using Arduino to control a flying device composed of four motors, the problem I am facing is that I need to connect the battery after a preliminary set up. I could connect the battery manually, but I'd rather have Arduino connect the terminals to each motor.

I was wondering if I could use and electronic device that could do that for me. Below you can see what I mean:



Also, it would be necessary for the switch to withstand currents up to 25Amps.

Thanks!

B.


* AcontrolledSwitch.jpg (51.85 KB, 546x381 - viewed 24 times.)
Logged

Indiana, US
Offline Offline
Full Member
***
Karma: 12
Posts: 204
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Beliark.

You mean like this?

 http://www.amazon.com/gp/product/B0058UX2YS/ref=pd_lpo_k2_dp_sr_1?pf_rd_p=486539851&pf_rd_s=lpo-top-stripe-1&pf_rd_t=201&pf_rd_i=B0058UX17G&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=160KE4RVAEN822M7GYS3

Driven with a switching transistor?
Logged

There are 10 types of people in the world, those that understand binary, and those that don't.

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the quick response patduino,

I am not familiar with switches so I am not sure how this one works. I just want to have to use one of the digital pins on the arduino board, and whenever the voltage corresponding to logical 1 appears, turn the switch on. Otherwise it should stay off.

I am not entirely sure if a transistor could do that without some sort of weird voltage to current relationship. I guess a relay could do. Is there such a thing as a logical relay??

B.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 227
Posts: 6637
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Use a power mosfet, either a P-channel one switching the positive supply to the motors as in your diagram, or an N-channel mosfet switching the negative side - which is easier to drive and gives you a better choice of mosfets.

However, I suspect that you need to control the speed of your 4 motors individually. In that case, you can combine the on/off function with the motor speed control, avoiding the need for a separate electrically-controlled on/off switch (you'll probably still want a mechanical on/off switch for safety).
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Sussex UK / CT USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1028
Forums forever
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Another answer, dull and old fashioned, but very accessible, is the relay.

Help on these at....

http://www.arunet.co.uk/tkboyd/ec/ec1relay.htm

.. which tells you about a "gotcha" you need to avoid being got by.

The Arduino output would go to the "Out" at the left of the diagram. It isn't as hard as it may seem from the limited info at the site above.

If you can stand having to watch a video clip...

http://blog.makezine.com/2009/02/02/connecting-a-relay-to-arduino/

If you can READ (!)... you can go to....

http://jumperone.com/2011/10/using-relays/

(GASP! It might have been easier just to write my own than to locate that! Google! There MUST be decent guides out there to this basic topic!)

Logged

Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think you will find that a SSR designed for use on AC line voltages is going to be useless with DC motors.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

Indiana, US
Offline Offline
Full Member
***
Karma: 12
Posts: 204
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the fact check.  It looks like I pasted the wrong link.  My bad.  The design needs a 25A DC relay, not this 240VAC one.
Logged

There are 10 types of people in the world, those that understand binary, and those that don't.

Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the fact check.  It looks like I pasted the wrong link.  My bad.  The design needs a 25A DC relay, not this 240VAC one.
The key here is not the voltage, it is the difference between DC and AC.  SSRs for AC use SCRs or Triacs.  That's not going to end up well for DC.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

Pages: [1]   Go Up
Jump to: