sign6l
Published

Smart hoodie

Smart desdec hoodie with a ir leds for camera privacy and fan for getting cool in the pretty cool project for a hacker arsenal.

IntermediateWork in progress992
Smart hoodie

Things used in this project

Hardware components

Espressif ESP32 Development Board - Developer Edition
Espressif ESP32 Development Board - Developer Edition
×1
IR transmitter (generic)
×1
resistant for led
×1
computer fan
×1
hoodie
×1
battery 18650
×1
battery bank module
×1

Software apps and online services

Arduino IDE
Arduino IDE
remorexy

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free
solid core wire

Story

Read more

Code

remote xy code

Arduino
for the esp32
#define REMOTEXY_MODE__ESP32CORE_BLE
#include <BLEDevice.h>
int fanpin = 25;
int ledpin = 14;
#include <RemoteXY.h>

// RemoteXY connection settings 
#define REMOTEXY_BLUETOOTH_NAME "RemoteXY"
#define REMOTEXY_ACCESS_PASSWORD "smart_hoodie"


// RemoteXY configurate  
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =   // 73 bytes
  { 255,2,0,0,0,66,0,16,8,1,2,0,3,16,56,21,204,26,31,31,
  108,101,100,115,32,111,110,0,111,102,102,0,2,0,3,42,55,22,220,26,
  31,31,102,97,110,32,111,110,0,111,102,102,0,129,0,1,0,62,10,220,
  115,109,97,114,116,32,104,111,111,100,105,101,0 };
  
// this structure defines all the variables and events of your control interface 
struct {

    // input variables
  uint8_t leds; // =1 if switch ON and =0 if OFF 
  uint8_t fan; // =1 if switch ON and =0 if OFF 

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0 

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////



void setup() 
{
  RemoteXY_Init (); 
  
      pinMode(fanpin,OUTPUT);
  pinMode(ledpin,OUTPUT);

  
}

void loop() 
{ 
  RemoteXY_Handler ();
  




if(RemoteXY.fan == HIGH){
digitalWrite(fanpin,HIGH);

}else{
digitalWrite(fanpin,LOW);

}

if(RemoteXY.leds == HIGH){
digitalWrite(ledpin, HIGH);
}else{
  digitalWrite(ledpin, LOW);
}
}

Credits

sign6l

sign6l

1 project • 3 followers
Member of Dedsec

Comments