Nice application of a PSOC! I'd recommend a freewheeling diode across the 4:43 connector J1 (Motor o/p) to protect Q1. Perhaps also a pull-down on the gate of Q1, if the boot-up behaviour of the PSOC is ill-defined.
Forgetting the diode was quite an oversight. Motors or relays without freewheeling diodes really are like kryptonite to mosfets/transistors. Also good point on importance of the pull-down resistor! Thanks for these tips!
That is a start, but not a perfect solution. To prevent high frequency switching, output going to the mosfet/transistor should go HIGH when PWM pulse starts and go LOW on either a)end of PWM pulse or b)if current limit is reached. No matter which reason made the signal go LOW, it should return to HIGH only when next PWM period starts. I'm sure there are solutions for doing this with regular PWM (without the stop-signal used in this video) and some logic gates or flip-flops, but I haven't thought about it any further. Thanks for watching and commenting!
Nice application of a PSOC!
I'd recommend a freewheeling diode across the 4:43 connector J1 (Motor o/p) to protect Q1. Perhaps also a pull-down on the gate of Q1, if the boot-up behaviour of the PSOC is ill-defined.
Forgetting the diode was quite an oversight. Motors or relays without freewheeling diodes really are like kryptonite to mosfets/transistors. Also good point on importance of the pull-down resistor! Thanks for these tips!
Just what I needed, thanks!
very nice video. as an alternative can we use an AND gate with the PSOC PWM and the comparator output ?
That is a start, but not a perfect solution. To prevent high frequency switching, output going to the mosfet/transistor should go HIGH when PWM pulse starts and go LOW on either a)end of PWM pulse or b)if current limit is reached. No matter which reason made the signal go LOW, it should return to HIGH only when next PWM period starts.
I'm sure there are solutions for doing this with regular PWM (without the stop-signal used in this video) and some logic gates or flip-flops, but I haven't thought about it any further.
Thanks for watching and commenting!
@@HugatryGood point. I did not think of that.