element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Powering external devices with Arduino
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 10 replies
  • Answers 2 answers
  • Subscribers 392 subscribers
  • Views 1280 views
  • Users 0 members are here
  • releis
  • control
  • servo
  • shield
  • arduino
  • powering
Related

Powering external devices with Arduino

balearicdynamics
balearicdynamics over 10 years ago

Hi to all,

 

I'd like to discuss a question. I am working on the design of an Arduino shield that should manage a separate power to drive a couple of servos and another device driver by 3.3VCC from the Arduino board. What is your opinion about the better solution:

  1. Use a relais driven by an Arduino pin through a transistor, powered by the Arduino 5VCC to manage the two servo power, and power the 3.3 device with the same relais (has independent ports controlled simultaneously
  2. Use a four digital switches NTE4066BT (two pins only) while the other two are already used by the circuit
  3. Some better idea ?

My vision is that with a single relais (so using a single digital pin on Arduino) I can control the powering of the external components - that are controlled by the shield - These need to be powered together anyway when the program is started.

 

What do you think about ? Thanks in advance.

 

Enrico

  • Sign in to reply
  • Cancel

Top Replies

  • clem57
    clem57 over 10 years ago +2 suggested
    The relays are an old and tried solution. There are many of those already. The second option, I am not familiar with. Is this the specs? The NTE4066B (14−Lead DIP) and NTE4066BT (SOIC−14) are integrated…
  • johnbeetem
    johnbeetem over 10 years ago in reply to balearicdynamics +2 verified
    I wasn't suggesting both SSR and ULN2003 -- either use one or the other, depending on what you're doing. My understanding is that your ultimate goal is to turn motors on and off, in which case the ULN2003…
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to johnbeetem +2
    Hey John, thank you for your clarification. In fact I thought you want to use both What you write is correct, I have already used ULN2003 to drive motors and as they have a limitation of about 1A, when…
  • clem57
    0 clem57 over 10 years ago

    The relays are an old and tried solution. There are many of those already. The second option, I am not familiar with. Is this the specs?

     

    The NTE4066B (14−Lead DIP) and NTE4066BT (SOIC−14) are integrated circuits consisting of four independent switches capable of controlling either digital or analog signals. These quad bilateral switches are useful in signal gating, chopper, modulator, demodulator, and CMOS logic implementation. The NTE4066B/BT is designed to be pin−for−pin compatible with the NTE4016B/BT, but has much lower ON resistance. Input voltage swings as large as the full supply voltage can be controlled via each independent control input.

    • VDD = −0.5 to +18.0V
    • Vin = −0.5 to VDD to +0.5V
    • Vout = −0.5 to VDD to +0.5V
    • Iin = ±10mA
    • Iout = ±10mA
    • ISW = ±25mA
    • PD = 500mW
      Temperature derating (from +65° to +125°C) = −7.0mW/°C
    • TA = −55° to +125°C
    • Tstg = −65° to +150°C
    • TL = +260°C

    Stresses exceeding maximum Ratings may damage the device. Maximum Ratings are stress ratings only. Functional operation above the Recommended Operating Conditions is not implied. Extended exposure to stresses above the Recommended Operating Conditions may affect device reliability.

     

      Can you explain how these would work?

    Thanks,

    Clem

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 10 years ago in reply to clem57

    Hi Clem,

     

    thank you for the reply. Yes the NTE4066B is a digital switch. I have discovered it when I had to manage, possibly with a shift register a certain number of physical simulations of several buttons. I don't trust very much to use these kind of device to drive directly a power line, at least I should provide a opto-isolator, but are perfect to replace manual button switches because the only thing they need is to short-circuit the switch pin.

     

    So based on your previous considerations I think that the alternative to a relais will be the 4066 + opt-isolation. This makes the circuit more complex.

     

    The other way is a relay, I have already used the cheap finder 30.22.9.005.0010 (means size, voltage and other parameters in this dotted notation number). It is very small, fit in a 16/2 DIP socket and it is also sufficiently fast as it should only power the circuit of the two servo and the camera. Do you disagree this choice ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to balearicdynamics

    I agree. Wishing digital switches could replace the clicking clack of a relay.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 10 years ago in reply to clem57

    Also this finder relais is far away from the familiar click clack I remember on the 24V relais. A very small "tick" image

    So I plan to use it for power lines, contact will be opened one time and remains opened until the end of the process.

     

    Instead, about the buttons, it will be very difficult to simulate them with a common relais because - for example - the power button has different functions with long-press, i.e. changing between shooting and video grabbing and also the shooting button has different behaviour if the camera is in video mode or photo mode.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • johnbeetem
    0 johnbeetem over 10 years ago in reply to clem57

    Clem Martins wrote:

     

    I agree. Wishing digital switches could replace the clicking clack of a relay.

    There are solid-state relays: http://en.wikipedia.org/wiki/Solid-state_relay

    An SSR is basically a power MOSFET or other power component controlled by a built-in opto-isolator.  Search for "solid-state relay" at your favorite distributor.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • johnbeetem
    0 johnbeetem over 10 years ago

    For the proposed application, it sounds like it's fairly low voltage and can get by using a common ground.  In this case, I'd just use NPN transistors controlled by the Arduino.  If you need more current, use Darlington pairs, e.g., something like a Texas Instruments ULN2003LV.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 10 years ago in reply to johnbeetem

    Thank you johnbeetem, the point is also to see what is cheaper and what more expensive. Frankly, I forgot the existence of the SSRs image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 10 years ago in reply to johnbeetem

    None at all. Exclude the transistor.

     

    First because the servos drain almost considerable current, second because I have already experienced the transistors and they are not reliable.

     

    But what I ask is: why I should complicate the things - that are something like replacing a power switch with a relais - with a SSR + USN2003 ??? For about 3$ there are nice sub-micro relais that drive up to 2A from 5 up to 12 VCC... With one single component.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • johnbeetem
    0 johnbeetem over 10 years ago in reply to balearicdynamics

    I wasn't suggesting both SSR and ULN2003 -- either use one or the other, depending on what you're doing.  My understanding is that your ultimate goal is to turn motors on and off, in which case the ULN2003 is a nice, cheap way to do it if you can use a common ground.  If you're just turning a separate board's power on or off, an SSR is nice.  If it's a lot of current, a mechanical switch normally has lower resistance but don't exceed the contact rating.

     

    Transistors are usually reliable.  However, you do have to make sure you don't exceed their voltage or current limits.  For example, if you're driving an inductive load like a motor, relay, or speaker coil you must use a flyback diode: http://en.wikipedia.org/wiki/Flyback_diode

    Otherwise when you switch the current off, the inductor will generate a high voltage spike that kills your transistor.  The ULN2003 has built-in flyback diodes.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 10 years ago in reply to johnbeetem

    Hey John,

     

    thank you for your clarification. In fact I thought you want to use both image

     

    What you write is correct, I have already used ULN2003 to drive motors and as they have a limitation of about 1A, when I needed more power I have used ULN2004. In this case I have to manage with a separate power line low consuming devices (a micro camera consuming 180 mA) that need a separate power line for question of stability and a couple of micro servos. This is the reason that - in the need to automate all the manual commands (power, setting etc.) I though to use a micro-relay powering this part using the same 9Vcc battery-group (or wall-mount power) used to power Arduino but with a separate 5Vcc regulator. To drive the micro relais instead, I am using a N2222 NPN transistor. Maybe redundant or not, but there is the correct protection and no overheating in any place.

    I have tried before making the circuit and the things seems working, leaving some hours under test. A protection diode (4001) has been put anyway between the power connectors of the microswitch.

     

    Best, Enrico.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube