r/Hacking_Tutorials • • Oct 14 '26

Question Bluetooth jammer esp32 not working

my bluetooth jammer is not working i am new to arduino and esp 32 i am using an esp32 devkitv1 and an nrfl24l01 but it is not working this is the code is used i followed this videohttps://www.youtube.com/watch?v=gBJu1HZMW2k

/*
 * nrfBlueNullifier
 * A tool which jam classic bluetooth signals using 1 nrf24L01+PA/LNA module at VSPI.
 * Author - WireBits
 */


#include <RF24.h>
#include <esp_bt.h>
#include <esp_bt_main.h>


SPIClass *sp = nullptr;
RF24 radio(22, 21, 19909090);
byte i = 45, ptr_hop = 0, flag = 0;
byte hopping_channel[] = {32, 34, 46, 48, 50, 52, 0, 1, 2, 4, 6, 8, 22, 24, 26, 28, 30, 74, 76, 78, 80, 82, 84, 86};


void nrfSPIInit() {
    sp = new SPIClass(VSPI);
    sp->begin();
    if (radio.begin(sp)) {
        radio.setAutoAck(false);
        radio.stopListening();
        radio.setRetries(0, 0);
        radio.setPayloadSize(31);
        radio.setAddressWidth(4);
        radio.setPALevel(RF24_PA_MAX, true);
        radio.setDataRate(RF24_2MBPS);
        radio.setCRCLength(RF24_CRC_DISABLED);
        radio.startConstCarrier(RF24_PA_MAX, i);
    }
}


void adjustAndSweepChannels() {
    flag = (i > 79) ? 1 : (i < 2 ? 0 : flag);
    i += flag ? -2 : 2;
    for (int j = 0; j <= 79; j++) radio.setChannel(j);
}


void setup() {
    esp_bt_controller_deinit();
    if (esp_bluedroid_get_status() == ESP_BLUEDROID_STATUS_ENABLED) {
        esp_bluedroid_disable();
        esp_bluedroid_deinit();
    }
    nrfSPIInit();
}


void loop() {
        adjustAndSweepChannels();
        ptr_hop = (ptr_hop + 1) % sizeof(hopping_channel);
        radio.setChannel(hopping_channel[ptr_hop]);
}
3 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/Relative_Life_3878 Oct 14 '26

is there a a code that i can use to test if i am transmitting something to jam the bluetooth and ai said that my connections were wrong i am using these connections i dont know if these connections work with the code i am new to esp32 sorry if i am irritating you

  • VCC ➡️ 3V3
  • GND ➡️ GND
  • CE ➡️ D4 (GPIO 4)
  • CSN ➡️ D5 (GPIO 5)
  • SCK ➡️ D18 (GPIO 18)
  • MISO ➡️ D19 (GPIO 19)
  • MOSI ➡️ D23 (GPIO 23)

1

u/LongRangeSavage Oct 14 '26

No. You need something like a wattmeter or spectrum analyzer to confirm your radio is actually transmitting.

1

u/Relative_Life_3878 Oct 14 '26

is there a way to interfere the bluetooth without doing that? i dont want to buy more stuff for it

1

u/LongRangeSavage Oct 14 '26

At this point you need a way to confirm transmission. That can be a wattmeter, a SDR that is just listening for anything from your jammer, or you can actually write the code to pair to something Bluetooth and confirm you can send and receive packets from something Bluetooth—with a big emphasis on that you can send packets.

Once you confirm you are able to actually transmit, the problem becomes how strong of a signal you can generate, and to see if you need something like an amplifier or a directional antenna that will provide more gain.

Edit:
Added a different antenna as an option

1

u/Relative_Life_3878 Oct 14 '26

how can i test that with a wattmeter

1

u/LongRangeSavage Oct 14 '26

Buy one and plug it in between you the transmitter and the antenna. It will tell you the amount of power your radio is actually transmitting with. You just need one that can read within the ranges of your transmitter.

1

u/Relative_Life_3878 Oct 15 '26

i tested it again today and it works but only if i am holding it against the nrfl24l01 is there a way to make it better?