Bluetooth Jammer .INO SOURCE CODE
  1.  
  2. //BT JAMMER .INO: github.com
  3. // NRF24L01+ PA/LNA & ESP32-WROOM
  4.  
  5. #include "RF24.h"
  6. #include <ezButton.h>
  7. #include "esp_bt.h"
  8. #include "esp_wifi.h"
  9.  
  10. SPIClass *sp = nullptr;
  11.  
  12. //HSPI=SCK = 14, MISO = 12, MOSI = 13, CS = 15 , CE = 16
  13. //VSPI=SCK = 18, MISO =19, MOSI = 23 ,CS =21 ,CE = 22
  14.  
  15.  
  16. RF24 radio(22, 21, 16000000); ///DEFAULT 10000000
  17.  
  18. byte i = 45; ///37-50 CHANNEL (CHANNEL NRF NEEDS TO START )
  19.  
  20. unsigned int flag = 0;
  21.  
  22.  
  23. ezButton toggleSwitch(33);
  24.  
  25.  
  26. void initSP() {
  27. sp = new SPIClass(VSPI);
  28. sp->begin();
  29. if (radio.begin(sp)) {
  30. delay(1000);
  31. Serial.println("Sp Started !!!");
  32. radio.setAutoAck(false);
  33. radio.stopListening();
  34. radio.setRetries(0, 0);
  35. radio.setPayloadSize(5); ////SET VALUE ON RF24.CPP
  36. radio.setAddressWidth(3); ////SET VALUE ON RF24.CPP
  37. radio.setPALevel(RF24_PA_MAX, true);
  38. radio.setDataRate(RF24_2MBPS);
  39. radio.setCRCLength(RF24_CRC_DISABLED);
  40. radio.printPrettyDetails();
  41. radio.startConstCarrier(RF24_PA_MAX, i); ////EDITED VALUES ON LIBRARY ....SET 5 BYTES PAYLOAD SIZE//REDUCE RF24_MAX TO RF24_HIGH OR LOW IF RF NOT STABLE
  42.  
  43.  
  44.  
  45. } else {
  46. Serial.println("SP couldn't start !!!");
  47. }
  48. }
  49. void two() {
  50.  
  51. ///CHANNEL WITH 2 SPACING HOPPING
  52. if (flag == 0) {
  53. i += 2;
  54. } else {
  55. i -= 2;
  56. }
  57.  
  58. if ((i > 79) && (flag == 0)) {
  59. flag = 1;
  60. } else if ((i < 2) && (flag == 1)) {
  61. flag = 0;
  62. }
  63.  
  64. radio.setChannel(i);
  65. // Serial.println(i);
  66. }
  67.  
  68. void one() {
  69. for (int i = 0; i < 15; i++) {
  70. radio.setChannel(i);
  71. }
  72. }
  73.  
  74. // radio.setChannel(random(79));
  75.  
  76.  
  77.  
  78.  
  79. void setup(void) {
  80. pinMode(33, INPUT_PULLUP); // BUILD-IN RESISTOR
  81. esp_bt_controller_deinit();
  82. esp_wifi_stop();
  83. esp_wifi_deinit();
  84. Serial.begin(115200);
  85. delay(1000);
  86. Serial.println("Setup started...");
  87. toggleSwitch.setDebounceTime(50);
  88. initSP();
  89. }
  90.  
  91.  
  92. void loop(void) {
  93.  
  94. toggleSwitch.loop(); // MUST call the loop() function first
  95.  
  96. if (toggleSwitch.isPressed())
  97. Serial.println("one");
  98. if (toggleSwitch.isReleased())
  99. Serial.println("two");
  100.  
  101. int state = toggleSwitch.getState();
  102.  
  103.  
  104. if (state == HIGH)
  105. two();
  106.  
  107. else {
  108. one();
  109. }
  110. }
Pasted 2026-05-04 18:33:04

Short link: