Closing a Switch with Microcontroller: Simple Answer

  • Thread starter Thread starter dmehling
  • Start date Start date
  • Tags Tags
    Switch
Click For Summary

Discussion Overview

The discussion revolves around the feasibility of using a microcontroller to close a simple mechanical switch, particularly in the context of adaptive devices like wheelchair controls. Participants explore various methods and components that could be employed, including relays, transistors, and electronic switches.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • One participant suggests that a relay could be used to close the switch but notes that a transistor may be necessary to drive the relay.
  • Another participant questions whether a microcontroller has the necessary transistors to close the switch and asks for clarification on how to do so without a relay.
  • A participant emphasizes the need for more information about the switch's specifications, such as the voltages and currents involved, to provide a more tailored response.
  • One participant describes the switch as an adaptive device for wheelchairs and expresses uncertainty about interfacing it with a microcontroller, suggesting that a purely electronic switch might be preferable.
  • There is a suggestion that if the microcontroller can be placed in parallel with the switch, it could potentially close its own switch to simulate the actuation of the mechanical switch.
  • Concerns are raised about the reliability and safety of working with wheelchair electronics, highlighting the importance of fail-safe operations.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to close the switch, with multiple competing views on whether a relay, transistor, or electronic switch is necessary. The discussion remains unresolved regarding the specific implementation details and requirements.

Contextual Notes

Participants express uncertainty about the current and voltage specifications of the switch and the adaptive device it connects to, which may affect the choice of components. There are also considerations regarding the need for galvanic isolation and the reliability of the control system.

dmehling
Messages
114
Reaction score
0
I am trying to figure out how to close a simple switch with a microcontroller. Do I need a relay to do this? Please give a simple answer since I don't know much about electronics.
 
Engineering news on Phys.org
A relay will definitely do this, but you will most likely need a transistor to drive it. Depending on what you are trying to switch, you may be able to get by without the relay.
 
A microcontroller would not have the necessary transistors for this project? If it's possible that I don't need a relay then how would I close a switch?
 
dmehling said:
A microcontroller would not have the necessary transistors for this project? If it's possible that I don't need a relay then how would I close a switch?

You need to tell us more about what the switch is doing, in order for us to know how big it is. A microcontroller (uC) does not generally have much current source/sink capability ( a few mA, typically), so you cannot drive a regular (even small) relay directly. But there are other kinds of switch mechanisms that can be driven with very little current.

What voltages and currents will your switch experience? What is it a switch for?
 
It's an adaptive switch for controlling wheelchairs and other types of things. It is a very simple mechanical switch with a miniplug (like a stereo mini plug) at the end of a cable that connects to an adaptive device. Here is an example: http://www.infogrip.com/product_view.asp?RecordNumber=165&sbcolor=%23990033&option=switch&subcategory=&CatTxt=&optiontxt=Switch I'm trying to figure out how I would interface my microcontroller to such a switch. A purely electronic switch would sound like a better idea but I'm not sure if it can interface with the adaptive device.
 
Last edited by a moderator:
dmehling said:
It's an adaptive switch for controlling wheelchairs and other types of things. It is a very simple mechanical switch with a miniplug (like a stereo mini plug) at the end of a cable that connects to an adaptive device. Here is an example: http://www.infogrip.com/product_view.asp?RecordNumber=165&sbcolor=%23990033&option=switch&subcategory=&CatTxt=&optiontxt=Switch I'm trying to figure out how I would interface my microcontroller to such a switch. A purely electronic switch would sound like a better idea but I'm not sure if it can interface with the adaptive device.

Oh, maybe we're misunderstanding your question. That's in input device, not an actuator. Do you want to monitor the switch with your uC? Or you somehow want to mechanically actuate that big thing?

If you want to click that switch somehow from your uC, you'll definitely need some power gain over the digital output control signal from your uC. Something like a solenoid actuator...

But, if you can put your circuit in parallel with the switch, you could have the uC close its own switch, which would imitate the pushbutton switch being actuated. Do you know what voltages and currents are involved with the circuit that the switch plugs into? Is your uC sharing the same ground as whatever circuit the switch plugs into, or do you need galvanic isolation.

BTW, working on wheelchair electronics is not trivial. I hope you know how important reliability of control and fail-safe operation are. Do you have 3 uCs voting?
 
Last edited by a moderator:

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
37
Views
7K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
5K
  • · Replies 5 ·
Replies
5
Views
985
  • · Replies 1 ·
Replies
1
Views
2K