Custom PCB issues with ATmega328p & Hbridge

nsaspook

Joined Aug 27, 2009
16,353
This is not a safety issue and the motor is not 3 phase. It is a small DC motor with very rudimentary brushes and commutator. It will not survive a lot of abuse. The problem is being caused by the software which should not reverse the motor while it is running because that causes a lot of unnecessary electrical noise on the supply and will eventually damage the motor.
Obviously I understand the issues with his small DC motor circuit too by diagnosing the root cause of power stability issues.
What you say doesn't negate the fact the controller should stay operational until it loses power to report and possibility mitigate a fault condition. The quickly reversing issue is a separate tangent to inadequate filtering and bypass components causing the board not to work correctly.

Sorry if I seem short but I had far too many excuses for poor stability (lockups, screen dead, controls don't work) performance in modern commercial embedded industrial power supplies and equipment due to inadequate design considerations of external EMI/RFI.
 

Ian0

Joined Aug 7, 2020
13,158
Obviously I understand the issues with his small DC motor circuit too by diagnosing the root cause of power stability issues.
What you say doesn't negate the fact the controller should stay operational until it loses power to report and possibility mitigate a fault condition. The quickly reversing issue is separate to inadequate filtering and bypass components causing the board not to work correctly.

Sorry if I seem short but I had far too many excuses for poor stability (lockups, screen dead, controls don't work) performance in modern commercial embedded industrial power supplies and equipment due to inadequate design considerations of external EMI/RFI.
I agree.
The processor should not crash - no excuses. Achieving a power supply that is stable enough takes a bit of thought, but isn't difficult.
Avoiding high current situations which might bother the processor is a good idea, but of secondary importance.
There may be times when high current situations are unavoidable (emergency stops, for instance), and that's the most important time NOT to have a crashed processor.
 
Top