Electronics > Beginners

Push button power circuit for Arduino... trying to modify it for 12V input

<< < (12/12)

Peabody:
Could it be switch bounce?  I wouldn't think there would be much bounce when releasing the button.  Well if I have time over the weekend, I'll set up the circuit with a Nano and see what happens.

It seems the safest thing might be to wait until the button is released before turning off the NPN. It really shouldn't make any difference as long as you bring the output pin low and keep it low forever.  Then everything should shut down when the button is released.  But waiting for button release, if it still misbehaves, that would indentify the Nano as the problem - output pin glitching high as it powers down.

CBF:

--- Quote from: Ian.M on November 22, 2021, 07:41:57 am ---Yes, with a 6K8 pulldown on the SENSE input to keep the max. signal just under 5V, that looks reasonable.   The only flies in the ointment are that the switched power isn't debounced so is likely to glitch during power up, and the switch has to handle the entire load current till the MCU turns the MOSFET on.  An Arduino has enough onboard decoupling to ride through the power glitches, and if it doesn't have other significant loads on Vin or +5V is unlikely to draw enough current to be problematic for most small button switches, but it may not work so well for other applications.

--- End quote ---

I can't believe I am still having problems with such a simple circuit. I have the arduino connected to a MOSFET controlled motor driver than can spike up to 1.5A. The circuit is unable to deliver this. Could this be the Rds of the MOSFET? The voltage seems to drop and the motors stall. When I remove the above circuit and power directly from the powerbank there are no problems.

I need a solution quickly for this project and I'm struggling to get anywhere. I'm sure there is lots wrong thats why I'm here:

Peabody:
I couldn't find an IRZ44N.  If it's really IRFZ44N, then it's not a logic level mosfet, and if the source is at 5V, then the gate threshold voltage is way too high to turn on the mosfet fully when the GPIO controlling it goes to ground.

CBF:

--- Quote from: Peabody on November 27, 2021, 12:11:40 am ---I couldn't find an IRZ44N.  If it's really IRFZ44N, then it's not a logic level mosfet, and if the source is at 5V, then the gate threshold voltage is way too high to turn on the mosfet fully when the GPIO controlling it goes to ground.

--- End quote ---

Thanks so much, I had it lying around and remembered it being logic level, doh! I should have checked the datasheet - this explains my probblems with my first circuit. Will update  :)

zbyhu:
Hi All,
I have a question to Ian.M's circuiit.

I used DMG1013UW as M1 and BSS214 as M2.
Vbatt is around 3.8V.
What I observe is that M2 is turned on right after power is connected.
D1 and D2 are SKM14 from DIOTEC.

Double checked the MOSFETs pinout and it is correct.

Why circuit behaves like this?


Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version