Author Topic: Button input to two microcontrollers isolation needed?  (Read 18861 times)

0 Members and 1 Guest are viewing this topic.

Offline 24602Topic starter

  • Contributor
  • Posts: 24
  • Country: au
Button input to two microcontrollers isolation needed?
« on: February 17, 2022, 02:48:24 am »
Hey All

If I had a single button input going to two microcontrollers (32U4 with internal pull-up) both on different powersupplies. Should a diode be placed between each microcontroller and the button?

Thinking if one wasn't powered it would sink current from the other.

Good/ bad what you all think?

Thanks
 

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1327
  • Country: ca
Re: Button input to two microcontrollers isolation needed?
« Reply #1 on: February 17, 2022, 03:49:56 am »
Quote
Thinking if one wasn't powered it would sink current from the other.

Yes that would be a problem.
Diodes would work. As long as the diodes' forward voltage drop is low enough that a valid logic state will be present at the MCUs when the button is pushed.
You could also use two NPN transistors and drive the bases via a Vdd connected switch and resistors.
« Last Edit: February 17, 2022, 04:06:31 am by Kim Christensen »
 

Offline wizard69

  • Super Contributor
  • ***
  • Posts: 1184
  • Country: us
Re: Button input to two microcontrollers isolation needed?
« Reply #2 on: February 19, 2022, 09:30:23 pm »
Hey All

If I had a single button input going to two microcontrollers (32U4 with internal pull-up) both on different powersupplies. Should a diode be placed between each microcontroller and the button?

Thinking if one wasn't powered it would sink current from the other.

Good/ bad what you all think?

Thanks
It should be easy to keep the two completely isolated with a double pole push button.   The other possibility is to use an optical isolator.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf