I have a AC transformer that deliver 20 VAC to the circuit, and it goes through a full wave bridge rectifier. The rectified output drives the DC motor and 7805 in parallel. I have a smoothing capacitor at 330 uf, I have a 330 uf that ties 7805 input to gnd, 100 uf that ties output to gnd, and a few ceramic cap. However, I am getting many "LOW" when I logic analyzes the 5V regulated output ( < 2.5v). In fact, the Arduino nano and hall sensor are connected to the 7805 regulated output. The dips will cause Falling Edge interrupt to trigger a lot more than expected ( The rpm should be around 1800, and I get 50000 ish). I have tried changing capacitor and have not yet resolve the problem. When i turn off the motor, the hall sensors works as expected. Any help or suggestion is appreciate. Thanks in advance.

