Hi all,
The attached PDF has the basic block diagram of my system.
First of all: The necessity of the switch to motor controller is because the way the motor controller works: it stalls the motors at 2.5V, turns them forward at 5V, turns them backwards at 0V. Thus, while the microcontroller boots, the motors would start spinning if it wasn't for that switch. After about 4 seconds (once the microcontroller boots, a 2.5V signal is sent to stall the motors, then the motors are ready to receive power and be controlled by the uC however the user chooses).
The problem: When the switch gets closed, the uC resets for an unknown reason, thus defeating the whole point of the configuration. I don't know why this happens, since all other components (at 24V and 5V) continue to run without loss of power.
Could it be that once power is allowed to the motor controllers, there is a slight drop in voltage, and the uC, being the most sensitive of the components reboots?
I know it has nothing to do with the analog enable signal, because I have tried disconnecting that.
I have also tried putting a big capacitor in parallel at the "entrance" of the uC to "keep it charged" for the split second when voltage might drop.
Also: the motor controller does not draw that much power.. thus I'm hesitant to just think that it's a drop of voltage due to the motor controller drawing out a lot of power initially.
Any ideas?!
Thanks in advance!
The attached PDF has the basic block diagram of my system.
First of all: The necessity of the switch to motor controller is because the way the motor controller works: it stalls the motors at 2.5V, turns them forward at 5V, turns them backwards at 0V. Thus, while the microcontroller boots, the motors would start spinning if it wasn't for that switch. After about 4 seconds (once the microcontroller boots, a 2.5V signal is sent to stall the motors, then the motors are ready to receive power and be controlled by the uC however the user chooses).
The problem: When the switch gets closed, the uC resets for an unknown reason, thus defeating the whole point of the configuration. I don't know why this happens, since all other components (at 24V and 5V) continue to run without loss of power.
Could it be that once power is allowed to the motor controllers, there is a slight drop in voltage, and the uC, being the most sensitive of the components reboots?
I know it has nothing to do with the analog enable signal, because I have tried disconnecting that.
I have also tried putting a big capacitor in parallel at the "entrance" of the uC to "keep it charged" for the split second when voltage might drop.
Also: the motor controller does not draw that much power.. thus I'm hesitant to just think that it's a drop of voltage due to the motor controller drawing out a lot of power initially.
Any ideas?!
Thanks in advance!
Attachments
-
68.4 KB Views: 40