Author Topic: How does this circuit work ? (Arduino auto power changeover circuit)  (Read 2395 times)

0 Members and 1 Guest are viewing this topic.

Offline whatsthegeekTopic starter

  • Contributor
  • Posts: 43
  • Country: be
Hi, I've been trying to understand this circuit:


How does it block the USB 5v when the comparator detects there's more than 3.3v at the power jack ?

I think there's something I'm not getting xD


Hope someone can help ^^
 

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 2416
  • Country: us
Re: How does this circuit work ? (Arduino auto power changeover circuit)
« Reply #1 on: December 03, 2017, 03:00:59 pm »
It's actually detecting more than 6.6V at the power jack. Note the voltage divider reducing it by half before the comparator. The comparator controls the mosfet on the USBVCC line. It's a P-channel mosfet (arrow facing out, not in), so a high output from the comparator will turn it off.
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: How does this circuit work ? (Arduino auto power changeover circuit)
« Reply #2 on: December 03, 2017, 03:01:36 pm »
The comparator trips when the power jack reaches 6.6V, that
in turn turns off the PMOS fet that connects the 5V usbvcc buss
to the LP2985 regulator input.


Regards, Dana.
« Last Edit: December 03, 2017, 04:05:52 pm by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline whatsthegeekTopic starter

  • Contributor
  • Posts: 43
  • Country: be
Re: How does this circuit work ? (Arduino auto power changeover circuit)
« Reply #3 on: December 03, 2017, 04:36:03 pm »
It's actually detecting more than 6.6V at the power jack. Note the voltage divider reducing it by half before the comparator. The comparator controls the mosfet on the USBVCC line. It's a P-channel mosfet (arrow facing out, not in), so a high output from the comparator will turn it off.

Oops, just noticed that xD

But there's something that I don't get, won't the current flow through the flyback diode of the mosfet ?
 

Offline glarsson

  • Frequent Contributor
  • **
  • Posts: 814
  • Country: se
Re: How does this circuit work ? (Arduino auto power changeover circuit)
« Reply #4 on: December 03, 2017, 04:41:42 pm »
But there's something that I don't get, won't the current flow through the flyback diode of the mosfet ?
Only if the 5V from USB is above 5.6V.
 

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 2416
  • Country: us
Re: How does this circuit work ? (Arduino auto power changeover circuit)
« Reply #5 on: December 03, 2017, 04:58:33 pm »
It's actually detecting more than 6.6V at the power jack. Note the voltage divider reducing it by half before the comparator. The comparator controls the mosfet on the USBVCC line. It's a P-channel mosfet (arrow facing out, not in), so a high output from the comparator will turn it off.

Oops, just noticed that xD

But there's something that I don't get, won't the current flow through the flyback diode of the mosfet ?

What he said about diode voltage drop. It probably won't happen. Even if it does likely no harm done.

I believe the real purpose of the circuit is to keep the 5V voltage regulator from trying to power the USB line.
 

Offline whatsthegeekTopic starter

  • Contributor
  • Posts: 43
  • Country: be
Re: How does this circuit work ? (Arduino auto power changeover circuit)
« Reply #6 on: December 03, 2017, 06:28:43 pm »
Ok, thanks for the explanation :)

I remade the schematic for my own device, is it correct ? would you change some of the components ?

 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2005
  • Country: us
Re: How does this circuit work ? (Arduino auto power changeover circuit)
« Reply #7 on: December 03, 2017, 07:01:41 pm »
That's not quite the same circuit as your first one.  Does Vin of the 3.3V regulator need to be tied to +5V instead of Vcc?
 

Offline whatsthegeekTopic starter

  • Contributor
  • Posts: 43
  • Country: be
Re: How does this circuit work ? (Arduino auto power changeover circuit)
« Reply #8 on: December 03, 2017, 07:45:52 pm »
Yes, it needs to get power from the 5v rail otherwise, the board won't get 3.3v when powered from USB
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf