HC05 Bluetooth modul resets Arduino when powered up

I want to use a HC05 for communication with my arduino using Softwareserial and to IO-Pins.

To save power i want to disable the HC05 if i don’t need it. I added a switch to the VCC pin of the HC06.

But every time i turn the power on my arduino is reset and starts over again but i want it to keep running.

Can someone help ?

IgnatzG: To save power i want to disable the HC05 if i don't need it. I added a switch to the VCC pin of the HC06.

Really?

every time i turn the power on my arduino is reset and starts over again

If you refrain from turning the power off, Arduino will keep running. I submit that the HC-05 is entirely blameless.

Yes but i want to turn the bluetoth modul off. I can’t see why the rx and tx pins used by the softserial lib shoul cause a reset when the power is turned on and off on the bluetoth modul …

Voltage dip?

Perhaps you could be a bit more forthcoming with code, wiring, and power supply.