I am using an Atmega328p. My project is using an Adafruit Bluefruit LE SPI Friend (Adafruit Bluefruit LE SPI Friend - Bluetooth Low Energy (BLE) : ID 2633 : $17.50 : Adafruit Industries, Unique & fun DIY electronics and kits) to send data wirelessly. I plan to switch the BLE module with a mosfet so that the power is cut when it is not sending data.
I have encountered a problem that when I am running any program on my AVR, connecting power to the BLE module sends the AVR into reset.
I am running a simple/blank program that just outputs to serial when the device has been reset.
Does anyone know why this is happening? Thanks