Corp666
Newbie level 4
- Joined
- Dec 3, 2012
- Messages
- 5
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,345
Hello folks,
I am designing a circuit that will supply 12V to a device that the user will connect - the voltage will be switched by a MOSFET which will be controlled by a microcontroller based on some input.
For example, imagine the user uses this device to switch a bulb on/off based on some input to the microcontroller.
I want to offer over-current / short protection. I know there are specialty devices designed for this purpose, but cost, size and component count are factors... I was considering using a low value resistor in series with the power output and measuring the voltage across it with an ADC in the microcontroller, then I could turn off the power if the current exceeds a preset threshold.
I am not sure if this would be fast enough to stop the MOSFET from being destroyed in the case of something like shorting the output terminal to ground?
The power supply would be a 12V car battery, so it's not easy to implement overcurrent protection on a power supply side. I know there are specialty chips for this purpose, but I would like to expand the device to have 10+ channels in the future, so adding 10 over current protection devices could be expensive and take a lot of space, whereas if I can do it in the micro, it's much easier.
If the above idea is flawed, can someone suggest a more appropriate method for monitoring current draw with a microcontroller and turning off the supply in case of over current?
I am designing a circuit that will supply 12V to a device that the user will connect - the voltage will be switched by a MOSFET which will be controlled by a microcontroller based on some input.
For example, imagine the user uses this device to switch a bulb on/off based on some input to the microcontroller.
I want to offer over-current / short protection. I know there are specialty devices designed for this purpose, but cost, size and component count are factors... I was considering using a low value resistor in series with the power output and measuring the voltage across it with an ADC in the microcontroller, then I could turn off the power if the current exceeds a preset threshold.
I am not sure if this would be fast enough to stop the MOSFET from being destroyed in the case of something like shorting the output terminal to ground?
The power supply would be a 12V car battery, so it's not easy to implement overcurrent protection on a power supply side. I know there are specialty chips for this purpose, but I would like to expand the device to have 10+ channels in the future, so adding 10 over current protection devices could be expensive and take a lot of space, whereas if I can do it in the micro, it's much easier.
If the above idea is flawed, can someone suggest a more appropriate method for monitoring current draw with a microcontroller and turning off the supply in case of over current?